Current Path : /var/www/u0635749/data/www/hobbyclick.ru/hobbyclick.ru/www/www/local/templates/tequila/ |
Current File : /var/www/u0635749/data/www/hobbyclick.ru/hobbyclick.ru/www/www/local/templates/tequila/header.php |
<?php use Bitrix\Main\Loader; use Bitrix\Main\Page\Asset; use Bitrix\Main\Application; use Bitrix\Iblock\ElementTable; if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die(); } if (!Loader::includeModule('meven.info')){ throw new \Bitrix\Main\SystemException('Необходимо установить модуль'); } $phone = \Bitrix\Main\Config\Option::get("meven.info", "phone"); $email = \Bitrix\Main\Config\Option::get("meven.info", "email"); $resPhone = \Meven\Info\Metods::getPhone($phone); $asset = Asset::getInstance(); $asset->addCss(SITE_TEMPLATE_PATH . '/assets/css/fonts.css'); $asset->addCss(SITE_TEMPLATE_PATH . '/assets/css/style.css'); $asset->addCss(SITE_TEMPLATE_PATH . '/assets/css/costume.css'); $asset->addJs(SITE_TEMPLATE_PATH . '/assets/js/jquery.min.js'); $asset->addJs(SITE_TEMPLATE_PATH . '/assets/js/plugins.js'); $asset->addJs(SITE_TEMPLATE_PATH . '/assets/js/jquery.min.js'); $asset->addJs(SITE_TEMPLATE_PATH . '/assets/js/script.js'); $asset->addJs(SITE_TEMPLATE_PATH . '/assets/js/svgxuse.min.js'); $asset->addJs(SITE_TEMPLATE_PATH . '/js/readmore.js'); $asset->addJs(SITE_TEMPLATE_PATH . '/assets/js/custom.js'); $asset->addJs(SITE_TEMPLATE_PATH . '/js/lea_hideme.js'); $path = $APPLICATION->GetCurPage(false); $arPage = [ '/teachers/', '/catalog/' ]; Loader::includeModule('iblock'); global $tqCurCity, $tqCurCityFilter; $select = [ 'ID', 'NAME', 'CODE', ]; $filter = [ '=IBLOCK_ID' => CITIES_IBLOCK, 'ACTIVE' => 'Y', '=CODE' => $_SERVER['HTTP_HOST'], ]; $res = ElementTable::getList([ 'select' => $select, 'filter' => $filter, ]); if ($ob = $res->fetch()) { $tqCurCity = $ob; $tqCurCityFilter['PROPERTY_CITY_DOMEN'] = $ob['ID']; $tqCurCityFilterSection['UF_CITY_DOMEN'] = $ob['ID']; }else{ $tqCurCity = false; } $select = [ 'ID', 'NAME', 'CODE', ]; $filter = [ '=IBLOCK_ID' => CITIES_IBLOCK, 'ACTIVE' => 'Y', ]; $res = ElementTable::getList([ 'select' => $select, 'filter' => $filter, ]); while ($ob = $res->fetch()) { $arCities[] = $ob; } ?><!DOCTYPE html> <html> <head> <script> (function(w, d, u, i, o, s, p) { if (d.getElementById(i)) { return; } w['MangoObject'] = o; w[o] = w[o] || function() { (w[o].q = w[o].q || []).push(arguments) }; w[o].u = u; w[o].t = 1 * new Date(); s = d.createElement('script'); s.async = 1; s.id = i; s.src = u; p = d.getElementsByTagName('script')[0]; p.parentNode.insertBefore(s, p); }(window, document, '//widgets.mango-office.ru/widgets/mango.js', 'mango-js', 'mgo')); mgo({calltracking: {id: 25997, elements: [{"numberText":"78005555628"}]}}); </script> <!-- Google Tag Manager --> <script></script> <!-- End Google Tag Manager --> <title><?php $APPLICATION->ShowTitle()?></title> <?if(!empty($_SERVER["REDIRECT_URL"])){?> <? $APPLICATION->AddHeadString("<link rel='canonical' href='https://spb.hobbyclick.ru".$_SERVER["REDIRECT_URL"]."'>"); ?> <?}elseif(!empty($_SERVER["PHP_SELF"])){?> <? $varlonk = explode('index.php', $_SERVER["PHP_SELF"]); $APPLICATION->AddHeadString("<link rel='canonical' href='https://spb.hobbyclick.ru".$varlonk[0]."'>"); ?> <?}?> <?php $APPLICATION->ShowHead()?> <!--[if IE]> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <![endif]--> <link rel="icon" href="<?=SITE_TEMPLATE_PATH?>/favicon.ico" type="image/x-icon"> <?/*<script> if (window.screen.width < 768) { let mt = document.createElement("meta"); mt.setAttribute('name', 'viewport'); mt.setAttribute('content', 'width=320,user-scalable=no'); document.getElementsByTagName('head')[0].appendChild(mt); } else { let mt = document.createElement("meta"); mt.setAttribute('name', 'viewport'); mt.setAttribute('content', 'width=device-width'); document.getElementsByTagName('head')[0].appendChild(mt); } </script>*/?> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!--meta(name='viewport', content='width=device-width')--> <meta name="format-detection" content="telephone=no"> <meta name="format-detection" content="address=no"> <script> function addScript2(){ var s = document.createElement("script"); s.type = "text/javascript"; s.src = "https://calltracking.alytics.ru/api/script/ab579f3693c0fd92"; $("head").append(s); s = document.createElement("script"); s.type = "text/javascript"; s.innerHTML = "(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K53V9VL');"; $("head").append(s); s = document.createElement("script"); s.type = "text/javascript"; s.innerHTML = $('#mango').html().replaceAll("<", "<").replaceAll("&&", "&&"); $("head").append(s); //initMap(); } setTimeout(() => addScript2(), 7000); </script> <?/*<script type="text/javascript" src="https://calltracking.alytics.ru/api/script/ab579f3693c0fd92" ></script>*/?> <!-- Yandex.Metrika counter --> <script type="text/javascript" > (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date(); for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }} k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(92541782, "init", { clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true, ecommerce:"dataLayer" }); </script> <noscript><div><img src="https://mc.yandex.ru/watch/92541782" style="position:absolute; left:-9999px;" alt="" /></div></noscript> <!-- /Yandex.Metrika counter --> <?/* <script type="text/javascript"> var ZCallbackWidgetLinkId = 'fb4deb675a25ec68fe4db15122b31f20'; var ZCallbackWidgetDomain = 'my.novofon.com'; (function(){ var lt = document.createElement('script'); lt.type ='text/javascript'; lt.charset = 'utf-8'; lt.async = true; lt.src = 'https://' + ZCallbackWidgetDomain + '/callbackWidget/js/main.min.js?v=1.15.3'; var sc = document.getElementsByTagName('script')[0]; if (sc) sc.parentNode.insertBefore(lt, sc); else document.documentElement.firstChild.appendChild(lt); })(); </script> */?> <script> (function(w,d,u){ var s=d.createElement('script');s.async=true;s.src=u+'?'+(Date.now()/60000|0); var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h); })(window,document,'https://cdn-ru.bitrix24.ru/b757273/crm/site_button/loader_11_i8w3ua.js'); </script> </head> <body> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-K53V9VL" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <?echo date_format('Пт, 09 июля, 17:00-18:00', "Y/m/d H:i:s")?> <div id="panel"><?$APPLICATION->ShowPanel();?></div> <header class="header <?=($path === '/')?'header--transparent':''?>"> <div class="container position-relative"> <div class="header__row"> <a class="header__logo mr-auto mr-lg-90" href="/"> <?$APPLICATION->IncludeComponent( "bitrix:main.include", "", Array( "AREA_FILE_SHOW" => "file", "AREA_FILE_SUFFIX" => "", "EDIT_TEMPLATE" => "", "PATH" => "/include/logo.php" ) );?> </a> <div class="tq_city_block mr-10 mr-lg-auto"> <a class="btn btn-city tq_change_city" href="#"> <span><?=$tqCurCity['NAME']?></span> </a> <nav class="cities_list" id="cities_list" > <div class="container"> <ul class="menu__list"> <?foreach ($arCities as $arCity){?> <li> <a href="//<?=$arCity['CODE']?>"><?=$arCity['NAME']?></a></li> <?}?> </ul> <div class="d-lg-none pt-20 mb-auto"> <script data-b24-form="click/69/qupv5x" data-skip-moving="true"> (function(w,d,u){ var s=d.createElement('script');s.async=true;s.src=u+'?'+(Date.now()/180000|0); var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h); })(window,document,'https://cdn-ru.bitrix24.ru/b757273/crm/form/loader_69.js'); </script> <a class="btn btn-primary btn-primary--shadow" style="cursor:pointer;">Обратный звонок</a></div> </div> </nav> <div class="cityForChoose"> <?$cookie = $APPLICATION->get_cookie("CityChoose")?> <? if (!$cookie){ $cityNow = getCityNow(); ?> <div class="cityCheckWrapper"> <p>Ваш город <span><?=$cityNow['CITY']?></span>?</p> <div class="cityCheckWrapper__button"> <?if ($cityNow['HREF'] == "https://".$_SERVER['HTTP_HOST']){?> <a href="#" onclick="$('.cityCheckWrapper').remove(); return false;" class="active">Да</a> <a href="<?=$cityNow['HREF']?>" class="nonactive">Нет</a> <?} else {?> <a href="<?=$cityNow['HREFNOW']?>" class="active">Да</a> <a href="#" onclick="$('.cityCheckWrapper').remove(); return false;" class="nonactive">Нет</a> <?}?> </div> </div> <?$APPLICATION->set_cookie("CityChoose", "Y", time()+60*60*24*30*12*2, "/", "spb.hobbyclick.ru")?> <?$APPLICATION->set_cookie("CityChoose", "Y", time()+60*60*24*30*12*2, "/", "hobbyclick.ru")?> <?}?> </div> </div> <a class="btn btn-tel btn-tel--white d-none d-lg-inline-block" href="tel:<?=$phone?>"><?=$resPhone?></a> <span class="mango-callback" data-settings='{"type":"", "id": "MTAwMTM3NDM=","autoDial" : "0", "lang" : "ru-ru", "host":"widgets.mango-office.ru/", "errorMessage": "В данный момент наблюдаются технические проблемы и совершение звонка невозможно"}'> <script data-b24-form="click/69/qupv5x" data-skip-moving="true"> (function(w,d,u){ var s=d.createElement('script');s.async=true;s.src=u+'?'+(Date.now()/180000|0); var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h); })(window,document,'https://cdn-ru.bitrix24.ru/b757273/crm/form/loader_69.js'); </script> <a class="btn btn-outline btn-outline--primary d-none d-lg-inline-block" style="cursor:pointer;">Обратный звонок</a> </span> <?/*<a class="btn btn-outline btn-outline--primary d-none d-lg-inline-block" href="javascript:;" data-fancybox data-type="ajax" data-src="/include/form/call-me.php" data-touch="false">Обратный звонок</a>*/?> <button class="btn btn-menu" onclick="menuToggle(this)" id="menu-btn"></button> </div> <nav class="menu" id="menu"> <div class="container menu__container"> <div class="menu__header d-lg-none mb-auto"> <?$APPLICATION->IncludeComponent( "bitrix:main.include", "", Array( "AREA_FILE_SHOW" => "file", "AREA_FILE_SUFFIX" => "", "EDIT_TEMPLATE" => "", "PATH" => "/include/menu-logo.php" ) );?> <button class="btn btn-close" onclick="menuClose()"> </button> </div> <?php $APPLICATION->IncludeComponent("bitrix:menu", "main", [ "ALLOW_MULTI_SELECT" => "N", "CHILD_MENU_TYPE" => "main", "DELAY" => "N", "MAX_LEVEL" => "1", "MENU_CACHE_GET_VARS" => "", "MENU_CACHE_TIME" => "3600", "MENU_CACHE_TYPE" => "N", "MENU_CACHE_USE_GROUPS" => "Y", "ROOT_MENU_TYPE" => "main", "USE_EXT" => "Y", "COMPONENT_TEMPLATE" => "", "MENU_THEME" => "site" ], false );?> <div class="d-lg-none pt-20 mb-auto"> <script data-b24-form="click/69/qupv5x" data-skip-moving="true"> (function(w,d,u){ var s=d.createElement('script');s.async=true;s.src=u+'?'+(Date.now()/180000|0); var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h); })(window,document,'https://cdn-ru.bitrix24.ru/b757273/crm/form/loader_69.js'); </script> <a class="btn btn-primary btn-primary--shadow" style="cursor:pointer;">Обратный звонок</a></div> </div> </nav> </div> </header> <main> <?php if ($path !== '/' && $path !== '/catalog/'): ?> <section class="section section--p1 <?=!empty($APPLICATION->GetDirProperty("ADD_CLASS"))?$APPLICATION->GetDirProperty("ADD_CLASS"):''?>"> <div class="container"> <?php $APPLICATION->IncludeComponent( "bitrix:breadcrumb", "tequila", array( "COMPONENT_TEMPLATE" => "tequila", "START_FROM" => "0", "PATH" => "", "SITE_ID" => "s1" ), false );?> <?php if ( !empty($APPLICATION->GetDirProperty("TITLE_BACK")) // && empty(stristr($path, '/catalog/')) || in_array($path, $arPage) && empty(strpos($path, '/halls/')) ):?> <h1 class="section__title" data-title="<?=$APPLICATION->GetDirProperty("TITLE_BACK")?>"><?php $APPLICATION->ShowTitle(false)?></h1> <?php endif;?> <?php endif; ?>