regions done

This commit is contained in:
merelendor 2023-02-03 13:44:26 +03:00
parent 384d461837
commit 08dcf3ecdb
44 changed files with 1433 additions and 1103 deletions

View File

@ -1,4 +1,3 @@
<svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.4996 15.0995V12.0994C11.4996 11.9668 11.447 11.8397 11.3532 11.7459C11.2594 11.6521 11.1322 11.5994 10.9996 11.5994H8.99963C8.86703 11.5994 8.73985 11.6521 8.64608 11.7459C8.55231 11.8397 8.49963 11.9668 8.49963 12.0994V15.0995C8.49963 15.2321 8.44696 15.3593 8.35321 15.453C8.25945 15.5468 8.13229 15.5995 7.9997 15.5995L5.00006 15.5999C4.9344 15.5999 4.86937 15.587 4.8087 15.5619C4.74803 15.5367 4.6929 15.4999 4.64647 15.4535C4.60003 15.4071 4.5632 15.3519 4.53807 15.2913C4.51293 15.2306 4.5 15.1656 4.5 15.0999V9.32113C4.5 9.25147 4.51456 9.18258 4.54273 9.11887C4.57091 9.05517 4.61209 8.99805 4.66363 8.95119L9.66329 4.40527C9.75532 4.32158 9.87525 4.27521 9.99964 4.27521C10.124 4.2752 10.244 4.32157 10.336 4.40524L15.3363 8.95119C15.3879 8.99805 15.4291 9.05517 15.4573 9.11888C15.4854 9.18259 15.5 9.25149 15.5 9.32115V15.0999C15.5 15.1656 15.4871 15.2306 15.4619 15.2913C15.4368 15.3519 15.4 15.4071 15.3535 15.4535C15.3071 15.4999 15.252 15.5367 15.1913 15.5619C15.1306 15.587 15.0656 15.5999 14.9999 15.5999L11.9996 15.5995C11.867 15.5995 11.7398 15.5468 11.6461 15.453C11.5523 15.3593 11.4996 15.2321 11.4996 15.0995V15.0995Z" stroke="#1C01A9" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M2 2.09998V0.0999756H0V2.09998H2ZM18 2.09998H20V0.0999756H18V2.09998ZM18 18.1V20.1H20V18.1H18ZM2 18.1H0V20.1H2V18.1ZM2 4.09998H18V0.0999756H2V4.09998ZM16 2.09998V18.1H20V2.09998H16ZM18 16.1H2V20.1H18V16.1ZM4 18.1V2.09998H0V18.1H4Z" fill="white"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -2,5 +2,4 @@
<path d="M11.9648 4.59998C12.8125 4.82794 13.5853 5.27461 14.206 5.89527C14.8266 6.51592 15.2733 7.28877 15.5013 8.13639" stroke="#1C01A9" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M11.4453 6.53229C11.9539 6.66906 12.4176 6.93707 12.79 7.30946C13.1624 7.68186 13.4304 8.14556 13.5672 8.65414" stroke="#1C01A9" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M7.77977 9.90093C8.29842 10.9613 9.15792 11.8169 10.2206 12.3307C10.2984 12.3675 10.3844 12.3835 10.4702 12.377C10.5559 12.3705 10.6386 12.3418 10.7099 12.2937L12.2746 11.2503C12.3438 11.2041 12.4235 11.176 12.5063 11.1684C12.5891 11.1607 12.6725 11.1739 12.749 11.2067L15.6763 12.4612C15.7757 12.5035 15.8588 12.5769 15.9128 12.6704C15.9669 12.764 15.9892 12.8725 15.9762 12.9798C15.8837 13.7038 15.5304 14.3692 14.9826 14.8516C14.4347 15.3339 13.7299 15.5999 13 15.6C10.7457 15.6 8.58365 14.7044 6.98959 13.1104C5.39553 11.5163 4.5 9.35432 4.5 7.09998C4.50004 6.37008 4.76612 5.66523 5.24843 5.1174C5.73073 4.56956 6.39618 4.21631 7.12019 4.12379C7.22745 4.11081 7.33602 4.13304 7.42955 4.18713C7.52307 4.24122 7.59649 4.32424 7.63873 4.42368L8.89439 7.35354C8.92687 7.42933 8.9401 7.51197 8.93291 7.5941C8.92572 7.67624 8.89833 7.75532 8.85318 7.82431L7.81341 9.41304C7.76608 9.48451 7.7381 9.56703 7.73221 9.65255C7.72631 9.73806 7.7427 9.82364 7.77977 9.90093V9.90093Z" stroke="#1C01A9" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M2 2.09998V0.0999756H0V2.09998H2ZM18 2.09998H20V0.0999756H18V2.09998ZM18 18.1V20.1H20V18.1H18ZM2 18.1H0V20.1H2V18.1ZM2 4.09998H18V0.0999756H2V4.09998ZM16 2.09998V18.1H20V2.09998H16ZM18 16.1H2V20.1H18V16.1ZM4 18.1V2.09998H0V18.1H4Z" fill="white"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -1,5 +1,4 @@
<svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M10 16.1C13.3137 16.1 16 13.4137 16 10.1C16 6.78627 13.3137 4.09998 10 4.09998C6.68629 4.09998 4 6.78627 4 10.1C4 13.4137 6.68629 16.1 10 16.1Z" stroke="#1C01A9" stroke-miterlimit="10"/>
<path d="M10 6.59998V10.1H13.5" stroke="#1C01A9" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M2 2.09998V0.0999756H0V2.09998H2ZM18 2.09998H20V0.0999756H18V2.09998ZM18 18.1V20.1H20V18.1H18ZM2 18.1H0V20.1H2V18.1ZM2 4.09998H18V0.0999756H2V4.09998ZM16 2.09998V18.1H20V2.09998H16ZM18 16.1H2V20.1H18V16.1ZM4 18.1V2.09998H0V18.1H4Z" fill="white"/>
</svg>

Before

Width:  |  Height:  |  Size: 653 B

After

Width:  |  Height:  |  Size: 397 B

View File

@ -1,483 +0,0 @@
.e2_127 {
width:1680px;
height:408px;
position:relative;
}
.e2_128 {
width:1680px;
height:408px;
position:absolute;
left:0px;
top:0px;
}
.e2_129 {
background-color:rgba(237.45599180459976, 238.92479538917542, 244.7999945282936, 1);
width:1680px;
height:408px;
position:absolute;
left:0px;
top:0px;
}
.e2_130 {
width:1023px;
height:305px;
position:absolute;
left:184px;
top:44px;
}
.e2_131 {
color:rgba(0, 0, 0, 1);
width:97px;
height:23px;
position:absolute;
left:0px;
top:5px;
font-family:Montserrat;
text-align:left;
font-size:15px;
letter-spacing:0;
line-height:px;
}
.e2_132 {
color:rgba(0, 0, 0, 1);
width:141px;
height:23px;
position:absolute;
left:384px;
top:5px;
font-family:Montserrat;
text-align:left;
font-size:15px;
letter-spacing:0;
line-height:px;
}
.e2_133 {
color:rgba(0, 0, 0, 1);
width:100px;
height:23px;
position:absolute;
left:767px;
top:0px;
font-family:Montserrat;
text-align:left;
font-size:15px;
letter-spacing:0;
line-height:px;
}
.e2_134 {
width:256px;
height:264px;
position:absolute;
left:0px;
top:41px;
}
.e2_135 {
color:rgba(0, 0, 0, 1);
width:165px;
height:24px;
position:absolute;
left:0px;
top:0px;
font-family:Montserrat;
text-align:left;
font-size:15px;
letter-spacing:0;
line-height:px;
}
.e2_136 {
color:rgba(0, 0, 0, 1);
width:176px;
height:24px;
position:absolute;
left:0px;
top:40px;
font-family:Montserrat;
text-align:left;
font-size:15px;
letter-spacing:0;
line-height:px;
}
.e2_137 {
color:rgba(0, 0, 0, 1);
width:265px;
height:24px;
position:absolute;
left:0px;
top:80px;
font-family:Montserrat;
text-align:left;
font-size:15px;
letter-spacing:0;
line-height:px;
}
.e2_138 {
color:rgba(0, 0, 0, 1);
width:157px;
height:24px;
position:absolute;
left:0px;
top:120px;
font-family:Montserrat;
text-align:left;
font-size:15px;
letter-spacing:0;
line-height:px;
}
.e2_139 {
color:rgba(0, 0, 0, 1);
width:102px;
height:24px;
position:absolute;
left:0px;
top:160px;
font-family:Montserrat;
text-align:left;
font-size:15px;
letter-spacing:0;
line-height:px;
}
.e2_140 {
color:rgba(0, 0, 0, 1);
width:105px;
height:24px;
position:absolute;
left:0px;
top:200px;
font-family:Montserrat;
text-align:left;
font-size:15px;
letter-spacing:0;
line-height:px;
}
.e2_141 {
color:rgba(0, 0, 0, 1);
width:190px;
height:24px;
position:absolute;
left:0px;
top:240px;
font-family:Montserrat;
text-align:left;
font-size:15px;
letter-spacing:0;
line-height:px;
}
.e2_142 {
width:256px;
height:64px;
position:absolute;
left:384px;
top:41px;
}
.e2_143 {
color:rgba(0, 0, 0, 1);
width:77px;
height:24px;
position:absolute;
left:0px;
top:0px;
font-family:Montserrat;
text-align:left;
font-size:15px;
letter-spacing:0;
line-height:px;
}
.e2_144 {
color:rgba(0, 0, 0, 1);
width:265px;
height:24px;
position:absolute;
left:0px;
top:40px;
font-family:Montserrat;
text-align:left;
font-size:15px;
letter-spacing:0;
line-height:px;
}
.e2_145 {
width:256px;
height:224px;
position:absolute;
left:767px;
top:41px;
}
.e2_146 {
color:rgba(0, 0, 0, 1);
width:67px;
height:24px;
position:absolute;
left:0px;
top:0px;
font-family:Montserrat;
text-align:left;
font-size:15px;
letter-spacing:0;
line-height:px;
}
.e2_147 {
color:rgba(0, 0, 0, 1);
width:67px;
height:24px;
position:absolute;
left:0px;
top:40px;
font-family:Montserrat;
text-align:left;
font-size:15px;
letter-spacing:0;
line-height:px;
}
.e2_148 {
color:rgba(0, 0, 0, 1);
width:73px;
height:24px;
position:absolute;
left:0px;
top:80px;
font-family:Montserrat;
text-align:left;
font-size:15px;
letter-spacing:0;
line-height:px;
}
.e2_149 {
color:rgba(0, 0, 0, 1);
width:85px;
height:24px;
position:absolute;
left:0px;
top:120px;
font-family:Montserrat;
text-align:left;
font-size:15px;
letter-spacing:0;
line-height:px;
}
.e2_150 {
color:rgba(0, 0, 0, 1);
width:192px;
height:24px;
position:absolute;
left:0px;
top:160px;
font-family:Montserrat;
text-align:left;
font-size:15px;
letter-spacing:0;
line-height:px;
}
.e2_151 {
color:rgba(0, 0, 0, 1);
width:166px;
height:24px;
position:absolute;
left:0px;
top:200px;
font-family:Montserrat;
text-align:left;
font-size:15px;
letter-spacing:0;
line-height:px;
}
.e2_152 {
width:280px;
height:308px;
position:absolute;
left:1235px;
top:49px;
}
.e2_153 {
width:86px;
height:32px;
position:absolute;
left:0px;
top:146px;
}
.e2_154 {
width:32px;
height:32px;
position:absolute;
left:54px;
top:0px;
}
.ei2_154_2_39 {
background-color:rgba(142.4856662750244, 147.89163619279861, 166.81249290704727, 1);
width:24px;
height:23.866666793823242px;
position:absolute;
left:4px;
top:4px;
}
.ei2_154_2_40 {
background-image:linear-gradient(0deg, rgba(0, 98.00000175833702, 224.000001847744, 1) 0%,rgba(25.000000409781933, 175.00000476837158, 255, 1) 100%) ;
width:24px;
height:23.866666793823242px;
position:absolute;
left:0px;
top:0px;
}
.ei2_154_2_41 {
background-color:rgba(255, 255, 255, 1);
width:10.333335876464844px;
height:19.333332061767578px;
position:absolute;
left:7px;
top:4.6666669845581055px;
}
.e2_155 {
width:32px;
height:32px;
position:absolute;
left:0px;
top:0px;
}
.ei2_155_2_43 {
background-color:rgba(142.4856662750244, 147.89163619279861, 166.81249290704727, 1);
width:23.271778106689453px;
height:23.272724151611328px;
position:absolute;
left:4.363514423370361px;
top:4.363651752471924px;
}
.e2_156 {
width:175px;
height:32px;
position:absolute;
left:0px;
top:0px;
}
.e2_157 {
color:rgba(0, 0, 0, 1);
width:126px;
height:24px;
position:absolute;
left:49px;
top:4px;
font-family:Montserrat;
text-align:left;
font-size:16px;
letter-spacing:0;
line-height:px;
}
.e2_158 {
width:32px;
height:32px;
position:absolute;
left:0px;
top:0px;
}
.ei2_158_2_45 {
position:absolute;
left:0px;
top:0px;
}
.ei2_158_2_46 {
width:32px;
height:32px;
position:absolute;
left:0px;
top:0px;
}
.i2_158_2_47 {
border:2px solid rgba(142.4856662750244, 147.89163619279861, 166.81249290704727, 1);
}
.ei2_158_2_47 {
width:24px;
height:11px;
position:absolute;
left:4px;
top:7px;
}
.i2_158_2_48 {
border:2px solid rgba(142.4856662750244, 147.89163619279861, 166.81249290704727, 1);
}
.ei2_158_2_48 {
width:24px;
height:18px;
position:absolute;
left:4px;
top:7px;
}
.i2_158_2_49 {
border:2px solid rgba(142.4856662750244, 147.89163619279861, 166.81249290704727, 1);
}
.ei2_158_2_49 {
width:9.50982666015625px;
height:8.717390060424805px;
position:absolute;
left:4.308350086212158px;
top:16.000017166137695px;
}
.i2_158_2_50 {
border:2px solid rgba(142.4856662750244, 147.89163619279861, 166.81249290704727, 1);
}
.ei2_158_2_50 {
width:9.509992599487305px;
height:8.717452049255371px;
position:absolute;
left:18.181779861450195px;
top:15.999955177307129px;
}
.e2_159 {
width:171px;
height:32px;
position:absolute;
left:0px;
top:73px;
}
.e2_160 {
color:rgba(0, 0, 0, 1);
width:122px;
height:24px;
position:absolute;
left:49px;
top:4px;
font-family:Montserrat;
text-align:left;
font-size:16px;
letter-spacing:0;
line-height:px;
}
.e2_161 {
width:32px;
height:32px;
position:absolute;
left:0px;
top:0px;
}
.ei2_161_2_53 {
position:absolute;
left:0px;
top:0px;
}
.ei2_161_2_54 {
width:32px;
height:32px;
position:absolute;
left:0px;
top:0px;
}
.i2_161_2_55 {
border:2px solid rgba(142.4856662750244, 147.89163619279861, 166.81249290704727, 1);
}
.ei2_161_2_55 {
width:22.9595947265625px;
height:22.9595947265625px;
position:absolute;
left:5px;
top:4.040404796600342px;
}
.e2_162 {
color:rgba(93.00000205636024, 95.00000193715096, 239.00000095367432, 1);
width:271px;
height:96px;
position:absolute;
left:9px;
top:212px;
font-family:Montserrat;
text-align:left;
font-size:15px;
letter-spacing:0;
line-height:px;
}

