• Модуль: storeassist
  • Путь к файлу: ~/bitrix/modules/storeassist/classes/general/storeassist.php
  • Класс: CStoreAssist
  • Вызов: CStoreAssist::onPrologAdminTitle
static function onPrologAdminTitle($pageUrl, $pageId = "")
{
	if (!in_array(LANGUAGE_ID, array("ru", "ua")))
		return;

	global $APPLICATION, $bxProductConfig;

	$ST_RIGHT = $APPLICATION->GetGroupRight("storeassist");
	if (!($ST_RIGHT >= "R"))
	{
		return false;
	}

	$partnerUrl = BitrixMainConfigOption::get("storeassist", "partner_url", '');
	if ($partnerUrl)
		$bxProductConfig["admin"]["links"] = 'www.1c-bitrix.ru  |  '.Loc::getMessage("STOREAS_SUPPORT").'';

	if (!$pageId)
	{
		preg_match("/([^/]*?).php/i", $pageUrl, $matches);
		if (isset($matches[1]))
			$pageId = $matches[1];
		else
			return false;
	}

	if (!in_array($pageId, self::$arAllPageId))
		return false;

	$arSettingOption = self::getSettingOption();
	$isItemDone = (in_array($pageId, $arSettingOption)) ? true : false;

	CJSCore::Init(array('storeassist', 'fx'));
	$APPLICATION->SetAdditionalCSS('/bitrix/panel/storeassist/storeassist.css');
	//BitrixMainPageAsset::getInstance()->addCss('/bitrix/panel/storeassist/storeassist.css');

	$hash = (isset($_GET["back"])) ? "#".htmlspecialcharsbx($_GET["back"]) : "";
	echo '
'.Loc::getMessage("STOREAS_BACK_BUTTON").' '.Loc::getMessage(($isItemDone ? 'STOREAS_DONE' : 'STOREAS_NOT_DONE')).'
'.Loc::getMessage("STOREAS_DOCUMENTATION").'
'.Loc::getMessage("STOREAS_TASK").': '.Loc::getMessage("STOREAS_TASK_".(isset($_GET["subId"]) ? htmlspecialcharsbx($_GET["subId"]) : $pageId)). ($ST_RIGHT >= "W" ? '' : '') .'
'; if (!$isItemDone) { echo ''; } }