Merge branch 'master' of https://github.com/merelendor/evoleasing-site
@ -1,5 +1,7 @@
|
|||||||
Options -Indexes
|
Options -Indexes
|
||||||
ErrorDocument 404 /404.php
|
ErrorDocument 404 /404.php
|
||||||
|
ErrorDocument 500 /500.html
|
||||||
|
ErrorDocument 502 /500.html
|
||||||
|
|
||||||
<IfModule mod_php5.c>
|
<IfModule mod_php5.c>
|
||||||
php_flag allow_call_time_pass_reference 1
|
php_flag allow_call_time_pass_reference 1
|
||||||
|
|||||||
37
500.html
@ -29,31 +29,22 @@
|
|||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:image" content="/favicon/favicon_152.png" />
|
<meta property="og:image" content="/favicon/favicon_152.png" />
|
||||||
<meta property="og:description" content="" />
|
<meta property="og:description" content="" />
|
||||||
|
|
||||||
<meta name="theme-color" content="#1C01A9" />
|
<meta name="theme-color" content="#1C01A9" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<main>
|
<main>
|
||||||
<section style="margin: 80px 0;">
|
<section style="margin: 80px 0;">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="error_page">
|
<div class="error_page">
|
||||||
<div>
|
<div>
|
||||||
<h1>502</h1>
|
<h1>502</h1>
|
||||||
<p>Извините, возникла техническая проблема, свяжитесь с нами по телефона <a
|
<p>Извините, возникла техническая проблема, свяжитесь с нами по телефона <a href="tel:8 8001112233">8 800 111 22 33</a></p>
|
||||||
href="tel:8 8001112233">8 800 111 22 33</a></p>
|
</div>
|
||||||
</div>
|
<img src="/images/404.jpg" alt="502" />
|
||||||
<img src="/images/404.jpg" alt="502" />
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
</section>
|
</main>
|
||||||
</main>
|
<script type="text/javascript">var _ba = _ba || []; _ba.push(["aid", "795284ccab80fb65bbd8aaf8a1472462"]); _ba.push(["host", "185.46.8.240"]); (function () { var ba = document.createElement("script"); ba.type = "text/javascript"; ba.async = true; ba.src = (document.location.protocol == "https:" ? "https://" : "http://") + "bitrix.info/ba.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ba, s); })();</script>
|
||||||
|
|
||||||
|
|
||||||
<script
|
|
||||||
type="text/javascript">var _ba = _ba || []; _ba.push(["aid", "795284ccab80fb65bbd8aaf8a1472462"]); _ba.push(["host", "185.46.8.240"]); (function () { var ba = document.createElement("script"); ba.type = "text/javascript"; ba.async = true; ba.src = (document.location.protocol == "https:" ? "https://" : "http://") + "bitrix.info/ba.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ba, s); })();</script>
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
BIN
apple-touch-icon-120x120-precomposed copy.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
apple-touch-icon-120x120.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
apple-touch-icon-precomposed.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
apple-touch-icon.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
favicon/favicon_120.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
favicon/favicon_144.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
favicon/favicon_152.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
favicon/favicon_16.png
Normal file
|
After Width: | Height: | Size: 504 B |
BIN
favicon/favicon_32.png
Normal file
|
After Width: | Height: | Size: 852 B |
BIN
favicon/favicon_57.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
favicon/favicon_64.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
favicon/favicon_72.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 2.1 KiB |
@ -16,7 +16,7 @@ $this->setFrameMode(true);
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<h1 class="section_title"><?= $arResult['NAME']; ?></h1>
|
<h1 class="section_title"><?= $arResult['NAME']; ?></h1>
|
||||||
<div class="vacancy">
|
<div class="vacancy">
|
||||||
<? if(count($arResult['PROPERTIES']['REGION']['RELATED']) > 0): ?>
|
<? if(!is_null($arResult['PROPERTIES']['REGION']['RELATED']) && count($arResult['PROPERTIES']['REGION']['RELATED']) > 0): ?>
|
||||||
<p><strong>Регион:</strong>
|
<p><strong>Регион:</strong>
|
||||||
<? $c = 0; foreach($arResult['PROPERTIES']['REGION']['RELATED'] AS $region): ?>
|
<? $c = 0; foreach($arResult['PROPERTIES']['REGION']['RELATED'] AS $region): ?>
|
||||||
<?= $region['NAME']; ?>
|
<?= $region['NAME']; ?>
|
||||||
|
|||||||
@ -17,12 +17,29 @@ use Bitrix\Main\Context,
|
|||||||
|
|
||||||
if($this->StartResultCache(60*60*24, md5(var_export($_POST, true))))
|
if($this->StartResultCache(60*60*24, md5(var_export($_POST, true))))
|
||||||
{
|
{
|
||||||
|
$payload = json_encode([
|
||||||
|
"car_price" => $arParams['car_price'],
|
||||||
|
"initial_payment" => $arParams['initial_payment'],
|
||||||
|
"lease_period" => $arParams['lease_period'],
|
||||||
|
"redemption_payment" => $arParams['redemption_payment'],
|
||||||
|
]);
|
||||||
|
|
||||||
|
$c = curl_init();
|
||||||
|
curl_setopt($c, CURLOPT_URL, API_HOST."/calculator/");
|
||||||
|
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_POST, 1);
|
||||||
|
curl_setopt($c, CURLOPT_POSTFIELDS, $payload);
|
||||||
|
curl_setopt($c, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));
|
||||||
|
|
||||||
|
$response = curl_exec($c) or die(curl_error($c));
|
||||||
|
curl_close($c);
|
||||||
|
|
||||||
$arResult = [];
|
$arResult = [];
|
||||||
$arResult['CALCULATION'] = (array) json_decode(file_get_contents("https://evoleasing.ru/api/calculation/"
|
$arResult['CALCULATION'] = (array) json_decode($response);
|
||||||
."?car_price=".$arParams['car_price']
|
|
||||||
."&initial_payment=".$arParams['initial_payment']
|
|
||||||
."&lease_period=".$arParams['lease_period']
|
|
||||||
."&redemption_payment=".$arParams['redemption_payment'].""));
|
|
||||||
|
|
||||||
$this->IncludeComponentTemplate();
|
$this->IncludeComponentTemplate();
|
||||||
}
|
}
|
||||||
@ -15,7 +15,7 @@ $this->setFrameMode(true);
|
|||||||
<script>
|
<script>
|
||||||
$(function()
|
$(function()
|
||||||
{
|
{
|
||||||
calculator(<?= CUtil::PhpToJSObject(array_merge($arParams, $arResult['CALCULATION'])); ?>);
|
calculator(<?= CUtil::PhpToJSObject(array_merge(gettype($arParams) === "array" ? $arParams : [], gettype($arResult['CALCULATION']) === "array" ? $arResult['CALCULATION'] : [] )); ?>);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
@ -35,7 +35,7 @@ $this->setFrameMode(true);
|
|||||||
<?= isset($arResult['PROPERTIES']['CONTENT_TOP']['~VALUE']['TEXT']) ? $arResult['PROPERTIES']['CONTENT_TOP']['~VALUE']['TEXT'] : ""; ?>
|
<?= isset($arResult['PROPERTIES']['CONTENT_TOP']['~VALUE']['TEXT']) ? $arResult['PROPERTIES']['CONTENT_TOP']['~VALUE']['TEXT'] : ""; ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="leasing_offer">
|
<div class="leasing_offer">
|
||||||
<? if(count($arResult['PROPERTIES']['CARS']['RELATED']) > 0): ?>
|
<? if(!is_null($arResult['PROPERTIES']['CARS']['RELATED']) && count($arResult['PROPERTIES']['CARS']['RELATED']) > 0): ?>
|
||||||
<div class="title_wrapper">
|
<div class="title_wrapper">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<h3>Лизинговые предложения</h3>
|
<h3>Лизинговые предложения</h3>
|
||||||
@ -55,43 +55,47 @@ $this->setFrameMode(true);
|
|||||||
</div>
|
</div>
|
||||||
<div id="leasing_slider">
|
<div id="leasing_slider">
|
||||||
<div class="leasing_list swiped">
|
<div class="leasing_list swiped">
|
||||||
<? for($i = 0; $i < count($arResult['PROPERTIES']['CARS']['RELATED']); $i++): ?>
|
<? if(is_array($arResult['PROPERTIES']['CARS']['RELATED'])): ?>
|
||||||
<? $car = $arResult['PROPERTIES']['CARS']['RELATED'][$i]; ?>
|
<? for($i = 0; $i < count($arResult['PROPERTIES']['CARS']['RELATED']); $i++): ?>
|
||||||
<div class="leasing_item">
|
<? $car = $arResult['PROPERTIES']['CARS']['RELATED'][$i]; ?>
|
||||||
<a class="item_wrapper car_top_card" data-id="<?= $i; ?>" style="cursor: pointer;">
|
<div class="leasing_item">
|
||||||
<img src="<?= $car['PREVIEW_PICTURE']; ?>" alt="<?= $car['NAME']; ?>" />
|
<a class="item_wrapper car_top_card" data-id="<?= $i; ?>" style="cursor: pointer;">
|
||||||
<span class="leasing_model"><?= $car['NAME']; ?></span>
|
<img src="<?= $car['PREVIEW_PICTURE']; ?>" alt="<?= $car['NAME']; ?>" />
|
||||||
<span class="leasing_desc"><?= $car['PROPERTIES']['TAGLINE']['VALUE']; ?></span>
|
<span class="leasing_model"><?= $car['NAME']; ?></span>
|
||||||
</a>
|
<span class="leasing_desc"><?= $car['PROPERTIES']['TAGLINE']['VALUE']; ?></span>
|
||||||
</div>
|
</a>
|
||||||
<? endfor; ?>
|
</div>
|
||||||
|
<? endfor; ?>
|
||||||
|
<? endif; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<? endif; ?>
|
<? endif; ?>
|
||||||
<a id="leasing_offer_car"></a>
|
<a id="leasing_offer_car"></a>
|
||||||
<? for($i = 0; $i < count($arResult['PROPERTIES']['CARS']['RELATED']); $i++): ?>
|
<? if(is_array($arResult['PROPERTIES']['CARS']['RELATED'])): ?>
|
||||||
<div class="leasing_offer-detail car_top_description car_top_description_<?= $i; ?>" style="display: <?= $i == 0 ? "flex" : "none"; ?>;">
|
<? for($i = 0; $i < count($arResult['PROPERTIES']['CARS']['RELATED']); $i++): ?>
|
||||||
<div id="single_slider" class="image_slider">
|
<div class="leasing_offer-detail car_top_description car_top_description_<?= $i; ?>" style="display: <?= $i == 0 ? "flex" : "none"; ?>;">
|
||||||
<div class="slider_list">
|
<div id="single_slider" class="image_slider">
|
||||||
<? foreach($arResult['PROPERTIES']['CARS']['RELATED'][$i]['PROPERTIES']['PHOTOS']['VALUE'] AS $photo_url): ?>
|
<div class="slider_list">
|
||||||
<div class="slide">
|
<? foreach($arResult['PROPERTIES']['CARS']['RELATED'][$i]['PROPERTIES']['PHOTOS']['VALUE'] AS $photo_url): ?>
|
||||||
<img src="<?= $photo_url; ?>" alt="<?= $arResult['PROPERTIES']['CARS']['RELATED'][$i]['NAME']; ?>" />
|
<div class="slide">
|
||||||
|
<img src="<?= $photo_url; ?>" alt="<?= $arResult['PROPERTIES']['CARS']['RELATED'][$i]['NAME']; ?>" />
|
||||||
|
</div>
|
||||||
|
<? endforeach; ?>
|
||||||
|
</div>
|
||||||
|
<div class="slider_dots">
|
||||||
|
<script type="text/template" id="embla-dot-template">
|
||||||
|
<button class="embla__dot" type="button"></button>
|
||||||
|
</script>
|
||||||
</div>
|
</div>
|
||||||
<? endforeach; ?>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="slider_dots">
|
<div class="offer_desc">
|
||||||
<script type="text/template" id="embla-dot-template">
|
<p class="offer_name"><?= $arResult['PROPERTIES']['CARS']['RELATED'][$i]['NAME']; ?></p>
|
||||||
<button class="embla__dot" type="button"></button>
|
<?= $arResult['PROPERTIES']['CARS']['RELATED'][$i]['PREVIEW_TEXT']; ?>
|
||||||
</script>
|
<a href="#order" class="button button-blue">Отправить заявку</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="offer_desc">
|
<? endfor; ?>
|
||||||
<p class="offer_name"><?= $arResult['PROPERTIES']['CARS']['RELATED'][$i]['NAME']; ?></p>
|
<? endif; ?>
|
||||||
<?= $arResult['PROPERTIES']['CARS']['RELATED'][$i]['PREVIEW_TEXT']; ?>
|
|
||||||
<a href="#order" class="button button-blue">Отправить заявку</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<? endfor; ?>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="aside_container">
|
<div class="aside_container">
|
||||||
<article>
|
<article>
|
||||||
|
|||||||
@ -36,8 +36,8 @@ IncludeTemplateLangFile(__FILE__);
|
|||||||
|
|
||||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||||
|
|
||||||
<link rel="icon" type="image/png" href="/favicon/favicon-16.png" sizes="16x16" />
|
<link rel="icon" type="image/png" href="/favicon/favicon_16.png" sizes="16x16" />
|
||||||
<link rel="icon" type="image/png" href="/favicon/favicon-32.png" sizes="32x32" />
|
<link rel="icon" type="image/png" href="/favicon/favicon_32.png" sizes="32x32" />
|
||||||
<link rel="icon" type="image/png" href="/favicon/favicon_96.png" sizes="96x96" />
|
<link rel="icon" type="image/png" href="/favicon/favicon_96.png" sizes="96x96" />
|
||||||
|
|
||||||
<link rel="apple-touch-icon" sizes="57x57" href="/favicon/favicon_57.png" />
|
<link rel="apple-touch-icon" sizes="57x57" href="/favicon/favicon_57.png" />
|
||||||
|
|||||||
@ -32,8 +32,8 @@ IncludeTemplateLangFile(__FILE__);
|
|||||||
|
|
||||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||||
|
|
||||||
<link rel="icon" type="image/png" href="/favicon/favicon-16.png" sizes="16x16" />
|
<link rel="icon" type="image/png" href="/favicon/favicon_16.png" sizes="16x16" />
|
||||||
<link rel="icon" type="image/png" href="/favicon/favicon-32.png" sizes="32x32" />
|
<link rel="icon" type="image/png" href="/favicon/favicon_32.png" sizes="32x32" />
|
||||||
<link rel="icon" type="image/png" href="/favicon/favicon_96.png" sizes="96x96" />
|
<link rel="icon" type="image/png" href="/favicon/favicon_96.png" sizes="96x96" />
|
||||||
|
|
||||||
<link rel="apple-touch-icon" sizes="57x57" href="/favicon/favicon_57.png" />
|
<link rel="apple-touch-icon" sizes="57x57" href="/favicon/favicon_57.png" />
|
||||||
|
|||||||