View File

@ -1,58 +0,0 @@
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
/** @var array $arParams */
/** @var array $arResult */
/** @global CMain $APPLICATION */
/** @global CUser $USER */
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixComponent $component */
$this->setFrameMode(true);
?>
<div class=e2_127>
<div class=e2_128>
<div class="e2_129"></div>
<div class=e2_130><span class="e2_131">Программы</span><span class="e2_132">Каталог техники</span><span class="e2_133">О компании</span>
<div class=e2_134><span class="e2_135">Лизинг для ЮЛ и ИП</span><span class="e2_136">Легковые автомобили</span><span class="e2_137">Легкий коммерческий транспорт</span><span class="e2_138">Грузовой транспорт</span><span class="e2_139">Спецтехника</span><span class="e2_140">Лизинг такси</span><span class="e2_141">Лизинг авто с пробегом</span></div>
<div class=e2_142><span class="e2_143">Легковые</span><span class="e2_144">Легкий коммерческий транспорт</span></div>
<div class=e2_145><span class="e2_146">Новости</span><span class="e2_147">Карьера</span><span class="e2_148">Контакты</span><span class="e2_149">Реквизиты</span><span class="e2_150">Общие условия лизинга</span><span class="e2_151">Отзыв доверенности</span></div>
</div>
</div>
<div class=e2_152>
<div class=e2_153>
<div class=e2_154>
<div class=ei2_154_2_39>
<div class="ei2_154_2_40"></div>
<div class="ei2_154_2_41"></div>
</div>
</div>
<div class=e2_155>
<div class="ei2_155_2_43"></div>
</div>
</div>
<div class=e2_156><span class="e2_157">mail@mail.com</span>
<div class=e2_158>
<div class=ei2_158_2_45>
<div class="ei2_158_2_46"></div>
<div class="ei2_158_2_47"></div>
<div class="ei2_158_2_48"></div>
<div class="ei2_158_2_49"></div>
<div class="ei2_158_2_50"></div>
</div>
</div>
</div>
<div class=e2_159><span class="e2_160">8 800 333 75 75</span>
<div class=e2_161>
<div class=ei2_161_2_53>
<div class="ei2_161_2_54"></div>
<div class="ei2_161_2_55"></div>
</div>
</div>
</div><span class="e2_162">© ООО "ЛК Эволюция"
Обработка персональных данных
Общие условия договора лизинга</span>
</div>
</div>

View File

@ -1,18 +0,0 @@
<?
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
/** @var CBitrixComponent $this */
/** @var array $arParams */
/** @var array $arResult */
/** @var string $componentPath */
/** @var string $componentName */
/** @var string $componentTemplate */
/** @global CDatabase $DB */
/** @global CUser $USER */
/** @global CMain $APPLICATION */
use Bitrix\Main\Context,
Bitrix\Main\Type\DateTime,
Bitrix\Main\Loader,
Bitrix\Iblock;
$this->includeComponentTemplate();

View File

@ -1,289 +0,0 @@
.e1152_13361 {
width:1680px;
height:112px;
}
.ei1152_13361_1152_11074 {
box-shadow:8px 8px 16px rgba(132.82577902078629, 138.68466943502426, 145.56249797344208, 0.05999999865889549);
background-color:rgba(255, 255, 255, 1);
width:1680px;
height:112px;
position:absolute;
left:0px;
top:0px;
}
.ei1152_13361_1152_11091 {
width:487.29998779296875px;
height:32px;
position:absolute;
left:184px;
top:40px;
}
.ei1152_13361_1152_11092 {
width:216.90390014648438px;
height:32px;
position:absolute;
left:0px;
top:4px;
}
.ei1152_13361_1152_11093 {
background-color:rgba(28.000000230968, 1.0000000591389835, 169.00000512599945, 1);
width:18.58649253845215px;
height:22.523557662963867px;
position:absolute;
left:3.8456313610076904px;
top:5.6843418860808015e-14px;
}
.ei1152_13361_1152_11094 {
transform: rotate(-1.7400791172503784deg);
background-color:rgba(28.000000230968, 1.0000000591389835, 169.00000512599945, 1);
width:6.226019382476807px;
height:6.226022243499756px;
position:absolute;
left:8.375836372375488px;
top:8.381617546081543px;
}
.ei1152_13361_1152_11095 {
background-color:rgba(28.000000230968, 1.0000000591389835, 169.00000512599945, 1);
width:22.20307159423828px;
height:6.866942405700684px;
position:absolute;
left:-2.2737367544323206e-13px;
top:25.133060455322266px;
}
.ei1152_13361_1152_11096 {
background-color:rgba(28.000000230968, 1.0000000591389835, 169.00000512599945, 1);
width:16.984224319458008px;
height:21.51640510559082px;
position:absolute;
left:29.665422439575195px;
top:0.5034685730934143px;
}
.ei1152_13361_1152_11097 {
background-color:rgba(28.000000230968, 1.0000000591389835, 169.00000512599945, 1);
width:22.24888801574707px;
height:22.523557662963867px;
position:absolute;
left:52.27999496459961px;
top:5.6843418860808015e-14px;
}
.ei1152_13361_1152_11098 {
background-color:rgba(28.000000230968, 1.0000000591389835, 169.00000512599945, 1);
width:30.627775192260742px;
height:22.569332122802734px;
position:absolute;
left:105.6590347290039px;
top:5.6843418860808015e-14px;
}
.ei1152_13361_1152_11099 {
background-color:rgba(28.000000230968, 1.0000000591389835, 169.00000512599945, 1);
width:21.28743553161621px;
height:21.51640510559082px;
position:absolute;
left:78.1916275024414px;
top:0.5034685730934143px;
}
.ei1152_13361_1152_11100 {
background-color:rgba(28.000000230968, 1.0000000591389835, 169.00000512599945, 1);
width:23.21016502380371px;
height:21.51640510559082px;
position:absolute;
left:142.6034698486328px;
top:0.5034685730934143px;
}
.ei1152_13361_1152_11101 {
background-color:rgba(28.000000230968, 1.0000000591389835, 169.00000512599945, 1);
width:19.685165405273438px;
height:21.51640510559082px;
position:absolute;
left:172.54318237304688px;
top:0.5034685730934143px;
}
.ei1152_13361_1152_11102 {
background-color:rgba(28.000000230968, 1.0000000591389835, 169.00000512599945, 1);
width:19.365211486816406px;
height:21.51640510559082px;
position:absolute;
left:197.53866577148438px;
top:0.5034685730934143px;
}
.i1152_13361_1152_11103 {
border:1px solid rgba(231.00000143051147, 233.00000131130219, 240.00000089406967, 1);
}
.ei1152_13361_1152_11103 {
position:absolute;
left:248.90390014648438px;
top:0px;
}
.ei1152_13361_1152_11104 {
width:744px;
height:24px;
position:absolute;
left:280.9039001464844px;
top:4px;
}
.ei1152_13361_1152_11105 {
width:104px;
height:24px;
position:absolute;
left:0px;
top:0px;
}
.ei1152_13361_1152_11106 {
color:rgba(11.68750025331974, 11.68750025331974, 11.68750025331974, 1);
width:104px;
height:24px;
position:absolute;
left:0px;
top:0px;
font-family:Montserrat;
text-align:left;
font-size:16px;
letter-spacing:0;
line-height:px;
}
.ei1152_13361_1152_11110 {
color:rgba(11.68750025331974, 11.68750025331974, 11.68750025331974, 1);
width:166px;
height:24px;
position:absolute;
left:128px;
top:0px;
font-family:Montserrat;
text-align:left;
font-size:16px;
letter-spacing:0;
line-height:px;
}
.ei1152_13361_1152_11111 {
color:rgba(11.68750025331974, 11.68750025331974, 11.68750025331974, 1);
width:78px;
height:24px;
position:absolute;
left:318px;
top:0px;
font-family:Montserrat;
text-align:left;
font-size:16px;
letter-spacing:0;
line-height:px;
}
.ei1152_13361_1152_11112 {
color:rgba(11.68750025331974, 11.68750025331974, 11.68750025331974, 1);
width:194px;
height:24px;
position:absolute;
left:420px;
top:0px;
font-family:Montserrat;
text-align:left;
font-size:16px;
letter-spacing:0;
line-height:px;
}
.ei1152_13361_1152_11113 {
width:106px;
height:24px;
position:absolute;
left:638px;
top:0px;
}
.ei1152_13361_1152_11114 {
color:rgba(11.68750025331974, 11.68750025331974, 11.68750025331974, 1);
width:106px;
height:24px;
position:absolute;
left:0px;
top:0px;
font-family:Montserrat;
text-align:left;
font-size:16px;
letter-spacing:0;
line-height:px;
}
.ei1152_13361_1152_11115 {
width:10px;
height:10px;
position:absolute;
left:88px;
top:5px;
}
.ei1152_13361_1152_11116 {
width:225px;
height:32px;
position:absolute;
left:1272px;
top:40px;
}
.i1152_13361_1152_11117 {
border:1px solid rgba(231.00000143051147, 233.00000131130219, 240.00000089406967, 1);
}
.ei1152_13361_1152_11117 {
position:absolute;
left:166px;
top:0px;
}
.ei1152_13361_1152_11118 {
border-radius:500px;
width:32px;
height:32px;
position:absolute;
left:193px;
top:0px;
}
.i1152_13361_1152_11118 {
border:1px solid rgba(11.68750025331974, 11.68750025331974, 11.68750025331974, 1);
}
.ei1152_13361_1152_11119 {
width:22px;
height:22px;
position:absolute;
left:198px;
top:5px;
}
.ei1152_13361_1152_11119_20_1097 {
width:22px;
height:22px;
position:absolute;
left:0px;
top:0px;
}
.ei1152_13361_1152_11119_20_1098 {
width:22px;
height:22px;
position:absolute;
left:0px;
top:0px;
}
.i1152_13361_1152_11119_20_1099 {
border:2px solid rgba(11.68750025331974, 11.68750025331974, 11.68750025331974, 1);
}
.ei1152_13361_1152_11119_20_1099 {
width:11px;
height:11px;
position:absolute;
left:5.5px;
top:2.75px;
}
.i1152_13361_1152_11119_20_1100 {
border:2px solid rgba(11.68750025331974, 11.68750025331974, 11.68750025331974, 1);
}
.ei1152_13361_1152_11119_20_1100 {
width:16.67386245727539px;
height:4.811868667602539px;
position:absolute;
left:2.6631453037261963px;
top:13.75px;
}
.ei1152_13361_1152_11120 {
color:rgba(11.68750025331974, 11.68750025331974, 11.68750025331974, 1);
width:139px;
height:24px;
position:absolute;
left:0px;
top:5px;
font-family:Montserrat;
text-align:left;
font-size:16px;
letter-spacing:0;
line-height:px;
}

