CCrmViewHelper::RenderClientSummary

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmViewHelper
  4. RenderClientSummary
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_view_helper.php
  • Класс: \CCrmViewHelper
  • Вызов: CCrmViewHelper::RenderClientSummary
static function RenderClientSummary($url, $titleHtml, $descriptionHtml, $photoHtml = '', $target = '_self')
{
	$url = strval($url);
	$titleHtml = strval($titleHtml);
	$descriptionHtml = strval($descriptionHtml);
	$photoHtml = strval($photoHtml);

	$result = '
'.($photoHtml !== '' ? $photoHtml : '
').'
'; $result .= '
'; if($url !== '' || $titleHtml !== '') { $result .= '
'; if($url !== '') { $result .= '' .($titleHtml !== '' ? $titleHtml : htmlspecialcharsbx($url)).''; } elseif($titleHtml !== '') { $result .= $titleHtml; } $result .= '
'; } if($descriptionHtml !== '') { $result .= '
'.$descriptionHtml.'
'; } $result .= '
'; return '
'.$result.'
'; }

Добавить комментарий