diff --git a/images/icons/icon-address.svg b/images/icons/icon-address.svg index 5891430..bbb22f9 100644 --- a/images/icons/icon-address.svg +++ b/images/icons/icon-address.svg @@ -1,4 +1,3 @@ - diff --git a/images/icons/icon-phone-hot.svg b/images/icons/icon-phone-hot.svg index 123d307..96d78c9 100644 --- a/images/icons/icon-phone-hot.svg +++ b/images/icons/icon-phone-hot.svg @@ -2,5 +2,4 @@ - diff --git a/images/icons/icon-worktime.svg b/images/icons/icon-worktime.svg index e9270d3..8181934 100644 --- a/images/icons/icon-worktime.svg +++ b/images/icons/icon-worktime.svg @@ -1,5 +1,4 @@ - diff --git a/local/components/evolution/__footer/templates/.default/style.css b/local/components/evolution/__footer/templates/.default/style.css deleted file mode 100644 index d83e7de..0000000 --- a/local/components/evolution/__footer/templates/.default/style.css +++ /dev/null @@ -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; -} diff --git a/local/components/evolution/__footer/templates/.default/template.php b/local/components/evolution/__footer/templates/.default/template.php deleted file mode 100644 index e1ca399..0000000 --- a/local/components/evolution/__footer/templates/.default/template.php +++ /dev/null @@ -1,58 +0,0 @@ -setFrameMode(true); -?> -
-
-
-
ПрограммыКаталог техникиО компании -
Лизинг для ЮЛ и ИПЛегковые автомобилиЛегкий коммерческий транспортГрузовой транспортСпецтехникаЛизинг таксиЛизинг авто с пробегом
-
ЛегковыеЛегкий коммерческий транспорт
-
НовостиКарьераКонтактыРеквизитыОбщие условия лизингаОтзыв доверенности
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
mail@mail.com -
-
-
-
-
-
-
-
-
-
-
8 800 333 75 75 -
-
-
-
-
-
-
© ООО "ЛК Эволюция" -Обработка персональных данных -Общие условия договора лизинга -
-
\ No newline at end of file diff --git a/local/components/evolution/__top/component.php b/local/components/evolution/__top/component.php deleted file mode 100644 index 96e37c2..0000000 --- a/local/components/evolution/__top/component.php +++ /dev/null @@ -1,18 +0,0 @@ -includeComponentTemplate(); \ No newline at end of file diff --git a/local/components/evolution/__top/templates/.default/style.css b/local/components/evolution/__top/templates/.default/style.css deleted file mode 100644 index c10d8ed..0000000 --- a/local/components/evolution/__top/templates/.default/style.css +++ /dev/null @@ -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; -} diff --git a/local/components/evolution/__top/templates/.default/template.php b/local/components/evolution/__top/templates/.default/template.php deleted file mode 100644 index e3b7162..0000000 --- a/local/components/evolution/__top/templates/.default/template.php +++ /dev/null @@ -1,49 +0,0 @@ -setFrameMode(true); -?> -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Программы
СпецпредложенияСервисыКаталог автомобилей -
О компании -
-
-
-
-
-
-
-
-
-
-
-
-
-
+7 495 000 00 00 -
-
\ No newline at end of file diff --git a/local/components/evolution/callback.button/component.php b/local/components/evolution/callback.button/component.php index 3c5bab0..ab3afda 100644 --- a/local/components/evolution/callback.button/component.php +++ b/local/components/evolution/callback.button/component.php @@ -39,10 +39,10 @@ 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) { $arResult['ALLOW'] = true; diff --git a/local/components/evolution/catalog.brands/templates/.default/template.php b/local/components/evolution/catalog.brands/templates/.default/template.php index fc9bda8..e303f1f 100644 --- a/local/components/evolution/catalog.brands/templates/.default/template.php +++ b/local/components/evolution/catalog.brands/templates/.default/template.php @@ -13,10 +13,10 @@ $this->setFrameMode(true); ?>
-

+

- + " alt="" loading="lazy" /> diff --git a/local/components/evolution/catalog.cities.list/.description.php b/local/components/evolution/catalog.cities.list/.description.php new file mode 100644 index 0000000..a20bdf3 --- /dev/null +++ b/local/components/evolution/catalog.cities.list/.description.php @@ -0,0 +1,8 @@ + GetMessage("DEFAULT_NAME"), + "DESCRIPTION" => GetMessage("DEFAULT_DESC"), +); +?> \ No newline at end of file diff --git a/local/components/evolution/catalog.cities.list/component.php b/local/components/evolution/catalog.cities.list/component.php new file mode 100644 index 0000000..7413955 --- /dev/null +++ b/local/components/evolution/catalog.cities.list/component.php @@ -0,0 +1,42 @@ +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(); + } +//} \ No newline at end of file diff --git a/local/components/evolution/catalog.cities.list/lang/ru/.description.php b/local/components/evolution/catalog.cities.list/lang/ru/.description.php new file mode 100644 index 0000000..e1e00d8 --- /dev/null +++ b/local/components/evolution/catalog.cities.list/lang/ru/.description.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/local/components/evolution/catalog.cities.list/templates/.default/template.php b/local/components/evolution/catalog.cities.list/templates/.default/template.php new file mode 100644 index 0000000..4ee9eb9 --- /dev/null +++ b/local/components/evolution/catalog.cities.list/templates/.default/template.php @@ -0,0 +1,25 @@ +setFrameMode(true); +?> + \ No newline at end of file diff --git a/local/components/evolution/catalog.city.offices/.description.php b/local/components/evolution/catalog.city.offices/.description.php new file mode 100644 index 0000000..a20bdf3 --- /dev/null +++ b/local/components/evolution/catalog.city.offices/.description.php @@ -0,0 +1,8 @@ + GetMessage("DEFAULT_NAME"), + "DESCRIPTION" => GetMessage("DEFAULT_DESC"), +); +?> \ No newline at end of file diff --git a/local/components/evolution/__footer/component.php b/local/components/evolution/catalog.city.offices/component.php similarity index 92% rename from local/components/evolution/__footer/component.php rename to local/components/evolution/catalog.city.offices/component.php index 96e37c2..8c61b48 100644 --- a/local/components/evolution/__footer/component.php +++ b/local/components/evolution/catalog.city.offices/component.php @@ -15,4 +15,4 @@ use Bitrix\Main\Context, Bitrix\Main\Loader, Bitrix\Iblock; -$this->includeComponentTemplate(); \ No newline at end of file +$this->IncludeComponentTemplate(); \ No newline at end of file diff --git a/local/components/evolution/catalog.city.offices/lang/ru/.description.php b/local/components/evolution/catalog.city.offices/lang/ru/.description.php new file mode 100644 index 0000000..be37bac --- /dev/null +++ b/local/components/evolution/catalog.city.offices/lang/ru/.description.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/local/components/evolution/catalog.city.offices/templates/.default/template.php b/local/components/evolution/catalog.city.offices/templates/.default/template.php new file mode 100644 index 0000000..a84a708 --- /dev/null +++ b/local/components/evolution/catalog.city.offices/templates/.default/template.php @@ -0,0 +1,144 @@ +setFrameMode(true); +?> +".$office['NAME']."

"; + + $coords = explode(",", $office['PROPERTIES']['GEO']['VALUE']); + array_push($placemarks, [ + "coords" => $coords, + "content" => $content, + ]); + } +?> +

Контакты в

+
+
+ + +
+ +
+

+

+

+

">

+
+ +
+
\ No newline at end of file diff --git a/local/components/evolution/catalog.city.team/.description.php b/local/components/evolution/catalog.city.team/.description.php new file mode 100644 index 0000000..a20bdf3 --- /dev/null +++ b/local/components/evolution/catalog.city.team/.description.php @@ -0,0 +1,8 @@ + GetMessage("DEFAULT_NAME"), + "DESCRIPTION" => GetMessage("DEFAULT_DESC"), +); +?> \ No newline at end of file diff --git a/local/components/evolution/catalog.city.team/component.php b/local/components/evolution/catalog.city.team/component.php new file mode 100644 index 0000000..694fe63 --- /dev/null +++ b/local/components/evolution/catalog.city.team/component.php @@ -0,0 +1,41 @@ +IncludeComponentTemplate(); \ No newline at end of file diff --git a/local/components/evolution/catalog.city.team/lang/ru/.description.php b/local/components/evolution/catalog.city.team/lang/ru/.description.php new file mode 100644 index 0000000..92047e0 --- /dev/null +++ b/local/components/evolution/catalog.city.team/lang/ru/.description.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/local/components/evolution/catalog.city.team/templates/.default/template.php b/local/components/evolution/catalog.city.team/templates/.default/template.php new file mode 100644 index 0000000..c323055 --- /dev/null +++ b/local/components/evolution/catalog.city.team/templates/.default/template.php @@ -0,0 +1,38 @@ +setFrameMode(true); +?> + 0): ?> +
" style="width: 100%; padding-top: 0px; margin-left: 0px; margin-right: 0px;"> +

