- Модуль: landing
- Путь к файлу: ~/bitrix/modules/landing/lib/block.php
- Класс: BitrixLandingBlock
- Вызов: Block::replaceMetaMarkers
static function replaceMetaMarkers($content)
{
if (mb_strpos($content, '#breadcrumb#') !== false)
{
ob_start();
$arResult = array(
array(
'LINK' => '#',
'TITLE' => ''
),
array(
'LINK' => '#',
'TITLE' => Loc::getMessage('LANDING_BLOCK_BR1')
),
array(
'LINK' => '#',
'TITLE' => Loc::getMessage('LANDING_BLOCK_BR2')
),
array(
'LINK' => '#',
'TITLE' => ''
)
);
$tplId = Manager::getTemplateId(
Manager::getMainSiteId()
);
$strChainTemplate = getLocalPath('templates/' . $tplId . '/chain_template.php');
$strChainTemplate = Manager::getDocRoot() . $strChainTemplate;
if (file_exists($strChainTemplate))
{
echo include $strChainTemplate;
}
$breadcrumb = ob_get_contents();
ob_end_clean();
$content = str_replace(
'#breadcrumb#',
$breadcrumb,
$content
);
}
if (mb_strpos($content, '#title#') !== false)
{
$content = str_replace(
'#title#',
Loc::getMessage('LANDING_BLOCK_TITLE'),
$content
);
}
return $content;
}