Отложенные функции Битрикс ShowViewContent SetViewTarget

Отложенные функции Битрикс ShowViewContent SetViewTarget

Буферизация в битрикс. Содержание из SetViewTarget-EndViewTarget будет размещено с помощью метода ShowViewContent. Установка микроразметки article для статьи в битриксе.

<?
$APPLICATION->ShowViewContent('meta_article');

$timestamp = MakeTimeStamp($arResult["ACTIVE_FROM"], CSite::GetDateFormat());
$arResult["DATE_PUBLISHED"] = CIBlockFormatProperties::DateFormat("Y-m-d", $timestamp);

CBitrixComponentTemplate::SetViewTarget('meta_article');?>
    <meta itemprop="name" content="<?=$arResult["NAME"]?>">
    <meta itemprop="datePublished" content="<?=$arResult["DATE_PUBLISHED"]?>">
    <meta itemprop="dateModified" content="<?=$arResult["DATE_MODIFIED"]?>">
    <meta itemprop="author" content="Author">
    <meta itemprop="publisher" content="Author">
    <meta itemprop="image" content="<?=$arResult["PREVIEW_PICTURE"]['SRC']?>">
<?CBitrixComponentTemplate::EndViewTarget();?>