View File

@ -1,49 +0,0 @@
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
/** @var array $arParams */
/** @var array $arResult */
/** @global CMain $APPLICATION */
/** @global CUser $USER */
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixComponent $component */
$this->setFrameMode(true);
?>
<div class=e1152_13361>
<div class="ei1152_13361_1152_11074"></div>
<div class=ei1152_13361_1152_11091>
<div class=ei1152_13361_1152_11092>
<div class="ei1152_13361_1152_11093"></div>
<div class="ei1152_13361_1152_11094"></div>
<div class="ei1152_13361_1152_11095"></div>
<div class="ei1152_13361_1152_11096"></div>
<div class="ei1152_13361_1152_11097"></div>
<div class="ei1152_13361_1152_11098"></div>
<div class="ei1152_13361_1152_11099"></div>
<div class="ei1152_13361_1152_11100"></div>
<div class="ei1152_13361_1152_11101"></div>
<div class="ei1152_13361_1152_11102"></div>
</div>
<div class="ei1152_13361_1152_11103"></div>
<div class=ei1152_13361_1152_11104>
<div class=ei1152_13361_1152_11105><span class="ei1152_13361_1152_11106">Программы</span></div><span class="ei1152_13361_1152_11110">Спецпредложения</span><span class="ei1152_13361_1152_11111">Сервисы</span><span class="ei1152_13361_1152_11112">Каталог автомобилей</span>
<div class=ei1152_13361_1152_11113><span class="ei1152_13361_1152_11114">О компании</span>
<div class=ei1152_13361_1152_11115></div>
</div>
</div>
</div>
<div class=ei1152_13361_1152_11116>
<div class="ei1152_13361_1152_11117"></div>
<div class="ei1152_13361_1152_11118"></div>
<div class=ei1152_13361_1152_11119>
<div class=ei1152_13361_1152_11119_20_1097>
<div class="ei1152_13361_1152_11119_20_1098"></div>
<div class="ei1152_13361_1152_11119_20_1099"></div>
<div class="ei1152_13361_1152_11119_20_1100"></div>
</div>
</div><span class="ei1152_13361_1152_11120">+7 495 000 00 00</span>
</div>
</div>

View File

