if (!$arResult["AJAX_CALL"]) { ?> BX.addCustomEvent('onAjaxFailure', function(status){ if (status == 'auth') { top.location = top.location.href; } }); <?php } ?> }); <?php if (!$arResult["AJAX_CALL"]) { if (\Bitrix\Main\Page\Frame::isAjaxRequest()) { ?> setTimeout(function() { __logRecalcMoreButton(); }, 1000);<?php } else { ?> BX.bind(window, 'load', function() { __logRecalcMoreButton(); });<?php } } } if (!$arResult["AJAX_CALL"] && !$arResult["bReload"]) { ?> BX.ready(function() { window.addEventListener("scroll", BX.LazyLoad.onScroll); }); <?php }
/** * <p>Отображает <a href="http://dev.1c-bitrix.ru/api_help/main/general/panel.php">панель управления</a> в публичной части сайта. <br>Метод использует технологию <a href="http://dev.1c-bitrix.ru/learning/course/index.php?COURSE_ID=43&LESSON_ID=3489" >отложенных функций</a>, позволяющую, помимо всего прочего, добавлять кнопку в панель управления уже после того как будет выведен пролог сайта.<br><br> Если у пользователя не хватает прав ни на одну операцию задаваемую кнопками <a href="http://dev.1c-bitrix.ru/api_help/main/general/panel.php">панели управления</a>, то панель выведена не будет. Если вам необходимо вывести панель в обязательном порядке, необходимо задать в теле страницы: </p> <pre>$APPLICATION->ShowPanel = true;</pre> <p>Динамичный метод.</p> * * * @return mixed * * <h4>Example</h4> * <pre> * <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> * <html> * <head> * <meta http-equiv="Content-Type" content="text/html; charset=<?=LANG_CHARSET;?>"> * <META NAME="ROBOTS" content="ALL"> * <?$APPLICATION->ShowMeta("keywords")?> * <?$APPLICATION->ShowMeta("description")?> * <title><?$APPLICATION->ShowTitle()?></title> * <?$APPLICATION->ShowCSS();?> * </head> * <body link="#525252" alink="#F1555A" vlink="#939393" text="#000000"> * <?<b>$APPLICATION->ShowPanel</b>();?> * ... * </pre> * * * <h4>See Also</h4> * <ul> <li> <a href="http://dev.1c-bitrix.ru/api_help/main/general/panel.php">Панель управления</a> </li> * <li> <a href="http://dev.1c-bitrix.ru/learning/course/index.php?COURSE_ID=43&LESSON_ID=3489" >Отложенные * функции</a> </li> <li> <a * href="http://dev.1c-bitrix.ru/api_help/main/reference/cmain/addpanelbutton.php">CMain::AddPanelButton</a> </li> <li> <a * href="http://dev.1c-bitrix.ru/api_help/main/events/onpanelcreate.php">Событие "OnPanelCreate"</a> </li> </ul> <a * name="examples"></a> * * * @static * @link http://dev.1c-bitrix.ru/api_help/main/reference/cmain/showpanel.php * @author Bitrix */ public function ShowPanel() { global $USER; $isFrameAjax = Bitrix\Main\Page\Frame::getUseHTMLCache() && Bitrix\Main\Page\Frame::isAjaxRequest(); if (isset($GLOBALS["USER"]) && is_object($USER) && $USER->IsAuthorized() && !isset($_REQUEST["bx_hit_hash"]) && !$isFrameAjax) { $this->showPanelWasInvoked = true; class_exists('CTopPanel'); //http://bugs.php.net/bug.php?id=47948 AddEventHandler('main', 'OnBeforeEndBufferContent', array('CTopPanel', 'InitPanel')); $this->AddBufferContent(array('CTopPanel', 'GetPanelHtml')); //Prints global url classes and variables for HotKeys $this->AddBufferContent(array('CAllMain', "PrintHKGlobalUrlVar")); //Prints global url classes and variables for Stickers $this->AddBufferContent(array('CSticker', "InitJsAfter")); $this->AddBufferContent(array('CAdminInformer', "PrintHtmlPublic")); } }
$min_dimension = 650; } elseif ($min_dimension < 1300) { $min_dimension = 1300; } else { $min_dimension = 2050; } $arParams["IMAGE_MAX_WIDTH"] = intval(($min_dimension - 100) / 2); } if ($_REQUEST["ACTION"] == "CONVERT" && $arParams["LOG_ID"] <= 0) { $arConvertRes = CSocNetLogTools::GetDataFromRatingEntity($_REQUEST["ENTITY_TYPE_ID"], $_REQUEST["ENTITY_ID"]); if (is_array($arConvertRes) && $arConvertRes["LOG_ID"] > 0) { $arParams["LOG_ID"] = $arConvertRes["LOG_ID"]; } } $arParams["SET_LOG_CACHE"] = isset($arParams["SET_LOG_CACHE"]) && $arParams["LOG_ID"] <= 0 && !$arResult["AJAX_CALL"] ? $arParams["SET_LOG_CACHE"] : "N"; $arParams["SET_LOG_COUNTER"] = $arParams["SET_LOG_CACHE"] == "Y" && (!$arResult["AJAX_CALL"] && \Bitrix\Main\Page\Frame::isAjaxRequest() || $arResult["RELOAD"]) ? "Y" : "N"; $arParams["SET_LOG_PAGE_CACHE"] = $arParams["LOG_ID"] <= 0 ? "Y" : "N"; $arParams["PAGE_SIZE"] = intval($arParams["PAGE_SIZE"]) > 0 ? $arParams["PAGE_SIZE"] : 7; if (array_key_exists("pplogid", $_REQUEST)) { $arPrevPageLogID = explode("|", trim($_REQUEST["pplogid"])); if (is_array($arPrevPageLogID)) { foreach ($arPrevPageLogID as $key => $val) { preg_match('/^(\\d+)$/', $val, $matches); if (count($matches) <= 0) { unset($arPrevPageLogID[$key]); } } $arPrevPageLogID = array_unique($arPrevPageLogID); } } if (strlen($arParams["PATH_TO_USER_BLOG_POST"]) > 0) {
}; BX.CrmWidgetPanel.messages = { "menuItemReset": "<?php echo GetMessageJS("CRM_WGT_MENU_ITEM_RESET"); ?> ", "menuItemEnableDemoMode": "<?php echo GetMessageJS("CRM_WGT_MENU_ITEM_ENABLE_DEMO_MODE"); ?> " }; BX.CrmWidgetPanel.isAjaxMode = <?php echo \Bitrix\Main\Page\Frame::isAjaxRequest() ? 'true' : 'false'; ?> ; BX.CrmWidgetPanel.current = BX.CrmWidgetPanel.create("<?php echo CUtil::JSEscape("{$quid}"); ?> ", <?php echo CUtil::PhpToJSObject($settings); ?> ).layout(); } ); </script> <?php if ($arResult['NEED_FOR_REBUILD_DEAL_STATISTICS']) { ?>
B24.Timemanager.init(<?php echo CUtil::PhpToJsObject($arResult["WORK_REPORT"]); ?> ); BX.timeman("bx_tm", <?php echo CUtil::PhpToJsObject($arResult["START_INFO"]); ?> , "<?php echo SITE_ID; ?> "); <?php if (!Frame::isAjaxRequest()) { ?> }); <?php } else { ?> BX.addClass(BX("timeman-block"), "<?php echo $statusClass; ?> "); <?php } ?> </script> <?php $frame->end();
} require_once $_SERVER["DOCUMENT_ROOT"] . $this->GetFolder() . "/functions.php"; CIntranetPopupShow::getInstance()->init($currentStepId != "other" && !in_array($currentStepId, $arViewedSteps) ? "Y" : "N"); AddEventHandler("intranet", "OnIntranetPopupShow", "onIntranetPopupShow"); if (!function_exists("onIntranetPopupShow")) { function onIntranetPopupShow() { $isPopupShowed = CIntranetPopupShow::getInstance()->isPopupShowed(); if ($isPopupShowed == "Y") { return false; } } } if (!IsModuleInstalled("bitrix24") || LANGUAGE_ID != "ru" && LANGUAGE_ID != "ua") { $frame = $this->createFrame("help")->begin(""); $frameAjax = \Bitrix\Main\Page\Frame::isAjaxRequest(); ?> <script type="text/javascript"> B24.VideoPopupWindow.init(<?php echo CUtil::PhpToJSObject($videoSteps); ?> , { site_dir : "<?php echo SITE_DIR; ?> ", currentStepId :"<?php echo $currentStepId; ?> " , learning_url : "<?php echo GetMessageJS("BITRIX24_HELP_VIDEO_LEARNING_URL"); ?> ", learning_question : "<?php