4if (!
$USER->CanDoOperation(
'seo_settings'))
18 Array(
"property_window_title",
GetMessage(
'SEO_OPT_PROP_WINDOW_TITLE'),
array(
"text"),
"title"),
19 Array(
"property_description",
GetMessage(
'SEO_OPT_PROP_DESCRIPTION'),
array(
"text"),
"description"),
20 Array(
"property_keywords",
GetMessage(
'SEO_OPT_PROP_KEYWORDS'),
array(
"text"),
"keywords"),
25 COption::GetOptionString(
'main',
'vendor',
'') ==
'1c_bitrix'
32 $aTabs[] = [
"DIV" =>
"edit0",
"TAB" =>
GetMessage(
'SEO_OPT_TAB_CLOUDADV'),
"ICON" =>
"seo_settings",
"TITLE" =>
GetMessage(
'SEO_OPT_TAB_CLOUDADV_TITLE')];
34$aTabs[] = [
"DIV" =>
"edit1",
"TAB" =>
GetMessage(
'SEO_OPT_TAB_PROP'),
"ICON" =>
"seo_settings",
"TITLE" =>
GetMessage(
'SEO_OPT_TAB_PROP_TITLE')];
35$aTabs[] = [
"DIV" =>
"edit3",
"TAB" =>
GetMessage(
'SEO_OPT_TAB_SEARCHERS'),
"ICON" =>
"seo_settings",
"TITLE" =>
GetMessage(
'SEO_OPT_TAB_SEARCHERS_TITLE')];
36$aTabs[] = [
"DIV" =>
"edit2",
"TAB" =>
GetMessage(
"MAIN_TAB_RIGHTS"),
"ICON" =>
"seo_settings",
"TITLE" =>
GetMessage(
"MAIN_TAB_TITLE_RIGHTS")];
44 COption::RemoveOption(
'seo');
47 while(
$zr =
$z->Fetch())
50 if (CModule::IncludeModule(
'statistic'))
52 $arFilter =
array(
'ACTIVE' =>
'Y',
'NAME' =>
'Google|MSN|Bing',
'NAME_EXACT_MATCH' =>
'Y');
53 if (COption::GetOptionString(
'main',
'vendor') ==
'1c_bitrix')
60 $strSearchers .= ($strSearchers ==
'' ?
'' :
',').
$arRes[
'ID'];
72 if ($arOption[2][0] ==
"checkbox" &&
$val !=
"Y")
78 COption::SetOptionString(
'seo',
'searchers_list', is_array($_POST[
'arSearchersList']) ? implode(
',', $_POST[
'arSearchersList']) :
'');
84$searchers = COption::GetOptionString(
'seo',
'searchers_list',
'');
97 $arSearchersList =
array();
108<form method=
"POST" action=
"<?echo $APPLICATION->GetCurPage()?>?mid=<?=htmlspecialcharsbx($mid)?>&lang=<?echo LANG?>" name=
"seo_settings">
121 $engine = new \Bitrix\Seo\Engine\YandexDirect();
122 require_once(__DIR__.
"/admin/tab/seo_search_yandex_direct_auth.php");
124 if(\
Bitrix\Seo\Service::isRegistered())
127 <a href=
"javascript:void(0)" onclick=
"return clearCloudAdvRegister()"><?=
GetMessage(
"SEO_OPT_TAB_CLOUDADV_CLEAR")?></a>
129 function clearCloudAdvRegister()
131 if(confirm(
'<?=CUtil::JSEscape(GetMessage('SEO_OPT_TAB_CLOUDADV_CLEAR_CONFIRM
'))?>'))
133 BX.ajax.loadJSON(
'/bitrix/tools/seo_yandex_direct.php?action=unregister&sessid=' + BX.bitrix_sessid(),
function(result)
139 else if(result[
"error"])
141 alert(
'<?=CUtil::JSEscape(GetMessage("SEO_ERROR"))?> : ' + result[
'error'][
'message']);
158 $val = COption::GetOptionString(
"seo", $arOption[0], $arOption[3]);
163 <td valign=
"top" width=
"50%"><?
164 if (
$type[0] ==
"checkbox")
165 echo
"<label for=\"".htmlspecialcharsbx($arOption[0]).
"\">".$arOption[1].
"</label>";
169 <td valign=
"top" width=
"50%"><?
170 if(
$type[0]==
"checkbox"):
171 ?><input type=
"checkbox" name=
"<?echo htmlspecialcharsbx($arOption[0])?>" id=
"<?echo htmlspecialcharsbx($arOption[0])?>" value=
"Y"<?
if(
$val==
"Y")echo
" checked";?> /><?
173 ?><input type=
"text" size=
"<?echo $type[1]?>" maxlength=
"255" value=
"<?echo htmlspecialcharsbx($val)?>" name=
"<?echo htmlspecialcharsbx($arOption[0])?>" /><?
175 ?><textarea rows=
"<?echo $type[1]?>" cols=
"<?echo $type[2]?>" name=
"<?echo htmlspecialcharsbx($arOption[0])?>"><?echo
htmlspecialcharsbx(
$val)?></textarea><?
184 <td
width=
"30%" valign=
"top"><?echo
GetMessage(
'SEO_OPT_COUNTERS')?>: </td>
189 <?php
if (
$DB->type !==
'PGSQL'): ?>
191 <td
width=
"30%" valign=
"top">
196 if (CModule::IncludeModule(
'statistic'))
202 echo
SelectBoxM(
"arSearchersList[]", CSearcher::GetDropdownList(), $arSearchersList,
"",
false, 20);
218 require_once(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/admin/group_rights.php");
223function confirmRestoreDefaults()
225 return confirm(
'<?echo AddSlashes(GetMessage("MAIN_HINT_RESTORE_DEFAULTS_WARNING"))?>');
228<input type=
"submit" name=
"Update" value=
"<?echo GetMessage("MAIN_SAVE
")?>">
229<input type=
"hidden" name=
"Update" value=
"Y">
230<input type=
"reset" name=
"reset" value=
"<?echo GetMessage("MAIN_RESET
")?>">
231<input type=
"submit" name=
"RestoreDefaults" title=
"<?echo GetMessage("MAIN_HINT_RESTORE_DEFAULTS
")?>" OnClick=
"return confirmRestoreDefaults();" value=
"<?echo GetMessage("MAIN_RESTORE_DEFAULTS
")?>">
if($_SERVER $arAllOptions['REQUEST_METHOD']=='GET' &&!empty($_REQUEST['RestoreDefaults']) &&! $bReadOnly &&check_bitrix_sessid())
static loadMessages($file)
static getDefaultLang($lang)
static ShowMessage($message)
static GetList($by='c_sort', $order='asc', $arFilter=[], $SHOW_USERS_AMOUNT="N")
static SetOptionString($module_id, $name, $value="", $desc=false, $site="")
static IncludeModule($module_name)
static GetList($by='s_today_hits', $order='desc', $arFilter=[], &$is_filtered=false, $LIMIT=false)
bx popup label bx width30 PAGE_NEW_MENU_NAME text width
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
$_SERVER["DOCUMENT_ROOT"]
bitrix_sessid_post($varname='sessid', $returnInvocations=false)
check_bitrix_sessid($varname='sessid')
SelectBoxM($strBoxName, $a, $arr, $strDetText="", $strDetText_selected=false, $size="5", $field1="class=\"typeselect\"")
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
GetMessage($name, $aReplace=null)
global_menu_<?echo $menu["menu_id"]?> adm main menu item icon adm main menu item text text adm main menu hover adm submenu menucontainer menu_id menu_id items_id items_id desktop menu_id block none adm global submenu<?=($subMenuDisplay=="block" ? " adm-global-submenu-active" :"")?> global_submenu_<?echo $menu["menu_id"]?> text MAIN_PR_ADMIN_FAV items adm submenu items wrap adm submenu items stretch wrap BX adminMenu itemsStretchScroll()"> <table class if (!empty( $menu["items"])) elseif ( $menu[ 'menu_id']=='desktop') if ( $menu[ 'menu_id']=='desktop') endforeach
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
<? endif;?> window document title
</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."%"
if($_SERVER $arCurrentSearchers['REQUEST_METHOD']=="POST" && $Update. $Apply. $RestoreDefaults<> '' &&check_bitrix_sessid())