4use Bitrix\Main\Application;
5use Bitrix\Main\Config\Option;
6use Bitrix\Main\Context;
8use Bitrix\Main\Localization\Loc;
12Loc::loadMessages(__FILE__);
27 Option::get(
'main',
'vendor',
'') ==
'1c_bitrix'
28 && Loc::getDefaultLang(LANGUAGE_ID) ==
'ru'
33 "TABSET" =>
"seo_adv",
34 "Check" =>
array(__CLASS__,
'checkFields'),
35 "Action" =>
array(__CLASS__,
'saveData'),
36 "GetTabs" =>
array(__CLASS__,
'getTabs'),
37 "ShowTab" =>
array(__CLASS__,
'showTab'),
42 public static function getTabs($iblockElementInfo)
46 $request = Context::getCurrent()->getRequest();
48 if($iblockElementInfo[
"ID"] > 0 && (!isset(
$request[
'action']) ||
$request[
'action'] !=
'copy'))
51 if(Loader::includeModule(
'catalog'))
66 if(\CCatalogSku::getInfoByOfferIBlock($iblockElementInfo[
"IBLOCK"][
"ID"]) !==
false)
73 return $showTab ?
array(
77 "TAB" => Loc::getMessage(
"SEO_ADV_TAB"),
78 "TITLE" => Loc::getMessage(
"SEO_ADV_TAB_TITLE"),
83 public static function showTab($div,$iblockElementInfo)
85 $engineList =
array();
87 if(Option::get(
'main',
'vendor',
'') ==
'1c_bitrix')
89 $engineList[] =
array(
90 "DIV" =>
"yandex_direct",
91 "TAB" => Loc::getMessage(
"SEO_ADV_YANDEX_DIRECT"),
92 "TITLE" => Loc::getMessage(
"SEO_ADV_YANDEX_DIRECT_TITLE"),
94 Application::getDocumentRoot(),
96 "/modules/seo/admin/tab/seo_search_yandex_direct.php"
101 if(
count($engineList) > 0)
103 $engineTabControl = new \CAdminViewTabControl(
"engineTabControl", $engineList);
108 $engineTabControl->begin();
109 foreach($engineList as $engineTab)
111 $engineTabControl->beginNextTab();
113 $file =
new IO\File($engineTab[
"HANDLER"]);
114 if($file->isExists())
116 require($file->getPath());
120 $engineTabControl->end();
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
static combine(... $args)
static getTabs($iblockElementInfo)
static showTab($div, $iblockElementInfo)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
IsModuleInstalled($module_id)
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"