@ -39,9 +39,9 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true))))
{
if(!empty($schedule['PROPERTIES']['WEEKDAY_'.$day.'_FROM']['VALUE']) && $schedule['PROPERTIES']['WEEKDAY_'.$day.'_TO']['VALUE'])
{
$from = mktime($schedule['PROPERTIES']['WEEKDAY_'.$day.'_FROM']['VALUE'].":00");
$now = mktime( $time.":00" );
$to = mktime($schedule['PROPERTIES']['WEEKDAY_'.$day.'_TO']['VALUE'].":00");
$from = strtotime($schedule['PROPERTIES']['WEEKDAY_'.$day.'_FROM']['VALUE'].":00");
$now = strtotime( $time.":00" );
$to = strtotime($schedule['PROPERTIES']['WEEKDAY_'.$day.'_TO']['VALUE'].":00");
if($now >= $from && $now < $to)
{

View File

@ -13,10 +13,10 @@
$this->setFrameMode(true);
?>
<div class="brand_catalogue_list">
<p class="brand_catalogue_title"><?= $arParams['TITLE']; ?></p>
<h2 class="brand_catalogue_title"><?= $arParams['TITLE']; ?></h2>
<? foreach($arResult['BRANDS'] AS $brand): ?>
<div class="brand_catalogue_item">
<a href="/catalog/<?= $brand['CODE']; ?>/">
<a href="<?= $arParams['PATH']; ?><?= $brand['CODE']; ?>/">
<span><?= $brand['NAME']; ?></span>
<img src="<?= ($brand['PREVIEW_PICTURE'] != "") ? $brand['PREVIEW_PICTURE'] : "/images/no_car_photo_380.png"; ?>" alt="<?= $brand['NAME']; ?>" loading="lazy" />
</a>

View File

@ -0,0 +1,8 @@
<?
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
$arTemplateDescription = array(
"NAME" => GetMessage("DEFAULT_NAME"),
"DESCRIPTION" => GetMessage("DEFAULT_DESC"),
);
?>

View File

@ -0,0 +1,42 @@
<?
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
/** @var CBitrixComponent $this */
/** @var array $arParams */
/** @var array $arResult */
/** @var string $componentPath */
/** @var string $componentName */
/** @var string $componentTemplate */
/** @global CDatabase $DB */
/** @global CUser $USER */
/** @global CMain $APPLICATION */
use Bitrix\Main\Context,
Bitrix\Main\Type\DateTime,
Bitrix\Main\Loader,
Bitrix\Iblock;
//if($this->StartResultCache(60*60*24, md5(var_export($_POST, true))))
//{
if(CModule::IncludeModule('iblock'))
{
$arResult = [
'CITIES' => []
];
$cities_res = CIBlockElement::GetList([ "NAME" => "ASC" ], [ "ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_CITIES ], false, []);
while ($cities_ob_element = $cities_res->GetNextElement())
{
$cities_ar_res = $cities_ob_element->GetFields();
$cities_ar_res['PROPERTIES'] = $cities_ob_element->GetProperties();
if(isset($cities_ar_res['PREVIEW_PICTURE']))
{
$cities_ar_res['PREVIEW_PICTURE'] = CFile::GetPath($cities_ar_res['PREVIEW_PICTURE']);
}
$arResult['CITIES'][] = $cities_ar_res;
}
$this->IncludeComponentTemplate();
}
//}

View File

@ -0,0 +1,4 @@
<?
$MESS ['DEFAULT_NAME'] = "Список городов лизинга";
$MESS ['DEFAULT_DESC'] = "Список городов лизинга";
?>

View File

@ -0,0 +1,25 @@
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
/** @var array $arParams */
/** @var array $arResult */
/** @global CMain $APPLICATION */
/** @global CUser $USER */
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixComponent $component */
$this->setFrameMode(true);
?>
<div class="brand_catalogue_list">
<h2 class="brand_catalogue_title"><?= $arParams['TITLE']; ?></h2>
<? foreach($arResult['CITIES'] AS $city): ?>
<div class="brand_catalogue_item">
<a href="/regions/<?= $city['CODE']; ?>/">
<span><?= $city['NAME']; ?></span>
<img src="<?= ($city['PREVIEW_PICTURE'] != "") ? $city['PREVIEW_PICTURE'] : "/images/no_image_380.png"; ?>" alt="<?= $city['NAME']; ?>" loading="lazy" />
</a>
</div>
<? endforeach; ?>
</div>

View File

@ -0,0 +1,8 @@
<?
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
$arTemplateDescription = array(
"NAME" => GetMessage("DEFAULT_NAME"),
"DESCRIPTION" => GetMessage("DEFAULT_DESC"),
);
?>

View File

@ -15,4 +15,4 @@ use Bitrix\Main\Context,
Bitrix\Main\Loader,
Bitrix\Iblock;
$this->includeComponentTemplate();
$this->IncludeComponentTemplate();

View File

@ -0,0 +1,4 @@
<?
$MESS ['DEFAULT_NAME'] = "Список офисов для региона";
$MESS ['DEFAULT_DESC'] = "Список офисов для региона";
?>

View File

@ -0,0 +1,144 @@
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
/** @var array $arParams */
/** @var array $arResult */
/** @global CMain $APPLICATION */
/** @global CUser $USER */
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixComponent $component */
$this->setFrameMode(true);
?>
<?
$placemarks = [];
foreach($arParams['CITY']['PROPERTIES']['OFFICES']['RELATED'] AS $office)
{
$content = "";
$content .= "<p><b>".$office['NAME']."</b></p>";
$coords = explode(",", $office['PROPERTIES']['GEO']['VALUE']);
array_push($placemarks, [
"coords" => $coords,
"content" => $content,
]);
}
?>
<h2 style="margin-bottom: 24px;">Контакты в <?= $arParams['CITY']['PROPERTIES']['CASE']['VALUE']; ?></h2>
<div class="contacts_block" style="margin-bottom: 16px;">
<div id="map"></div>
<script src="https://api-maps.yandex.ru/2.1/?apikey=e417e630-1f5b-4b07-8c7d-cb4d22dd1841&lang=ru_RU" type="text/javascript"></script>
<script>
ymaps.ready(init);
function init()
{
window.map = new ymaps.Map('map',
{
center: [<?= $placemarks[0]['coords'][0]; ?>, <?= $placemarks[0]['coords'][1]; ?>],
zoom: 9,
controls: []
});
MyBalloonLayout = ymaps.templateLayoutFactory.createClass(
'<div class="popover top">' +
'<a class="close" href="#">&times;</a>' +
'<div class="arrow"></div>' +
'<div class="popover-inner">' +
'$[[options.contentLayout observeSize minWidth=235 maxWidth=500 maxHeight=400]]' +
'</div>' +
'</div>', {
build: function () {
this.constructor.superclass.build.call(this);
this._$element = $('.popover', this.getParentElement());
this.applyElementOffset();
this._$element.find('.close')
.on('click', $.proxy(this.onCloseClick, this));
},
clear: function () {
this._$element.find('.close')
.off('click');
this.constructor.superclass.clear.call(this);
},
onSublayoutSizeChange: function () {
MyBalloonLayout.superclass.onSublayoutSizeChange.apply(this, arguments);
if (!this._isElement(this._$element)) {
return;
}
this.applyElementOffset();
this.events.fire('shapechange');
},
applyElementOffset: function () {
this._$element.css({
left: -(this._$element[0].offsetWidth / 2),
top: -(this._$element[0].offsetHeight + this._$element.find('.arrow')[0].offsetHeight)
});
},
onCloseClick: function (e) {
e.preventDefault();
this.events.fire('userclose');
},
getShape: function () {
if (!this._isElement(this._$element)) {
return MyBalloonLayout.superclass.getShape.call(this);
}
var position = this._$element.position();
return new ymaps.shape.Rectangle(new ymaps.geometry.pixel.Rectangle([
[position.left, position.top], [
position.left + this._$element[0].offsetWidth,
position.top + this._$element[0].offsetHeight + this._$element.find('.arrow')[0].offsetHeight
]
]));
},
_isElement: function (element) {
return element && element[0] && element.find('.arrow')[0];
}
});
var MyBalloonContentLayout = ymaps.templateLayoutFactory.createClass(
'<h3 class="popover-title">$[properties.balloonHeader]</h3>' +
'<div class="popover-content">$[properties.balloonContent]</div>'
);
let offices = [
<? foreach($placemarks AS $placemark): ?>
new ymaps.Placemark([<?= $placemark['coords'][0]; ?>, <?= $placemark['coords'][1]; ?>], {
balloonContent: '<?= $placemark['content']; ?>'
}, {
balloonShadow: false,
balloonLayout: MyBalloonLayout,
balloonContentLayout: MyBalloonContentLayout,
balloonPanelMaxMapArea: 0,
balloonOffset: [0, 29],
iconLayout: 'default#imageWithContent',
iconImageHref: '/images/pin.svg',
iconImageSize: [43, 54],
iconImageOffset: [-21, -54],
iconContentOffset: [15, 15]
}),
<? endforeach; ?>
];
for(let i in offices)
{
window.map.geoObjects.add(offices[i]);
}
}
</script>
<div class="block_info_list">
<? foreach($arParams['CITY']['PROPERTIES']['OFFICES']['RELATED'] AS $office): ?>
<div class="block_info">
<p class="block_title"><?= $office['NAME']; ?></p>
<p class="i-address"><?= $office['PROPERTIES']['ADDRESS']['VALUE']; ?></p>
<p class="i-worktime"><?= $office['PROPERTIES']['HOURS']['VALUE']; ?></p>
<p class="i-phone"><a href="tel:<?= str_replace(" ", "", $office['PROPERTIES']['PHONE']['VALUE']); ?>"><?= $office['PROPERTIES']['PHONE']['VALUE']; ?></a></p>
</div>
<? endforeach; ?>
</div>
</div>

View File

@ -0,0 +1,8 @@
<?
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
$arTemplateDescription = array(
"NAME" => GetMessage("DEFAULT_NAME"),
"DESCRIPTION" => GetMessage("DEFAULT_DESC"),
);
?>

View File

@ -0,0 +1,41 @@
<?
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
/** @var CBitrixComponent $this */
/** @var array $arParams */
/** @var array $arResult */
/** @var string $componentPath */
/** @var string $componentName */
/** @var string $componentTemplate */
/** @global CDatabase $DB */
/** @global CUser $USER */
/** @global CMain $APPLICATION */
use Bitrix\Main\Context,
Bitrix\Main\Type\DateTime,
Bitrix\Main\Loader,
Bitrix\Iblock;
if(!empty($arParams['CITY']['LEADER_CRM_ID']))
{
$c = curl_init();
curl_setopt($c, CURLOPT_URL, API_HOST . "/site/GetBusinessUnitInfo?code=" . $arParams['CITY']['LEADER_CRM_ID']);
curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($c, CURLOPT_TIMEOUT, 30);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($c, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));
$response = curl_exec($c);
$httpcode = curl_getinfo($c, CURLINFO_HTTP_CODE);
curl_close($c);
$arResult['LEADER'] = [];
if($httpcode === 200)
{
$arResult['LEADER'] = json_decode($response, true);
}
}
$this->IncludeComponentTemplate();

View File

@ -0,0 +1,4 @@
<?
$MESS ['DEFAULT_NAME'] = "Команда региона";
$MESS ['DEFAULT_DESC'] = "Команда региона";
?>

View File

@ -0,0 +1,38 @@
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
/** @var array $arParams */
/** @var array $arResult */
/** @global CMain $APPLICATION */
/** @global CUser $USER */
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixComponent $component */
$this->setFrameMode(true);
?>
<? if(count($arResult['LEADER']) > 0): ?>
<div class="container container_with_filter <?= $arParams['EXTENDED'] ? "container_with_filter_with_margin" : ""; ?>" style="width: 100%; padding-top: 0px; margin-left: 0px; margin-right: 0px;">
<h2 style="margin-bottom: 24px;">Наша команда</h2>
<div class="person_comment">
<div class="person_avatar">
<img src="<?= !empty($arResult['LEADER']['image']) ? "data:image/png;base64, ".$arResult['LEADER']['image'] : "/images/no_image_380.png"; ?>" alt="" width="160" height="160" />
</div>
<div class="sep"></div>
<div class="person_text">
<p>Обращайтесь к нам по номеру телефона <a href="tel:<?= str_replace(" ", "", $arParams['CITY']['PROPERTIES']['OFFICES']['RELATED'][0]['PROPERTIES']['PHONE']['VALUE']); ?>"><?= $arParams['CITY']['PROPERTIES']['OFFICES']['RELATED'][0]['PROPERTIES']['PHONE']['VALUE']; ?></a>, либо на почту <a href="mailto:buy@evoleasing.ru">buy@evoleasing.ru</a> Будем рады помочь вам купить <?= !is_null($arParams['BRAND']) ? $arParams['BRAND'] : "автомобиль"; ?><?= !is_null($arParams['MODEL']) ? " ".$arParams['MODEL'] : ""; ?> в лизинг в <?= $arParams['CITY']['PROPERTIES']['CASE']['VALUE']; ?> на лучших условиях. Наш офис находится по адресу <?= $arParams['CITY']['PROPERTIES']['OFFICES']['RELATED'][0]['PROPERTIES']['ADDRESS']['VALUE']; ?>.</p>
<p class="person_name">
<span><?= $arResult['LEADER']['firstName']; ?> <?= $arResult['LEADER']['secondName']; ?></span>
<?= $arResult['LEADER']['post']; ?>
</p>
</div>
</div>
<?
/*ПОКА СКРЫВАЕМ*/
/*
<p>Компания Эволюция предлагает лучшие условия на лизинговые программы в <?= $arParams['CITY']['PROPERTIES']['CASE']['VALUE']; ?> юридическим лицам, ИП для покупки легковых автомобилей, коммерческого транспорта, грузового транспорта, спецтехники, мотоциклов, такси. Подбор машин в <?= $arParams['CITY']['PROPERTIES']['CASE']['VALUE']; ?> осуществляется с учетом всех пожеланий клиента. В нашем онлайн-каталоге представлено более 3 000 автомобилей на любой бюджет. Если у вас есть особые пожелания к автомобилю, то мы готовы помочь с поиском и найти нужный вариант.</p>
*/
?>
</div>
<? endif; ?>

View File

@ -43,7 +43,13 @@ use Bitrix\Main\Context,
$arResult['TITLE'] = $arParams['RECOMMENDED'] ? "Каталог автомобилей ".$brands[$arParams['BRAND']]['NAME'] : "";
$models_res = CIBlockElement::GetList([ "NAME" => "ASC" ], [ "ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_MODELS, "PROPERTY_BRAND_UID" => $brands[$arParams['BRAND']]['UID'] ], false, []);
$models_filter = [ "ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_MODELS, "PROPERTY_BRAND_UID" => $brands[$arParams['BRAND']]['UID'] ];
if($arParams['REGIONS'])
{
//$models_filter["PROPERTY_PROMO_VALUE"] = "Да";
}
$models_res = CIBlockElement::GetList([ "NAME" => "ASC" ], $models_filter, false, []);
while ($models_ob_element = $models_res->GetNextElement())
{
$models_ar_res = $models_ob_element->GetFields();
@ -67,7 +73,15 @@ use Bitrix\Main\Context,
}
}
$models_ar_res['URL'] = "/catalog/".$brands[$arParams['BRAND']]['CODE']."/".$models_ar_res['CODE']."/";
$models_ar_res['URL'] = $arParams['PATH'].$brands[$arParams['BRAND']]['CODE']."/".$models_ar_res['CODE']."/";
if($arParams['REGIONS'])
{
if($models_ar_res['PROPERTIES']['REGIONS']['VALUE'] !== "Да")
{
$models_ar_res['URL'] = "/catalog/".$brands[$arParams['BRAND']]['CODE']."/".$models_ar_res['CODE']."/";
}
}
$arResult['MODELS'][] = $models_ar_res;
}

View File

@ -50,7 +50,7 @@ $this->setFrameMode(true);
</div>
<? endforeach; ?>
</div>
<a class="catalog_show_more_button" href="/catalog/<?= $brand['CODE']; ?>/">
<a class="catalog_show_more_button" href="<?= $arParams['PATH']; ?><?= $brand['CODE']; ?>/">
<span>Показать еще</span>
</a>
<? endforeach; ?>

View File

@ -50,7 +50,7 @@ $this->setFrameMode(true);
</div>
<? endforeach; ?>
</div>
<a class="catalog_show_more_button" href="/catalog/<?= $arParams['BRAND_CODE']; ?>/<?= $model['CODE']; ?>/">
<a class="catalog_show_more_button" href="<?= $arParams['PATH']; ?><?= $arParams['BRAND_CODE']; ?>/<?= $model['CODE']; ?>/">
<span>Показать еще</span>
</a>
<? endforeach; ?>

View File

@ -13,7 +13,7 @@
$this->setFrameMode(true);
?>
<? if(count($arResult['ITEMS']) > 0): ?>
<h2 class="catalog_h2_title <?= $arParams['EXTENDED'] ? "catalog_h2_title_with_filter" : ""; ?>" id="catalog_special_h2">Спецпредложения</h2>
<h2 class="catalog_h2_title <?= $arParams['EXTENDED'] ? "" : ""; ?>" id="catalog_special_h2">Спецпредложения</h2>
<div id="list" class="catalog_list">
<? foreach($arResult['ITEMS'] AS $arItem): ?>
<div class="catalog_item">

View File

@ -22,6 +22,8 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true))))
{
if(CModule::IncludeModule('iblock'))
{
$breadcrumbs = [];
$arResult = [
'SELECTED' => [],
'TITLES' => [],
@ -106,7 +108,10 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true))))
$arResult['SHOW_PROMO_BRANDS'] = false;
$APPLICATION->AddChainItem($brands_ar_res['NAME'], "https://".SITE_SERVER_NAME."/catalog/".$arResult['SELECTED']['BRAND']."/");
array_push($breadcrumbs, [
"NAME" => $brands_ar_res['NAME'],
"URL" => "https://".SITE_SERVER_NAME.$arParams['PATH'].$arResult['SELECTED']['BRAND']."/",
]);
}
$arResult['EXTENDED'] = true;
@ -141,7 +146,10 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true))))
$arResult['SHOW_PROMO_BRANDS'] = false;
}
$APPLICATION->AddChainItem($models_ar_res['NAME'], "https://".SITE_SERVER_NAME."/catalog/".$arResult['SELECTED']['BRAND']."/".$arResult['SELECTED']['MODEL']."/");
array_push($breadcrumbs, [
"NAME" => $models_ar_res['NAME'],
"URL" => "https://".SITE_SERVER_NAME.$arParams['PATH'].$arResult['SELECTED']['BRAND']."/".$arResult['SELECTED']['MODEL']."/",
]);
}
$arResult['EXTENDED'] = true;
@ -187,7 +195,7 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true))))
}
else
{
LocalRedirect("https://".SITE_SERVER_NAME."/catalog/".$arResult['SELECTED']['BRAND']."/".$arResult['SELECTED']['MODEL']."/", true, "301 Moved permanently");
LocalRedirect("https://".SITE_SERVER_NAME.$arParams['PATH'].$arResult['SELECTED']['BRAND']."/".$arResult['SELECTED']['MODEL']."/", true, "301 Moved permanently");
}
}
@ -487,6 +495,93 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true))))
$arResult['SHOW_SPECIAL_OFFERS'] = false;
}
if(!is_null($arParams['REGION']))
{
if($arParams['REGION'] === "root")
{
$arResult['TITLE'] = "Лизинг в регионах России";
$arResult['SUBTITLE'] = " для юридических лиц и ИП";
$APPLICATION->SetPageProperty("title", "Лизинг в регионах России для юридических лиц и ИП | Эволюция");
$APPLICATION->SetPageProperty("description", "Лизинговая компания Эволюция предлагает быстрое оформление авто в лизинг в регионах России для юридических лиц и ИП. Выгодные цены, спецпредложения, простое оформление, консультирование и сопровождение.");
$APPLICATION->SetPageProperty("keywords", "Лизинг в России, лизинг в регионах России");
}
else
{
//IBLOCK_ID_CITIES
$res_city = CIBlockElement::GetList([], [ "ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_CITIES, "CODE" => $arParams['REGION'] ], false, []);
while ($city_element = $res_city->GetNextElement())
{
$ar_city = $city_element->GetFields();
$ar_city['PROPERTIES'] = $city_element->GetProperties();
$ar_city['PROPERTIES']['OFFICES']['RELATED'] = get_related_array(IBLOCK_ID_CONTACTS, $ar_city['PROPERTIES']['OFFICES']['VALUE']);
if(isset($ar_city['PROPERTIES']['OFFICES']['RELATED'][0]))
{
$ar_city['LEADER_CRM_ID'] = $ar_city['PROPERTIES']['OFFICES']['RELATED'][0]['PROPERTIES']['LEADER_CRM_ID']['VALUE'];
/*
$ar_city['LEADER_NAME'] = $ar_city['PROPERTIES']['OFFICES']['RELATED'][0]['PROPERTIES']['LEADER_NAME']['VALUE'];
$ar_city['LEADER_POSITION'] = $ar_city['PROPERTIES']['OFFICES']['RELATED'][0]['PROPERTIES']['LEADER_POSITION']['VALUE'];
if(!empty($ar_city['PROPERTIES']['OFFICES']['RELATED'][0]['PROPERTIES']['LEADER_POSITION']['VALUE']))
{
$ar_city['LEADER_PHOTO'] = CFile::GetPath($ar_city['PROPERTIES']['OFFICES']['RELATED'][0]['PROPERTIES']['LEADER_PHOTO']['VALUE']);
}
*/
}
$arResult['CITY'] = $ar_city;
array_unshift($breadcrumbs, [
"NAME" => $ar_city['NAME'],
"URL" => "https://".SITE_SERVER_NAME."/regions/".$ar_city['CODE']."/",
]);
if(!empty($arResult['SELECTED']['MODEL']))
{
//array_unshift($breadcrumbs, [
// "NAME" => $ar_city['NAME'],
// "URL" => "https://".SITE_SERVER_NAME."/regions/".$ar_city['CODE']."/".$arResult['SELECTED']['BRAND']."/".$arResult['SELECTED']['MODEL']."/",
//]);
$APPLICATION->SetPageProperty("title", $arResult['TITLES']['BRAND']." ".$arResult['TITLES']['MODEL']." в ".$ar_city['PROPERTIES']['CASE']['VALUE']." в лизинг для юридических лиц и ИП | Эволюция");
$APPLICATION->SetPageProperty("description", "Новые автомобили ".$arResult['TITLES']['BRAND']." ".$arResult['TITLES']['MODEL']." в ".$ar_city['PROPERTIES']['CASE']['VALUE']." в лизинг для юридических лиц и ИП. Вы можете купить ".$arResult['TITLES']['BRAND']." ".$arResult['TITLES']['MODEL']." в ".$ar_city['PROPERTIES']['CASE']['VALUE']." в лизинг от официальных дилеров, автосалонов на выгодных условиях со скидкой. Телефон горячей линии ".CENTRAL_PHONE_FORMATTED." - звонок по России бесплатный.");
$APPLICATION->SetPageProperty("keywords", $arResult['TITLES']['BRAND']." ".$arResult['TITLES']['MODEL']." ".$ar_city['NAME']." в лизинг, купить ".$arResult['TITLES']['BRAND']." ".$arResult['TITLES']['MODEL']." ".$ar_city['NAME']." в лизинг");
}
elseif(!empty($arResult['SELECTED']['BRAND']))
{
//array_unshift($breadcrumbs, [
// "NAME" => $ar_city['NAME'],
// "URL" => "https://".SITE_SERVER_NAME."/regions/".$ar_city['CODE']."/".$arResult['SELECTED']['BRAND']."/",
//]);
$APPLICATION->SetPageProperty("title", $arResult['TITLES']['BRAND']." в ".$ar_city['PROPERTIES']['CASE']['VALUE']." в лизинг для юридических лиц и ИП | Эволюция");
$APPLICATION->SetPageProperty("description", "Новые автомобили ".$arResult['TITLES']['BRAND']." в ".$ar_city['PROPERTIES']['CASE']['VALUE']." в лизинг для юридических лиц и ИП. Вы можете купить ".$arResult['TITLES']['BRAND']." в ".$ar_city['PROPERTIES']['CASE']['VALUE']." в лизинг от официальных дилеров, автосалонов на выгодных условиях со скидкой. Телефон горячей линии ".CENTRAL_PHONE_FORMATTED." - звонок по России бесплатный.");
$APPLICATION->SetPageProperty("keywords", $arResult['TITLES']['BRAND']." ".$ar_city['NAME']." в лизинг, купить ".$arResult['TITLES']['BRAND']." ".$ar_city['NAME']." в лизинг");
}
else
{
//array_unshift($breadcrumbs, [
// "NAME" => $ar_city['NAME'],
// "URL" => "https://".SITE_SERVER_NAME."/regions/".$ar_city['CODE']."/",
//]);
$APPLICATION->SetPageProperty("title", "Лизинг в ".$ar_city['PROPERTIES']['CASE']['VALUE']." для юридических лиц и ИП | Эволюция");
$APPLICATION->SetPageProperty("description", "Лизинговая компания Эволюция предлагает быстрое оформление авто в лизинг в ".$ar_city['PROPERTIES']['CASE']['VALUE']." для юридических лиц и ИП. Выгодные цены, спецпредложения, простое оформление, консультирование и сопровождение.");
$APPLICATION->SetPageProperty("keywords", "Лизинг в ".$ar_city['PROPERTIES']['CASE']['VALUE'].", лизинг авто ".$ar_city['NAME'].", купить машину в лизинг ".$ar_city['NAME']."");
}
}
}
}
foreach($breadcrumbs AS $breadcrumb)
{
$APPLICATION->AddChainItem($breadcrumb['NAME'], $breadcrumb['URL']);
}
if(isset($_REQUEST['ajax']))
{
$GLOBALS['APPLICATION']->RestartBuffer();

View File

@ -13,15 +13,54 @@
$this->setFrameMode(true);
$title = "";
if(!empty($arResult['TITLES']['BRAND']))
$subtitle = "";
if(!empty($arParams['REGION']) && $arParams['REGION'] !== "root")
{
$title .= "Новые автомобили ".$arResult['TITLES']['BRAND'];
//$title = "Лизинг";
if(!empty($arResult['TITLES']['BRAND']))
{
$title .= " ".$arResult['TITLES']['BRAND'];
if(!empty($arResult['TITLES']['MODEL']))
{
$title = $arResult['TITLES']['BRAND']." ".$arResult['TITLES']['MODEL'];
}
$title = $title." в ".$arResult['CITY']['PROPERTIES']['CASE']['VALUE']." в лизинг";
$subtitle = " для юридических лиц и ИП";
}
else
{
$title = "Лизинг в ".$arResult['CITY']['PROPERTIES']['CASE']['VALUE'];
$subtitle = " для юридических лиц и ИП";
}
}
else
{
if(!empty($arResult['TITLES']['BRAND']))
{
$title .= "Новые автомобили ".$arResult['TITLES']['BRAND'];
if(!empty($arResult['TITLES']['MODEL']))
{
$title = $arResult['TITLES']['BRAND']." ".$arResult['TITLES']['MODEL'];
}
$subtitle = " в лизинг";
}
}
if(!empty($arResult['TITLES']['MODEL']))
if(!empty($arResult['TITLE']))
{
$title = $arResult['TITLES']['BRAND']." ".$arResult['TITLES']['MODEL'];
$title = $arResult['TITLE'];
}
if(!empty($arResult['SUBTITLE']))
{
$subtitle = $arResult['SUBTITLE'];
}
?>
<script>
$(function()
@ -38,7 +77,7 @@ if(!empty($arResult['TITLES']['MODEL']))
<div id="view"></div>
<div class="pageWithSide">
<div class="leftColumn">
<h1 class="section_title"><?= !empty($title) ? $title." в лизинг" : "Новые автомобили в лизинг"; ?></h1>
<h1 class="section_title_with_em"><em><?= !empty($title) ? $title : "Новые автомобили в лизинг"; ?></em><?= $subtitle !== "" ? "<br>".$subtitle : ""; ?></h1>
<div class="special_detail">
<? if(!$arParams['top_banners']): ?>
<? else: ?>
@ -53,7 +92,7 @@ if(!empty($arResult['TITLES']['MODEL']))
<img src="/images/special_offer.jpg" alt="" />
</div>
<? endif; ?>
<div id="catalog_small_filter" style="<?= $arResult['EXTENDED'] ? "display:none;" : $arResult['FILTER_SMALL'] ? "display:none;" : ""; ?>">
<div id="catalog_small_filter" style="<?= $arResult['EXTENDED'] ? "display:none;" : ($arResult['FILTER_SMALL'] ? "display:none;" : ""); ?>">
<form id="catalog_small_form" method="get" action="/catalog/">
<div class="filter_body">
<div class="form_field">
@ -91,6 +130,15 @@ if(!empty($arResult['TITLES']['MODEL']))
); ?>
</div>
</div>
<? if($arParams['REGION'] === "root"): ?>
<? $APPLICATION->IncludeComponent(
"evolution:catalog.cities.list",
"",
Array(
"TITLE" => "Выберите город",
)
); ?>
<? endif; ?>
<? if(count($arResult['ITEMS']) > 0): ?>
<? $APPLICATION->IncludeComponent(
"evolution:catalog.sort",
@ -116,6 +164,19 @@ if(!empty($arResult['TITLES']['MODEL']))
<? endif; ?>
<? endif; ?>
<? if($arParams['REGION'] !== "root"): ?>
<? $APPLICATION->IncludeComponent(
"evolution:catalog.city.team",
"",
Array(
"CITY" => $arResult['CITY'],
"BRAND" => $arResult['TITLES']['BRAND'],
"MODEL" => $arResult['TITLES']['MODEL'],
"EXTENDED" => $arResult['EXTENDED'],
)
); ?>
<? endif; ?>
<? if($arResult['SHOW_SPECIAL_OFFERS']): ?>
<? $APPLICATION->IncludeComponent(
"evolution:catalog.special.offers",
@ -134,6 +195,7 @@ if(!empty($arResult['TITLES']['MODEL']))
"",
Array(
"COUNT" => 3,
"PATH" => $arParams['PATH'],
)
); ?>
<? endif; ?>
@ -147,6 +209,7 @@ if(!empty($arResult['TITLES']['MODEL']))
"BRAND_NAME" => $arResult['TITLES']['BRAND'],
"BRAND_CODE" => $arResult['SELECTED']['BRAND'],
"BRAND_UID" => $arResult['SELECTED']['BRAND_UID'],
"PATH" => $arParams['PATH'],
)
); ?>
<? endif; ?>
@ -169,76 +232,13 @@ if(!empty($arResult['TITLES']['MODEL']))
<? endif; ?>
<?= $arResult['NAV_STRING']; ?>
<? endif; ?>
<? /*
<div class="recom_models">
<p class="title">Рекомендуемые модели Audi для вас</p>
<div class="other_item">
<a href="#">
<span>Haval</span>
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
</a>
</div>
<div class="other_item">
<a href="#">
<span>Haval</span>
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
</a>
</div>
<div class="other_item">
<a href="#">
<span>Haval</span>
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
</a>
</div>
<div class="other_item">
<a href="#">
<span>Haval</span>
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
</a>
</div>
<div class="other_item">
<a href="#">
<span>Haval</span>
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
</a>
</div>
<div class="other_item">
<a href="#">
<span>Haval</span>
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
</a>
</div>
<div class="other_item">
<a href="#">
<span>Haval</span>
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
</a>
</div>
<div class="other_item">
<a href="#">
<span>Haval</span>
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
</a>
</div>
<div class="other_item">
<a href="#">
<span>Haval</span>
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
</a>
</div>
<div class="other_item">
<a href="#">
<span>Haval</span>
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
</a>
</div>
</div>
*/ ?>
<? if($arResult['SHOW_BRANDS_LIST']): ?>
<? $APPLICATION->IncludeComponent(
"evolution:catalog.brands",
"",
Array(
"PATH" => $arParams['PATH'],
"TITLE" => "Каталог автомобилей",
"SORT" => $arParams['SORT'],
"FILTER" => $arResult['FILTER_SMALL'],
@ -250,78 +250,24 @@ if(!empty($arResult['TITLES']['MODEL']))
"evolution:catalog.models",
"",
Array(
"PATH" => $arParams['PATH'],
"BRAND" => $_REQUEST['BRAND'],
"RECOMMENDED" => true,
"REGIONS" => !is_null($arParams['REGION']) ? true : false,
)
); ?>
<? endif; ?>
<? if($arParams['REGION'] !== "root"): ?>
<? $APPLICATION->IncludeComponent(
"evolution:catalog.city.offices",
"",
Array(
"CITY" => $arResult['CITY'],
)
); ?>
<? endif; ?>
<? /*
<div class="other_models">
<p class="title">Седаны в лизинг</p>
<div class="other_item">
<a href="#">
<span>Haval</span>
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
</a>
</div>
<div class="other_item">
<a href="#">
<span>Haval</span>
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
</a>
</div>
<div class="other_item">
<a href="#">
<span>Haval</span>
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
</a>
</div>
<div class="other_item">
<a href="#">
<span>Haval</span>
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
</a>
</div>
<div class="other_item">
<a href="#">
<span>Haval</span>
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
</a>
</div>
<div class="other_item">
<a href="#">
<span>Haval</span>
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
</a>
</div>
<div class="other_item">
<a href="#">
<span>Haval</span>
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
</a>
</div>
<div class="other_item">
<a href="#">
<span>Haval</span>
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
</a>
</div>
<div class="other_item">
<a href="#">
<span>Haval</span>
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
</a>
</div>
<div class="other_item">
<a href="#">
<span>Haval</span>
<img src="https://evo.quickcode.ru/upload/iblock/192/5zet0bmwmm1ahj66fizv0hdz0f1z5m2l.jpg" alt="" loading="lazy" />
</a>
</div>
</div>
<button id="showMore" class="button">Показать еще</button>
*/ ?>
</div>
</div>
<aside class="rightColumn">

View File

@ -720,6 +720,8 @@ $(function()
$("#rich_filter_toggle").on("click", function()
{
$("#catalog_special_h2").addClass("catalog_h2_title_with_filter");
$(".container_with_filter").addClass("container_with_filter_with_margin");
updateCounter(selected);
$("#filter").addClass("visible").css("display", "block");
$("#catalog_small_filter").addClass("hidden").css("display", "none");

View File

@ -1808,6 +1808,72 @@ file_put_contents("/home/bitrix/www/sitemap.xml", $sitemap_index);
/* sitemap catalog file end -------------------------------------------------------------*/
/* sitemap regions file start -------------------------------------------------------------*/
$sitemap_regions = [];
$sitemap_brands = [];
//IBLOCK_ID_CITIES
$sitemap_all_cities_search_res = CIBlockElement::GetList( [ "NAME" => "ASC" ], [ "IBLOCK_ID" => IBLOCK_ID_CITIES, ], false, false, [ "CODE", ] );
while($sitemap_all_cities_search_ob = $sitemap_all_cities_search_res->GetNextElement())
{
$city = $sitemap_all_cities_search_ob->GetFields();
$sitemap_regions[] = $city['CODE'];
}
$sitemap_all_brands_search_res = CIBlockElement::GetList( [ "NAME" => "ASC" ], [ "IBLOCK_ID" => IBLOCK_ID_BRANDS, ], false, false, [ "CODE", "PROPERTY_UID" ] );
while($sitemap_all_brands_search_ob = $sitemap_all_brands_search_res->GetNextElement())
{
$brand = $sitemap_all_brands_search_ob->GetFields();
$brand['MODELS'] = [];
$sitemap_brands[$brand['PROPERTY_UID_VALUE']] = $brand;
}
$sitemap_all_models_search_res = CIBlockElement::GetList( [], [ "IBLOCK_ID" => IBLOCK_ID_MODELS, "PROPERTY_PROMO_VALUE" => "Да" ], false, false, [ "CODE", "PROPERTY_BRAND_UID"] );
while($sitemap_all_models_search_ob = $sitemap_all_models_search_res->GetNextElement())
{
$model = $sitemap_all_models_search_ob->GetFields();
$model['PROPERTIES'] = $sitemap_all_models_search_ob->GetProperties();
array_push($sitemap_brands[$model['PROPERTY_BRAND_UID_VALUE']]['MODELS'], $model);
}
$url = "https://".SITE_SERVER_NAME."/regions";
$lastmod = date(DATE_W3C);
$sitemap_regions_string = "<?xml version='1.0' encoding='UTF-8'?>\n<urlset xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9\" xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n";
$sitemap_regions_string .= "<url><loc>".$url."/"."</loc><lastmod>".$lastmod."</lastmod></url>"."\n";
foreach($sitemap_regions AS $city)
{
$sitemap_regions_string .= "<url><loc>".$url."/".$city."/"."</loc><lastmod>".$lastmod."</lastmod></url>"."\n";
foreach($sitemap_brands AS $brand)
{
$sitemap_regions_string .= "<url><loc>".$url."/".$city."/".$brand['CODE']."/"."</loc><lastmod>".$lastmod."</lastmod></url>"."\n";
foreach($brand['MODELS'] AS $model)
{
$sitemap_regions_string .= "<url><loc>".$url."/".$city."/".$brand['CODE']."/".$model['CODE']."/"."</loc><lastmod>".$lastmod."</lastmod></url>"."\n";
}
}
}
$sitemap_regions_string .= "</urlset>"."\n";
file_put_contents("/home/bitrix/www/sitemap-regions.xml", $sitemap_regions_string);
$chunk = "<sitemap><loc>https://www.evoleasing.ru/sitemap-regions.xml</loc><lastmod>".date(DATE_W3C)."</lastmod></sitemap></sitemapindex>";
$sitemap_index = file_get_contents("/home/bitrix/www/sitemap.xml");
$sitemap_index = str_replace(">", ">\n", $sitemap_index);
$sitemap_index = str_replace("</sitemapindex>", $chunk, $sitemap_index);
$sitemap_index = str_replace("\n", "", $sitemap_index);
file_put_contents("/home/bitrix/www/sitemap.xml", $sitemap_index);
/* sitemap regions file end -------------------------------------------------------------*/
\Bitrix\Main\Mail\Event::send([
"EVENT_NAME" => "ILSA_UPDATE",
"LID" => "s1",

View File

@ -0,0 +1,81 @@
<?
define('STOP_STATISTICS', true);
define('NO_KEEP_STATISTIC', 'Y');
define('NO_AGENT_STATISTIC', 'Y');
define('DisableEventsCheck', true);
define('BX_SECURITY_SHOW_MESSAGE', true);
define('NOT_CHECK_PERMISSIONS', true);
$_SERVER['DOCUMENT_ROOT'] = dirname(__DIR__, 1);
require_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php');
CModule::IncludeModule('iblock');
/* sitemap regions file start -------------------------------------------------------------*/
$sitemap_regions = [];
$sitemap_brands = [];
//IBLOCK_ID_CITIES
$sitemap_all_cities_search_res = CIBlockElement::GetList( [ "NAME" => "ASC" ], [ "IBLOCK_ID" => IBLOCK_ID_CITIES, ], false, false, [ "CODE", ] );
while($sitemap_all_cities_search_ob = $sitemap_all_cities_search_res->GetNextElement())
{
$city = $sitemap_all_cities_search_ob->GetFields();
$sitemap_regions[] = $city['CODE'];
}
$sitemap_all_brands_search_res = CIBlockElement::GetList( [ "NAME" => "ASC" ], [ "IBLOCK_ID" => IBLOCK_ID_BRANDS, ], false, false, [ "CODE", "PROPERTY_UID" ] );
while($sitemap_all_brands_search_ob = $sitemap_all_brands_search_res->GetNextElement())
{
$brand = $sitemap_all_brands_search_ob->GetFields();
$brand['MODELS'] = [];
$sitemap_brands[$brand['PROPERTY_UID_VALUE']] = $brand;
}
$sitemap_all_models_search_res = CIBlockElement::GetList( [], [ "IBLOCK_ID" => IBLOCK_ID_MODELS, "PROPERTY_PROMO_VALUE" => "Да" ], false, false, [ "CODE", "PROPERTY_BRAND_UID"] );
while($sitemap_all_models_search_ob = $sitemap_all_models_search_res->GetNextElement())
{
$model = $sitemap_all_models_search_ob->GetFields();
$model['PROPERTIES'] = $sitemap_all_models_search_ob->GetProperties();
array_push($sitemap_brands[$model['PROPERTY_BRAND_UID_VALUE']]['MODELS'], $model);
}
$url = "https://".SITE_SERVER_NAME."/regions";
$lastmod = date(DATE_W3C);
$sitemap_regions_string = "<?xml version='1.0' encoding='UTF-8'?>\n<urlset xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9\" xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n";
$sitemap_regions_string .= "<url><loc>".$url."/"."</loc><lastmod>".$lastmod."</lastmod></url>"."\n";
foreach($sitemap_regions AS $city)
{
$sitemap_regions_string .= "<url><loc>".$url."/".$city."/"."</loc><lastmod>".$lastmod."</lastmod></url>"."\n";
foreach($sitemap_brands AS $brand)
{
$sitemap_regions_string .= "<url><loc>".$url."/".$city."/".$brand['CODE']."/"."</loc><lastmod>".$lastmod."</lastmod></url>"."\n";
foreach($brand['MODELS'] AS $model)
{
$sitemap_regions_string .= "<url><loc>".$url."/".$city."/".$brand['CODE']."/".$model['CODE']."/"."</loc><lastmod>".$lastmod."</lastmod></url>"."\n";
}
}
}
$sitemap_regions_string .= "</urlset>"."\n";
file_put_contents("/home/bitrix/www/sitemap-regions.xml", $sitemap_regions_string);
$chunk = "<sitemap><loc>https://www.evoleasing.ru/sitemap-regions.xml</loc><lastmod>".date(DATE_W3C)."</lastmod></sitemap></sitemapindex>";
$sitemap_index = file_get_contents("/home/bitrix/www/sitemap.xml");
$sitemap_index = str_replace(">", ">\n", $sitemap_index);
$sitemap_index = str_replace("</sitemapindex>", $chunk, $sitemap_index);
$sitemap_index = str_replace("\n", "", $sitemap_index);
file_put_contents("/home/bitrix/www/sitemap.xml", $sitemap_index);
/* sitemap regions file end -------------------------------------------------------------*/
die();
?>

View File

@ -200,7 +200,7 @@
}
}
#catalog_small_filter {
margin-bottom: 0px;
margin-bottom: 70px;
}
#catalog_small_filter.hidden {
display: none;

View File

@ -228,7 +228,7 @@
// Catalog smamm filter
#catalog_small_filter {
margin-bottom: 0px;
margin-bottom: 70px;
&.hidden {
display: none;

View File

@ -3182,7 +3182,6 @@ article #choose_region {
align-items: center;
justify-content: flex-end;
margin-top: 10px;
margin-bottom: 40px;
}
.catalog_sort .sort_container {
margin-left: 40px;
@ -3247,14 +3246,10 @@ article #choose_region {
background-position: left center !important;
}
}
@media all and (max-width: 1279px) {
.catalog_sort {
margin-bottom: 10px;
}
}
@media all and (max-width: 767px) {
.catalog_sort {
justify-content: space-between;
margin-bottom: 10px;
}
}
.news_container {
@ -5654,7 +5649,6 @@ main .dropdown_blocks_list .dropdown_block .block_body .transaction_detail ul li
.catalog_h2_title {
padding: 0px;
margin: 0px;
margin-top: -20px;
padding-bottom: 40px;
font-size: 28px;
}
@ -5663,9 +5657,6 @@ main .dropdown_blocks_list .dropdown_block .block_body .transaction_detail ul li
margin-top: 30px !important;
}
}
.catalog_h2_title_with_filter {
margin-top: -70px !important;
}
@media all and (max-width: 767px) {
.catalog_h2_title_with_filter {
margin-top: 30px !important;
@ -5974,3 +5965,143 @@ main .dropdown_blocks_list .dropdown_block .block_body .transaction_detail ul li
padding-top: 233px;
}
}
.person_comment {
color: #0C0C0C;
padding: 15px 25px;
background: var(--inactive);
margin-bottom: 24px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.person_comment .person_avatar {
width: 160px;
height: 160px;
min-width: 160px;
border-radius: 100%;
overflow: hidden;
margin-right: 32px;
align-self: center;
}
.person_comment .person_avatar img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
@media all and (max-width: 768px) {
.person_comment .person_avatar {
margin-left: auto;
margin-right: auto;
margin-bottom: 25px;
}
}
.person_comment .person_text {
font-size: 14px;
line-height: 29px;
width: calc(100% - 246px);
margin-left: 24px;
position: relative;
align-self: center;
}
.person_comment .person_text p:not(:last-child) {
margin-bottom: 16px;
}
@media all and (max-width: 768px) {
.person_comment .person_text {
width: 100%;
margin-left: 0;
font-size: 13px;
line-height: 20px;
}
}
.person_comment .person_name {
font-size: 15px;
line-height: 24px;
}
.person_comment .person_name span {
display: block;
font-weight: 700;
}
@media all and (max-width: 768px) {
.person_comment .person_name {
font-size: 14px;
line-height: 20px;
}
}
.person_comment .sep {
width: 30px;
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.person_comment .sep:before {
content: "";
display: block;
width: 1px;
height: 100%;
background: var(--blue);
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
z-index: 1;
}
.person_comment .sep:after {
content: "";
display: block;
width: 30px;
height: 30px;
background-image: url("data:image/svg+xml,%3Csvg width='29' height='25' viewBox='0 0 29 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 13.3129V24.5618H9.11206C11.3212 24.5618 13.1121 22.7709 13.1121 20.5618V10.705H6.48743V7.97977C6.48743 6.16033 7.72846 4.57551 9.49483 4.13927L10.1558 3.97604C11.8921 3.54721 13.1121 1.98933 13.1121 0.200806C5.87047 0.200806 0 6.07127 0 13.3129Z' fill='%231C01A9'/%3E%3Cpath d='M15.0596 13.3129V24.5618H24.1716C26.3808 24.5618 28.1716 22.7709 28.1716 20.5618V10.705H21.547V7.97977C21.547 6.16033 22.788 4.57551 24.5544 4.13927L25.2153 3.97604C26.9517 3.54721 28.1716 1.98933 28.1716 0.200806C20.93 0.200806 15.0596 6.07127 15.0596 13.3129Z' fill='%231C01A9'/%3E%3C/svg%3E%0A");
background-repeat: no-repeat;
background-position: center;
background-color: var(--inactive);
z-index: 2;
}
@media all and (max-width: 768px) {
.person_comment .sep {
display: none;
}
}
.contacts_block {
background-color: var(--inactive);
display: flex;
flex-wrap: wrap;
}
.contacts_block #map {
width: 50%;
height: auto;
display: block;
margin: 0;
min-height: 350px;
}
@media all and (max-width: 768px) {
.contacts_block #map {
width: 100%;
height: 275px;
min-height: 350px;
}
}
.contacts_block .block_info_list {
width: 50%;
box-sizing: border-box;
padding: 25px 30px;
}
@media all and (max-width: 768px) {
.contacts_block .block_info_list {
width: 100%;
padding: 10px;
}
}
.contacts_block .block_info_list .block_info:not(:last-child) {
margin-bottom: 30px;
}
.contacts_block .block_info_list .block_info p:not(:last-child) {
margin-bottom: 8px;
}
.contacts_block .block_info_list .block_info .block_title {
font-weight: 700;
}

File diff suppressed because one or more lines are too long

View File

@ -3424,7 +3424,7 @@ article #choose_region {
align-items: center;
justify-content: flex-end;
margin-top: 10px;
margin-bottom: 40px;
//margin-bottom: 40px;
.sort_container {
margin-left: 40px;
@ -3507,12 +3507,9 @@ article #choose_region {
}
}
@media all and (max-width: 1279px) {
margin-bottom: 10px;
}
@media all and (max-width: 767px) {
justify-content: space-between;
margin-bottom: 10px;
}
}
@ -6094,7 +6091,7 @@ main .dropdown_blocks_list .dropdown_block .block_body {
.catalog_h2_title {
padding: 0px;
margin: 0px;
margin-top: -20px;
//margin-top: -20px;
padding-bottom: 40px;
font-size: 28px;
@ -6104,7 +6101,7 @@ main .dropdown_blocks_list .dropdown_block .block_body {
}
.catalog_h2_title_with_filter {
margin-top: -70px !important;
//margin-top: -70px !important;
@media all and (max-width: 767px) {
margin-top: 30px !important;
@ -6440,3 +6437,159 @@ main .dropdown_blocks_list .dropdown_block .block_body {
padding-top: 233px;
}
}
// Наша команда
.person_comment {
color: #0C0C0C;
padding: 15px 25px;
background: var(--inactive);
margin-bottom: 24px;
display: flex;
//align-items: center;
flex-wrap: wrap;
justify-content: space-between;
.person_avatar {
width: 160px;
height: 160px;
min-width: 160px;
border-radius: 100%;
overflow: hidden;
margin-right: 32px;
align-self: center;
img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
@media all and (max-width: 768px) {
margin-left: auto;
margin-right: auto;
margin-bottom: 25px;
}
}
.person_text {
font-size: 14px;
line-height: 29px;
width: ~"calc(100% - 246px)";
margin-left: 24px;
position: relative;
align-self: center;
p:not(:last-child) {
margin-bottom: 16px;
}
@media all and (max-width: 768px) {
width: 100%;
margin-left: 0;
font-size: 13px;
line-height: 20px;
}
}
.person_name {
font-size: 15px;
line-height: 24px;
span {
display: block;
font-weight: 700;
}
@media all and (max-width: 768px) {
font-size: 14px;
line-height: 20px;
}
}
.sep {
width: 30px;
position: relative;
display: flex;
align-items: center;
justify-content: center;
&:before {
content: "";
display: block;
width: 1px;
height: 100%;
background: var(--blue);
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
z-index: 1;
}
&:after {
content: "";
display: block;
width: 30px;
height: 30px;
background-image: url("data:image/svg+xml,%3Csvg width='29' height='25' viewBox='0 0 29 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 13.3129V24.5618H9.11206C11.3212 24.5618 13.1121 22.7709 13.1121 20.5618V10.705H6.48743V7.97977C6.48743 6.16033 7.72846 4.57551 9.49483 4.13927L10.1558 3.97604C11.8921 3.54721 13.1121 1.98933 13.1121 0.200806C5.87047 0.200806 0 6.07127 0 13.3129Z' fill='%231C01A9'/%3E%3Cpath d='M15.0596 13.3129V24.5618H24.1716C26.3808 24.5618 28.1716 22.7709 28.1716 20.5618V10.705H21.547V7.97977C21.547 6.16033 22.788 4.57551 24.5544 4.13927L25.2153 3.97604C26.9517 3.54721 28.1716 1.98933 28.1716 0.200806C20.93 0.200806 15.0596 6.07127 15.0596 13.3129Z' fill='%231C01A9'/%3E%3C/svg%3E%0A");
background-repeat: no-repeat;
background-position: center;
background-color: var(--inactive);
z-index: 2;
}
@media all and (max-width: 768px) {
display: none;
}
}
}
// Блок с картой
.contacts_block {
background-color: var(--inactive);
display: flex;
flex-wrap: wrap;
#map {
width: 50%;
height: auto;
display: block;
margin: 0;
min-height: 350px;
@media all and (max-width: 768px) {
width: 100%;
height: 275px;
min-height: 350px;
}
}
.block_info_list {
width: 50%;
box-sizing: border-box;
padding: 25px 30px;
@media all and (max-width: 768px) {
width: 100%;
padding: 10px;
}
.block_info {
&:not(:last-child) {
margin-bottom: 30px;
}
p {
&:not(:last-child) {
margin-bottom: 8px;
}
}
.block_title {
font-weight: 700;
}
}
}
}

View File

@ -297,6 +297,61 @@ body {
padding-right: 0;
}
}
.section_title_with_em {
font-size: 26px;
line-height: 35px;
color: var(--text_not_active) !important;
margin-top: 0;
margin-bottom: 35px;
}
@media all and (max-width: 767px) {
.section_title_with_em {
font-size: 19px;
line-height: 26px;
}
}
.section_title_with_em em {
font-size: 50px;
line-height: 60px;
font-weight: 700;
color: #0C0C0C;
position: relative;
font-style: normal;
}
.section_title_with_em em.no-margin {
margin-bottom: 0;
}
@media all and (max-width: 1600px) and (min-width: 1280px) {
.section_title_with_em em {
font-size: 36px;
line-height: 48px;
}
}
@media all and (max-width: 1279px) {
.section_title_with_em em {
font-size: 32px;
line-height: 44px;
}
}
@media all and (max-width: 960px) {
.section_title_with_em em {
font-size: 22px;
line-height: 33px;
}
}
@media all and (max-width: 767px) {
.section_title_with_em em {
margin-bottom: 25px;
}
}
.section_title_with_em em.wp {
padding-right: 210px;
}
@media all and (max-width: 1279px) {
.section_title_with_em em.wp {
padding-right: 0;
}
}
.order_title {
font-size: 36px !important;
line-height: 0px !important;
@ -1239,3 +1294,7 @@ section[data-page][data-page="special"] + #order .container:after {
display: none;
}
}
.container_with_filter_with_margin {
margin-bottom: 0px !important;
padding-bottom: 20px !important;
}

View File

@ -212,43 +212,96 @@ body {
}
.section_title {
font-size: 50px;
line-height: 60px;
font-weight: 700;
color: #0C0C0C;
margin-bottom: 35px;
position: relative;
font-size: 50px;
line-height: 60px;
font-weight: 700;
color: #0C0C0C;
margin-bottom: 35px;
position: relative;
&.no-margin {
margin-bottom: 0;
}
&.no-margin {
margin-bottom: 0;
}
@media all and (max-width: 1600px) and (min-width: 1280px) {
font-size: 36px;
line-height: 48px;
}
@media all and (max-width: 1600px) and (min-width: 1280px) {
font-size: 36px;
line-height: 48px;
}
@media all and (max-width: 1279px) {
font-size: 32px;
line-height: 44px;
}
@media all and (max-width: 1279px) {
font-size: 32px;
line-height: 44px;
}
@media all and (max-width: 960px) {
font-size: 22px;
line-height: 33px;
}
@media all and (max-width: 960px) {
font-size: 22px;
line-height: 33px;
}
@media all and (max-width: 767px) {
margin-bottom: 25px;
}
@media all and (max-width: 767px) {
margin-bottom: 25px;
}
&.wp {
padding-right: 210px;
&.wp {
padding-right: 210px;
@media all and (max-width: 1279px) {
padding-right: 0;
}
}
@media all and (max-width: 1279px) {
padding-right: 0;
}
}
}
.section_title_with_em {
font-size: 26px;
line-height: 35px;
color: var(--text_not_active) !important;
margin-top: 0;
margin-bottom: 35px;
@media all and (max-width: 767px) {
font-size: 19px;
line-height: 26px;
}
em {
font-size: 50px;
line-height: 60px;
font-weight: 700;
color: #0C0C0C;
position: relative;
font-style: normal;
&.no-margin {
margin-bottom: 0;
}
@media all and (max-width: 1600px) and (min-width: 1280px) {
font-size: 36px;
line-height: 48px;
}
@media all and (max-width: 1279px) {
font-size: 32px;
line-height: 44px;
}
@media all and (max-width: 960px) {
font-size: 22px;
line-height: 33px;
}
@media all and (max-width: 767px) {
margin-bottom: 25px;
}
&.wp {
padding-right: 210px;
@media all and (max-width: 1279px) {
padding-right: 0;
}
}
}
}
.order_title {
@ -1026,3 +1079,8 @@ section[data-page] {
}
}
}
.container_with_filter_with_margin {
margin-bottom: 0px !important;
padding-bottom: 20px !important;
}

