• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/hook/page/copyright.php
  • Класс: BitrixLandingHookPageCopyright
  • Вызов: Copyright::getAdditionalText
protected function getAdditionalText(): string
{
	if (!$this->isRuLang() || !Manager::isB24())
	{
		return '';
	}

	$type = strtoupper(Landing::getSiteType());
	$phrases = $this->getRandomPhraseCollection($type);
	$code = (int)$this->fields['CODE']->getValue() ?: 1;
	$text = $phrases[$code] ?: $phrases[1];
	$component = $this->getPublicComponent();

	$link = $component->getRefLink('websites', true, true);
	if ($type === self::PAGE_TYPE_STORE)
	{
		$link = str_replace('features/sites.php', 'features/shop.php', $link);
	}

	return '. ' . $text . '';
}