Commit 106716f7 by Semenenko Timofey

Новые рекомендации по карте проектов.

1 parent 3e1bd2e7
Pipeline #2944 for 106716f7 skipped in 0 seconds
......@@ -6,7 +6,7 @@
<div class="contacts-tabs-item _active js-tab" data-id="1">
<ul class="contacts-list js-list-container">
<? foreach($arResult['OFFICES'] as $i => $item) { ?>
<li class="contacts-list-item _collapsable js-collapsable<? if(!$i) { ?> _active<? } ?>" itemscope itemtype="http://schema.org/Organization">
<li class="contacts-list-item _collapsable js-collapsable<? if(!$i) { ?> <? } ?>" itemscope itemtype="http://schema.org/Organization">
<span style="display:none" itemprop="name">Stroy House<? if($subtitle = $item->getSubtitle()) { ?> (<?= $subtitle ?>)<? } ?></span>
<a href="#!" class="contacts-list-item-title js-collapsable-toggle js-office" data-id="<?= $item->ID ?>">
<b><?= $item->getName() ?></b>
......
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");?>
<div class="contacts">
<div class="contacts-wr">
<div class="contacts-map" data-default-center="50,42">
<div class="contacts-map" >
<!-- <?= getBreadCrumbsHtml() ?> -->
<a href="#!" class="contacts-map-zoom _in js-zoom-in"></a>
<a href="#!" class="contacts-map-zoom _out js-zoom-out"></a>
......@@ -10,7 +10,7 @@
<div class="contacts-content">
<div class="contacts-content-wr">
<div class="contacts-tabs-head">
<a href="#!" class="contacts-tabs-head-item _active js-tab-toggle" data-id="1">Офисы</a>
<a href="/contacts/" class="contacts-tabs-head-item _active" >Офисы</a>
<? foreach($arResult['CONTACT_SECTIONS'] as $section) { ?>
<a href="#!" class="contacts-tabs-head-item js-tab-toggle" data-id="<?= $section->ID ?>"><?= $section->NAME ?></a>
<? } ?>
......
......@@ -208,11 +208,15 @@ if ($APPLICATION->GetCurPage() == '/projects/online/') echo '<meta name="robots"
</div>
<? return ob_get_clean();
}); ?>
<?if (strpos($_SERVER['REQUEST_URI'], 'projects') == false){?>
<?if (strpos($_SERVER['REQUEST_URI'], 'projects') == true){?>
<?$APPLICATION->AddBufferContent(function() {
global $APPLICATION;
$result = '';
if(!$APPLICATION->GetProperty('HIDE_PAGE_CONTENT')) $result .= '<div class="page-content">';
if(!$APPLICATION->GetProperty('HIDE_PAGE_CONTENT') && ($_SERVER['REQUEST_URI'] == '/projects/map/')){
$result .= '<div class="page-content">';
}else{
$result .= '<div class="page-contents">';
}
if(!$APPLICATION->GetProperty('HIDE_CENTRING_WRAP') && ($_SERVER['REQUEST_URI'] !== '/contacts/')) $result .= '<div class="centering">';
return $result;
})?>
......@@ -220,7 +224,11 @@ if ($APPLICATION->GetCurPage() == '/projects/online/') echo '<meta name="robots"
<?$APPLICATION->AddBufferContent(function() {
global $APPLICATION;
$result = '';
if(!$APPLICATION->GetProperty('HIDE_PAGE_CONTENT')) $result .= '<div class="page-contents">';
if(!$APPLICATION->GetProperty('HIDE_PAGE_CONTENT') && ($_SERVER['REQUEST_URI'] == '/contacts/') ){
$result .= '<div class="page-contents">';
}else{
$result .= '<div class="page-content">';
}
if(!$APPLICATION->GetProperty('HIDE_CENTRING_WRAP') && ($_SERVER['REQUEST_URI'] !== '/contacts/')) $result .= '<div class="centering">';
return $result;
})?>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!