View File

@ -35,6 +35,7 @@
<li><a href="/about/contacts/">Контакты</a></li>
<li><a href="/about/requisites/">Реквизиты</a></li>
<li><a href="/revocation/">Отзыв доверенностей</a></li>
<li><a href="/regions/">Регионы лизинга</a></li>
</ul>
<div class="column">
<div>

3
regions/.section.php Normal file
View File

@ -0,0 +1,3 @@
<?
$sSectionName="Регионы";
?>

56
regions/index.php Normal file
View File

@ -0,0 +1,56 @@
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Новые автомобили в лизинг");
//$APPLICATION->AddHeadString('<link rel="canonical" href="https://'.SITE_SERVER_NAME.'/catalog/"/>');
?>
<?
$APPLICATION->IncludeComponent("bitrix:breadcrumb", "evolution", Array(
"PATH" => "", // Путь, для которого будет построена навигационная цепочка (по умолчанию, текущий путь)
"SITE_ID" => "s1", // Cайт (устанавливается в случае многосайтовой версии, когда DOCUMENT_ROOT у сайтов разный)
"START_FROM" => "0", // Номер пункта, начиная с которого будет построена навигационная цепочка
),
false
);
?>
<?
$APPLICATION->IncludeComponent(
"evolution:catalog",
isset($_REQUEST['ajax']) ? "ajax" : "",
array(
"top_banners" => false,
"PAGINATION" => "Y",
"COUNT_PER_PAGE" => 12,
"BRAND" => $_REQUEST['BRAND'],
"MODEL" => $_REQUEST['MODEL'],
"MODIFICATION" => $_REQUEST['MODIFICATION'],
"DRIVE" => $_REQUEST['DRIVE'],
"BODY" => $_REQUEST['BODY'],
"GEAR" => $_REQUEST['GEAR'],
"ENGINE_FUEL" => $_REQUEST['ENGINE_FUEL'],
"ENGINE_POWER_FROM" => $_REQUEST['ENGINE_POWER_FROM'],
"ENGINE_POWER_TO" => $_REQUEST['ENGINE_POWER_TO'],
"ENGINE_VOLUME_FROM" => $_REQUEST['ENGINE_VOLUME_FROM'],
"ENGINE_VOLUME_TO" => $_REQUEST['ENGINE_VOLUME_TO'],
"SORT" => $_REQUEST['SORT'],
"PATH" => "/catalog/",
"PROGRAM" => null,
"REGION" => "root",
)
);
?>
<?
$APPLICATION->IncludeComponent(
"evolution:form.leasing",
"",
Array()
);
?>
<script src="https://api-maps.yandex.ru/2.1/?apikey=e417e630-1f5b-4b07-8c7d-cb4d22dd1841&lang=ru_RU"
type="text/javascript"></script>
<script src="scripts.js"></script>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>