Наша команда

+
+
+ " alt="" width="160" height="160" /> +
+
+
+

Обращайтесь к нам по номеру телефона ">, либо на почту buy@evoleasing.ru Будем рады помочь вам купить в лизинг в на лучших условиях. Наш офис находится по адресу .

+

+ + +

+
+
+ Компания Эволюция предлагает лучшие условия на лизинговые программы в юридическим лицам, ИП для покупки легковых автомобилей, коммерческого транспорта, грузового транспорта, спецтехники, мотоциклов, такси. Подбор машин в осуществляется с учетом всех пожеланий клиента. В нашем онлайн-каталоге представлено более 3 000 автомобилей на любой бюджет. Если у вас есть особые пожелания к автомобилю, то мы готовы помочь с поиском и найти нужный вариант.

+ */ + ?> +
+ \ No newline at end of file diff --git a/local/components/evolution/catalog.models/component.php b/local/components/evolution/catalog.models/component.php index 98b08ad..99e9134 100644 --- a/local/components/evolution/catalog.models/component.php +++ b/local/components/evolution/catalog.models/component.php @@ -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; } diff --git a/local/components/evolution/catalog.promo.brand/templates/.default/template.php b/local/components/evolution/catalog.promo.brand/templates/.default/template.php index 6175100..0c9394e 100644 --- a/local/components/evolution/catalog.promo.brand/templates/.default/template.php +++ b/local/components/evolution/catalog.promo.brand/templates/.default/template.php @@ -50,7 +50,7 @@ $this->setFrameMode(true);
- + Показать еще diff --git a/local/components/evolution/catalog.promo.model/templates/.default/template.php b/local/components/evolution/catalog.promo.model/templates/.default/template.php index 9e80cee..17a373d 100644 --- a/local/components/evolution/catalog.promo.model/templates/.default/template.php +++ b/local/components/evolution/catalog.promo.model/templates/.default/template.php @@ -50,7 +50,7 @@ $this->setFrameMode(true); - + Показать еще diff --git a/local/components/evolution/catalog.special.offers/templates/.default/template.php b/local/components/evolution/catalog.special.offers/templates/.default/template.php index fea5f53..9f5e079 100644 --- a/local/components/evolution/catalog.special.offers/templates/.default/template.php +++ b/local/components/evolution/catalog.special.offers/templates/.default/template.php @@ -13,7 +13,7 @@ $this->setFrameMode(true); ?> 0): ?> -

