if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); include_once("inc/functions.inc.php"); include_once("inc/lessc.inc.php"); global $isIndex; $isIndex = $APPLICATION->GetCurPage()=="/index.php" || $APPLICATION->GetCurPage()=="/"; $isIndusrtyDir = strpos($APPLICATION->GetCurDir(), "/industry/")===0; // fb($APPLICATION->GetCurPage()); $siteName = COption::GetOptionString("main", "site_name"); $showH1Title = $APPLICATION->GetProperty("show_h1_title")=="y"; $hideBreadcrumb = $APPLICATION->GetProperty("hide_breadcrumb")=="y"; $showRightColumn = $APPLICATION->GetProperty("show_right_column")=="y"; // $show_sharing = $APPLICATION->GetProperty('show_sharing')=="y"; // $init_vk_widget = $APPLICATION->GetProperty('init_vk_widget')=="y"; // CJSCore::Init(array("jquery")); $styleLess = $_SERVER["DOCUMENT_ROOT"].SITE_TEMPLATE_PATH."/"."less/styles.less"; $styleCss = $_SERVER["DOCUMENT_ROOT"].SITE_TEMPLATE_PATH."/"."styles.css"; if(filemtime($styleLess)>filemtime($styleCss)){ $lc = new lessc($styleLess); try { file_put_contents($styleCss, $lc->parse()); } catch (exception $ex) { exit($ex->getMessage()); } } $templateStyleLess = $_SERVER["DOCUMENT_ROOT"].SITE_TEMPLATE_PATH."/"."less/template_styles.less"; $templateStyleCss = $_SERVER["DOCUMENT_ROOT"].SITE_TEMPLATE_PATH."/"."template_styles.css"; if(filemtime($templateStyleLess)>filemtime($templateStyleCss)){ $lc = new lessc($templateStyleLess); try { file_put_contents($templateStyleCss, $lc->parse()); } catch (exception $ex) { exit($ex->getMessage()); } } $APPLICATION->AddHeadScript(SITE_TEMPLATE_PATH.'/js/libs/modernizr-2.5.3.min.js'); tpl::jquery(); $APPLICATION->AddHeadScript(SITE_TEMPLATE_PATH.'/js/libs/jquery.jcarousel.min.js'); $APPLICATION->AddHeadScript(SITE_TEMPLATE_PATH.'/js/script.js'); if($isIndex){ $pageId = "index"; } /*elseif($isIndusrtyDir){ $pageId = "industry"; }*/ #if(isset($_GET["secret"])) $pageId = "industry"; ?> - День рождения Поликарпова Дмитрия Владимировича, заместителя директора ООО "Ай Ти Ассистент"
16+
TwitterFacebookЖивой ЖурналYoutube