48
regions/region.php Normal file
View File

@ -0,0 +1,48 @@
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Новые автомобили в лизинг");
//$APPLICATION->AddHeadString('<link rel="canonical" href="https://'.SITE_SERVER_NAME.'/catalog/"/>');
?>
<?
$APPLICATION->IncludeComponent("bitrix:breadcrumb", "evolution", Array(
"PATH" => "", // Путь, для которого будет построена навигационная цепочка (по умолчанию, текущий путь)
"SITE_ID" => "s1", // Cайт (устанавливается в случае многосайтовой версии, когда DOCUMENT_ROOT у сайтов разный)
"START_FROM" => "0", // Номер пункта, начиная с которого будет построена навигационная цепочка
),
false
);
?>
<?
$APPLICATION->IncludeComponent(
"evolution:catalog",
isset($_REQUEST['ajax']) ? "ajax" : "",
array(
"top_banners" => false,
"PAGINATION" => "Y",
"COUNT_PER_PAGE" => 12,
"BRAND" => $_REQUEST['BRAND'],
"MODEL" => $_REQUEST['MODEL'],
"MODIFICATION" => $_REQUEST['MODIFICATION'],
"DRIVE" => $_REQUEST['DRIVE'],
"BODY" => $_REQUEST['BODY'],
"GEAR" => $_REQUEST['GEAR'],
"ENGINE_FUEL" => $_REQUEST['ENGINE_FUEL'],
"ENGINE_POWER_FROM" => $_REQUEST['ENGINE_POWER_FROM'],
"ENGINE_POWER_TO" => $_REQUEST['ENGINE_POWER_TO'],
"ENGINE_VOLUME_FROM" => $_REQUEST['ENGINE_VOLUME_FROM'],
"ENGINE_VOLUME_TO" => $_REQUEST['ENGINE_VOLUME_TO'],
"SORT" => $_REQUEST['SORT'],
"PATH" => "/regions/".$_REQUEST['REGION']."/",
"PROGRAM" => null,
"REGION" => $_REQUEST['REGION'],
)
);
?>
<?
$APPLICATION->IncludeComponent(
"evolution:form.leasing",
"",
Array()
);
?>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>