" id="catalog_special_h2">Спецпредложения

+

" id="catalog_special_h2">Спецпредложения

diff --git a/local/components/evolution/catalog/component.php b/local/components/evolution/catalog/component.php index c54d963..d125137 100644 --- a/local/components/evolution/catalog/component.php +++ b/local/components/evolution/catalog/component.php @@ -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(); diff --git a/local/components/evolution/catalog/templates/.default/template.php b/local/components/evolution/catalog/templates/.default/template.php index 507162f..74b044d 100644 --- a/local/components/evolution/catalog/templates/.default/template.php +++ b/local/components/evolution/catalog/templates/.default/template.php @@ -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']; +} + ?> + + + + + + \ No newline at end of file diff --git a/regions/region.php b/regions/region.php new file mode 100644 index 0000000..33b1b0e --- /dev/null +++ b/regions/region.php @@ -0,0 +1,48 @@ +SetTitle("Новые автомобили в лизинг"); +//$APPLICATION->AddHeadString(''); +?> +IncludeComponent("bitrix:breadcrumb", "evolution", Array( + "PATH" => "", // Путь, для которого будет построена навигационная цепочка (по умолчанию, текущий путь) + "SITE_ID" => "s1", // Cайт (устанавливается в случае многосайтовой версии, когда DOCUMENT_ROOT у сайтов разный) + "START_FROM" => "0", // Номер пункта, начиная с которого будет построена навигационная цепочка + ), + false + ); +?> +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'], + ) + ); +?> +IncludeComponent( + "evolution:form.leasing", + "", + Array() + ); +?> + \ No newline at end of file diff --git a/regions/scripts.js b/regions/scripts.js new file mode 100644 index 0000000..a822afe --- /dev/null +++ b/regions/scripts.js @@ -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( + '
' + + '×' + + '
' + + '
' + + '$[[options.contentLayout observeSize minWidth=235 maxWidth=500 maxHeight=350]]' + + '
' + + '
', { + /** + * Строит экземпляр макета на основе шаблона и добавляет его в родительский 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( + '

$[properties.balloonHeader]

' + + '
$[properties.balloonContent]
' + ), + + myPlacemark = window.myPlacemark = new ymaps.Placemark(map.getCenter(), { + balloonContent: '

Горячая линия: 8 800 333 75 75

Телефон центрального офиса: +7 495 146 67 67

Адрес: г. Москва, Котляковская ул., д. 8

Часы работы: с понедельника по пятницу с 9:00 до 18:00

' + }, { + 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); + }); + }; \ No newline at end of file diff --git a/urlrewrite.php b/urlrewrite.php index ba5103f..54cb52d 100644 --- a/urlrewrite.php +++ b/urlrewrite.php @@ -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' => '',