151
regions/scripts.js Normal file
View File

@ -0,0 +1,151 @@
window.onload = function() {
ymaps.ready(function () {
var map = new ymaps.Map('map', {
center: [55.751574, 37.573856],
zoom: 9,
controls: []
});
// Создание макета балуна на основе Twitter Bootstrap.
MyBalloonLayout = ymaps.templateLayoutFactory.createClass(
'<div class="popover top">' +
'<a class="close" href="#">&times;</a>' +
'<div class="arrow"></div>' +
'<div class="popover-inner">' +
'$[[options.contentLayout observeSize minWidth=235 maxWidth=500 maxHeight=350]]' +
'</div>' +
'</div>', {
/**
* Строит экземпляр макета на основе шаблона и добавляет его в родительский HTML-элемент.
* @see https://api.yandex.ru/maps/doc/jsapi/2.1/ref/reference/layout.templateBased.Base.xml#build
* @function
* @name build
*/
build: function () {
this.constructor.superclass.build.call(this);
this._$element = $('.popover', this.getParentElement());
this.applyElementOffset();
this._$element.find('.close')
.on('click', $.proxy(this.onCloseClick, this));
},
/**
* Удаляет содержимое макета из DOM.
* @see https://api.yandex.ru/maps/doc/jsapi/2.1/ref/reference/layout.templateBased.Base.xml#clear
* @function
* @name clear
*/
clear: function () {
this._$element.find('.close')
.off('click');
this.constructor.superclass.clear.call(this);
},
/**
* Метод будет вызван системой шаблонов АПИ при изменении размеров вложенного макета.
* @see https://api.yandex.ru/maps/doc/jsapi/2.1/ref/reference/IBalloonLayout.xml#event-userclose
* @function
* @name onSublayoutSizeChange
*/
onSublayoutSizeChange: function () {
MyBalloonLayout.superclass.onSublayoutSizeChange.apply(this, arguments);
if (!this._isElement(this._$element)) {
return;
}
this.applyElementOffset();
this.events.fire('shapechange');
},
/**
* Сдвигаем балун, чтобы "хвостик" указывал на точку привязки.
* @see https://api.yandex.ru/maps/doc/jsapi/2.1/ref/reference/IBalloonLayout.xml#event-userclose
* @function
* @name applyElementOffset
*/
applyElementOffset: function () {
this._$element.css({
left: -(this._$element[0].offsetWidth / 2),
top: -(this._$element[0].offsetHeight + this._$element.find('.arrow')[0].offsetHeight)
});
},
/**
* Закрывает балун при клике на крестик, кидая событие "userclose" на макете.
* @see https://api.yandex.ru/maps/doc/jsapi/2.1/ref/reference/IBalloonLayout.xml#event-userclose
* @function
* @name onCloseClick
*/
onCloseClick: function (e) {
e.preventDefault();
this.events.fire('userclose');
},
/**
* Используется для автопозиционирования (balloonAutoPan).
* @see https://api.yandex.ru/maps/doc/jsapi/2.1/ref/reference/ILayout.xml#getClientBounds
* @function
* @name getClientBounds
* @returns {Number[][]} Координаты левого верхнего и правого нижнего углов шаблона относительно точки привязки.
*/
getShape: function () {
if (!this._isElement(this._$element)) {
return MyBalloonLayout.superclass.getShape.call(this);
}
var position = this._$element.position();
return new ymaps.shape.Rectangle(new ymaps.geometry.pixel.Rectangle([
[position.left, position.top], [
position.left + this._$element[0].offsetWidth,
position.top + this._$element[0].offsetHeight + this._$element.find('.arrow')[0].offsetHeight
]
]));
},
/**
* Проверяем наличие элемента (в ИЕ и Опере его еще может не быть).
* @function
* @private
* @name _isElement
* @param {jQuery} [element] Элемент.
* @returns {Boolean} Флаг наличия.
*/
_isElement: function (element) {
return element && element[0] && element.find('.arrow')[0];
}
}),
MyBalloonContentLayout = ymaps.templateLayoutFactory.createClass(
'<h3 class="popover-title">$[properties.balloonHeader]</h3>' +
'<div class="popover-content">$[properties.balloonContent]</div>'
),
myPlacemark = window.myPlacemark = new ymaps.Placemark(map.getCenter(), {
balloonContent: '<p><b>Горячая линия:</b> 8 800 333 75 75</p><p><b>Телефон центрального офиса:</b> +7 495 146 67 67</p><p><b>Адрес:</b> г. Москва, Котляковская ул., д. 8</p><p><b>Часы работы:</b> с понедельника по пятницу с 9:00 до 18:00</p>'
}, {
balloonShadow: false,
balloonLayout: MyBalloonLayout,
balloonContentLayout: MyBalloonContentLayout,
balloonPanelMaxMapArea: 0,
balloonOffset: [3, 40],
iconLayout: 'default#imageWithContent',
iconImageHref: '/images/pin.svg',
iconImageSize: [43, 54],
iconImageOffset: [-21, -27],
iconContentOffset: [15, 15]
});
map.geoObjects.add(myPlacemark);
});
};

View File

@ -209,6 +209,46 @@ $arUrlRewrite=array (
'SORT' => 80,
),
26 =>
array (
'CONDITION' => '#^/regions/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/page-([0-9]+)/\\??.*$#',
'RULE' => 'REGION=$1&BRAND=$2&MODEL=$3&PAGEN_1=$4',
'ID' => '',
'PATH' => '/regions/region.php',
'SORT' => 81,
),
27 =>
array (
'CONDITION' => '#^/regions/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/(\\?(.*))?$#',
'RULE' => 'REGION=$1&BRAND=$2&MODEL=$3',
'ID' => '',
'PATH' => '/regions/region.php',
'SORT' => 82,
),
28 =>
array (
'CONDITION' => '#^/regions/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/page-([0-9]+)/\\??.*$#',
'RULE' => 'REGION=$1&BRAND=$2&PAGEN_1=$3',
'ID' => '',
'PATH' => '/regions/region.php',
'SORT' => 83,
),
29 =>
array (
'CONDITION' => '#^/regions/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/\\??.*$#',
'RULE' => 'REGION=$1&BRAND=$2',
'ID' => '',
'PATH' => '/regions/region.php',
'SORT' => 84,
),
30 =>
array (
'CONDITION' => '#^/regions/([a-zA-Z0-9_-]+)/(\\?(.*))?$#',
'RULE' => 'REGION=$1',
'ID' => '',
'PATH' => '/regions/region.php',
'SORT' => 85,
),
31 =>
array (
'CONDITION' => '#^\\/?\\/mobileapp/jn\\/(.*)\\/.*#',
'RULE' => 'componentName=$1',
@ -216,7 +256,7 @@ $arUrlRewrite=array (
'PATH' => '/bitrix/services/mobileapp/jn.php',
'SORT' => 90,
),
27 =>
32 =>
array (
'CONDITION' => '#^/rest/#',
'RULE' => '',