Лагерь: Секция 2-3
This commit is contained in:
parent
bbb0161bcd
commit
e693fa55d1
@ -1146,135 +1146,240 @@ html {
|
|||||||
|
|
||||||
/* modal END */
|
/* modal END */
|
||||||
/* bring-child */
|
/* bring-child */
|
||||||
.bring-child p {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bring-child-wrapper {
|
.bring-child-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 40px;
|
gap: 40px;
|
||||||
|
align-items: stretch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.part-day {
|
.pricing-card {
|
||||||
width: calc(50% - 20px);
|
flex: 1;
|
||||||
padding: 30px;
|
background: #fff;
|
||||||
border-radius: 40px;
|
border-radius: 24px;
|
||||||
border: 2px solid #e8e8e8;
|
padding: 36px 32px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 30px;
|
gap: 24px;
|
||||||
color: #212121;
|
border: 1px solid #e8e8e8;
|
||||||
|
box-shadow: 0 2px 12px rgba(0,0,0,0.04);
|
||||||
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.block-row {
|
.pricing-card:hover {
|
||||||
|
transform: translateY(-4px);
|
||||||
|
box-shadow: 0 8px 32px rgba(0,0,0,0.08);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card--full {
|
||||||
|
border-color: #ae5fcd;
|
||||||
|
box-shadow: 0 4px 20px rgba(174, 95, 205, 0.1);
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card--full::before {
|
||||||
|
content: '"0#5#A#E#C#5#D#4$3#5#C';
|
||||||
|
position: absolute;
|
||||||
|
top: -12px;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
background: #ae5fcd;
|
||||||
|
color: #fff;
|
||||||
|
font-family: Inter, sans-serif;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 600;
|
||||||
|
padding: 4px 20px;
|
||||||
|
border-radius: 20px;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card__header {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card__badge {
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
border-radius: 14px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.part-day_title {
|
.pricing-card__badge--half {
|
||||||
display: flex;
|
background: rgba(59, 178, 115, 0.1);
|
||||||
flex-direction: column;
|
|
||||||
gap: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.part-day_title-text {
|
.pricing-card__badge--full {
|
||||||
font-size: 30px;
|
background: rgba(174, 95, 205, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card__title {
|
||||||
|
font-family: Montserrat, sans-serif;
|
||||||
|
font-size: 26px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #1c2b2d;
|
||||||
|
margin: 0;
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
font-weight: 600;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.part-day_text {
|
.pricing-card__desc {
|
||||||
font-size: 18px;
|
font-family: Inter, sans-serif;
|
||||||
line-height: 1.3;
|
font-size: 15px;
|
||||||
font-weight: 500;
|
line-height: 1.5;
|
||||||
|
color: #666;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.part-day__price {
|
.pricing-card__price {
|
||||||
padding-bottom: 30px;
|
text-align: center;
|
||||||
border-bottom: 1px solid #e8e8e8;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.part-day__price_price {
|
|
||||||
font-size: 34px;
|
|
||||||
line-height: 1;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
.part-day__price_time {
|
|
||||||
font-size: 18px;
|
|
||||||
font-weight: 500;
|
|
||||||
border-radius: 30px;
|
|
||||||
color: #fff;
|
|
||||||
padding: 5px 10px;
|
|
||||||
margin-left: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.camp-left-part .part-day__price_time {
|
|
||||||
border: 2px solid #3bb273;
|
|
||||||
background-color: #3bb273;
|
|
||||||
}
|
|
||||||
|
|
||||||
.camp-right-part .part-day__price_time {
|
|
||||||
border: 2px solid #ae5fcd;
|
|
||||||
background-color: #ae5fcd;
|
|
||||||
}
|
|
||||||
|
|
||||||
.non-bg {
|
|
||||||
background-color: transparent !important;
|
|
||||||
color: #212121;
|
|
||||||
}
|
|
||||||
|
|
||||||
.part-day__price_text {
|
|
||||||
color: #9d9d9d;
|
|
||||||
font-size: 18px;
|
|
||||||
line-height: 1.3;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-place {
|
|
||||||
padding: 20px 0;
|
padding: 20px 0;
|
||||||
color: #ffffff;
|
border-top: 1px solid #eee;
|
||||||
font-size: 20px;
|
border-bottom: 1px solid #eee;
|
||||||
line-height: 1.3;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card__amount {
|
||||||
|
font-family: Montserrat, sans-serif;
|
||||||
|
font-size: 36px;
|
||||||
|
font-weight: 800;
|
||||||
|
color: #1c2b2d;
|
||||||
|
line-height: 1.1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card--half .pricing-card__amount {
|
||||||
|
color: #3bb273;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card--full .pricing-card__amount {
|
||||||
|
color: #ae5fcd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card__period {
|
||||||
|
font-family: Inter, sans-serif;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #999;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card__slots {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card__slot {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 10px 16px;
|
||||||
|
background: #f8f8f8;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card__slot-time {
|
||||||
|
font-family: Inter, sans-serif;
|
||||||
|
font-size: 15px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
width: 100%;
|
color: #1c2b2d;
|
||||||
border-radius: 50px;
|
|
||||||
text-transform: uppercase;
|
|
||||||
transition: .3s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.camp-left-part .btn-place {
|
.pricing-card__slot-label {
|
||||||
border: 2px solid #3bb273;
|
font-family: Inter, sans-serif;
|
||||||
background-color: #3bb273;
|
font-size: 13px;
|
||||||
|
color: #999;
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.camp-right-part .btn-place {
|
.pricing-card__features {
|
||||||
border: 2px solid #ae5fcd;
|
|
||||||
background-color: #ae5fcd;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-place:hover {
|
|
||||||
background-color: transparent !important;
|
|
||||||
color: #212121;
|
|
||||||
}
|
|
||||||
|
|
||||||
.part-day ul {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
color: #212121;
|
padding: 0;
|
||||||
font-size: 18px;
|
margin: 0;
|
||||||
line-height: 1.3;
|
list-style: none;
|
||||||
font-weight: 500;
|
|
||||||
padding-left: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.part-day ul li {
|
.pricing-card__features li {
|
||||||
list-style: disc;
|
font-family: Inter, sans-serif;
|
||||||
|
font-size: 15px;
|
||||||
|
line-height: 1.5;
|
||||||
|
color: #444;
|
||||||
|
padding-left: 24px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card__features li::before {
|
||||||
|
content: '¹3';
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 2px;
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
border-radius: 50%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card--half .pricing-card__features li::before {
|
||||||
|
background: rgba(59, 178, 115, 0.15);
|
||||||
|
color: #3bb273;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card--full .pricing-card__features li::before {
|
||||||
|
background: rgba(174, 95, 205, 0.15);
|
||||||
|
color: #ae5fcd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card__extra {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 12px 16px;
|
||||||
|
background: #fafafa;
|
||||||
|
border-radius: 10px;
|
||||||
|
font-family: Inter, sans-serif;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #555;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card__btn {
|
||||||
|
width: 100%;
|
||||||
|
padding: 16px 0;
|
||||||
|
border: none;
|
||||||
|
border-radius: 50px;
|
||||||
|
font-family: Montserrat, sans-serif;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 700;
|
||||||
|
text-transform: uppercase;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.3s ease;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card--half .pricing-card__btn {
|
||||||
|
background: #3bb273;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card--half .pricing-card__btn:hover {
|
||||||
|
background: #2d9d5f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card--full .pricing-card__btn {
|
||||||
|
background: #ae5fcd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card--full .pricing-card__btn:hover {
|
||||||
|
background: #9747b8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* bring-child END */
|
/* bring-child END */
|
||||||
|
|||||||
@ -24,9 +24,6 @@ const modalMentors = document.querySelector('.modal-mentors');
|
|||||||
|
|
||||||
const modalCampRequestForm = document.querySelector('.modal-camp-request-form');
|
const modalCampRequestForm = document.querySelector('.modal-camp-request-form');
|
||||||
|
|
||||||
const b24template = document.querySelector('#b24-camp-template');
|
|
||||||
const b24container = document.querySelector('.b24-form-container');
|
|
||||||
|
|
||||||
btnCloseModalPrograms.addEventListener("click", function (event) {
|
btnCloseModalPrograms.addEventListener("click", function (event) {
|
||||||
modalPrograms.classList.remove('open');
|
modalPrograms.classList.remove('open');
|
||||||
});
|
});
|
||||||
@ -39,8 +36,6 @@ document.addEventListener("click", function (event) {
|
|||||||
|
|
||||||
if (target.classList.contains("btn-close-request-form-camp")) {
|
if (target.classList.contains("btn-close-request-form-camp")) {
|
||||||
modalCampRequestForm.classList.add('hidden');
|
modalCampRequestForm.classList.add('hidden');
|
||||||
// clear bitrix24 form on close (ready for re-open)
|
|
||||||
b24container.innerHTML = '';
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,18 +43,22 @@ document.addEventListener("click", function (event) {
|
|||||||
if (campBtn) {
|
if (campBtn) {
|
||||||
if (campBtn.tagName === 'A') event.preventDefault();
|
if (campBtn.tagName === 'A') event.preventDefault();
|
||||||
|
|
||||||
// prevent footer bitrix24 loader
|
|
||||||
window.b24campLoaded = true;
|
window.b24campLoaded = true;
|
||||||
|
|
||||||
// show modal
|
|
||||||
modalCampRequestForm.classList.remove('hidden');
|
modalCampRequestForm.classList.remove('hidden');
|
||||||
|
|
||||||
// load Bitrix24 from template
|
var container = modalCampRequestForm.querySelector('.b24-form-container');
|
||||||
if (b24template && !b24container.hasChildNodes()) {
|
if (!container.querySelector('.b24-form')) {
|
||||||
const clone = document.importNode(b24template.content, true);
|
var fForm = modalCampRequestForm.dataset.b24Form;
|
||||||
b24container.appendChild(clone);
|
var fLoader = modalCampRequestForm.dataset.b24Loader;
|
||||||
|
if (fForm && fLoader) {
|
||||||
|
var s = document.createElement('script');
|
||||||
|
s.setAttribute('data-b24-form', fForm);
|
||||||
|
s.setAttribute('data-skip-moving', 'true');
|
||||||
|
s.text = "(function(w,d,u){var s=d.createElement('script');s.async=true;s.src=u+'?'+(Date.now()/180000|0);var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})(window,document,'" + fLoader + "');";
|
||||||
|
container.appendChild(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -292,67 +292,74 @@ $metrics = [
|
|||||||
?>
|
?>
|
||||||
<h2 class="camp_title">Приводите ребёнка, когда вам удобно</h2>
|
<h2 class="camp_title">Приводите ребёнка, когда вам удобно</h2>
|
||||||
<div class="bring-child-wrapper">
|
<div class="bring-child-wrapper">
|
||||||
<div class="part-day camp-left-part">
|
|
||||||
<div class="part-day_title">
|
<div class="pricing-card pricing-card--half">
|
||||||
<div class="block-row">
|
<div class="pricing-card__header">
|
||||||
<p class="part-day_title-text">Половина дня</p>
|
<div class="pricing-card__badge pricing-card__badge--half">
|
||||||
<img loading="lazy" src="<?php echo $theme_uri; ?>/assets/images/green-star.svg" width="30" height="30" alt="">
|
<img loading="lazy" src="<?php echo $theme_uri; ?>/assets/images/green-star.svg" width="24" height="24" alt="">
|
||||||
</div>
|
</div>
|
||||||
<p class="part-day_text">Время пребывания — на выбор (до обеда или до вечера)</p>
|
<h3 class="pricing-card__title">Половина дня</h3>
|
||||||
|
<p class="pricing-card__desc">Время пребывания — на выбор (до обеда или до вечера)</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="part-day__price">
|
<div class="pricing-card__price" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
|
||||||
<div class="block-row">
|
<span class="pricing-card__amount" itemprop="price" content="<?php echo esc_attr($price_half_day); ?>"><?php echo number_format($price_half_day, 0, ',', ' '); ?> ₽</span>
|
||||||
<div class="part-day__price_price" itemprop="offers" itemscope itemtype="https://schema.org/Offer"><span itemprop="price" content="<?php echo esc_attr($price_half_day); ?>"><?php echo number_format($price_half_day, 0, ',', ' '); ?></span><meta itemprop="priceCurrency" content="RUB"></div>
|
<span class="pricing-card__period">за 5 дней</span>
|
||||||
<div class="part-day__price_time">с 8:30 до 13:30</div>
|
<meta itemprop="priceCurrency" content="RUB">
|
||||||
</div>
|
</div>
|
||||||
<p class="part-day__price_text">за 5 дней пребывания</p>
|
<div class="pricing-card__slots">
|
||||||
|
<div class="pricing-card__slot">
|
||||||
|
<span class="pricing-card__slot-time">с 8:30 до 13:30</span>
|
||||||
|
<span class="pricing-card__slot-label">утренняя смена</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="part-day__price">
|
<div class="pricing-card__slot">
|
||||||
<div class="block-row">
|
<span class="pricing-card__slot-time">с 13:30 до 18:30</span>
|
||||||
<div class="part-day__price_price">
|
<span class="pricing-card__slot-label">вечерняя смена</span>
|
||||||
<?php echo number_format($price_half_day, 0, ',', ' '); ?></div>
|
|
||||||
<div class="part-day__price_time non-bg">с 13:30 до 18:30</div>
|
|
||||||
</div>
|
</div>
|
||||||
<p class="part-day__price_text">за 5 дней пребывания</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="block-row">
|
<ul class="pricing-card__features">
|
||||||
<img loading="lazy" src="<?php echo $theme_uri; ?>/assets/images/calendar.png" width="27" height="28" alt="">
|
|
||||||
<p class="part-day_text">Тематическая неделя на выбор</p>
|
|
||||||
</div>
|
|
||||||
<button class="btn-place btn-write-camp">Занять место</button>
|
|
||||||
<ul>
|
|
||||||
<li><b>5 дней</b> пребывания в клубе</li>
|
<li><b>5 дней</b> пребывания в клубе</li>
|
||||||
<li>творческие занятия и мастер-классы <b>1 раз в день</b></li>
|
<li>творческие занятия и мастер-классы <b>1 раз в день</b></li>
|
||||||
<li>умные прогулки <b>1 раз в день</b> (в зависимости от погодные условий)</li>
|
<li>умные прогулки <b>1 раз в день</b></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<div class="pricing-card__extra">
|
||||||
|
<img loading="lazy" src="<?php echo $theme_uri; ?>/assets/images/calendar.png" width="20" height="20" alt="">
|
||||||
|
<span>Тематическая неделя на выбор</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="part-day camp-right-part">
|
<button class="pricing-card__btn btn-write-camp">Занять место</button>
|
||||||
<div class="part-day_title">
|
|
||||||
<div class="block-row">
|
|
||||||
<p class="part-day_title-text">Полный день</p>
|
|
||||||
<img loading="lazy" src="<?php echo $theme_uri; ?>/assets/images/star-02.svg" width="30" height="30" alt="">
|
|
||||||
</div>
|
</div>
|
||||||
<p class="part-day_text">Пребывание в клубе с утра до вечера, дополнительные активности</p>
|
|
||||||
|
<div class="pricing-card pricing-card--full">
|
||||||
|
<div class="pricing-card__header">
|
||||||
|
<div class="pricing-card__badge pricing-card__badge--full">
|
||||||
|
<img loading="lazy" src="<?php echo $theme_uri; ?>/assets/images/star-02.svg" width="24" height="24" alt="">
|
||||||
</div>
|
</div>
|
||||||
<div class="part-day__price">
|
<h3 class="pricing-card__title">Полный день</h3>
|
||||||
<div class="block-row">
|
<p class="pricing-card__desc">Пребывание в клубе с утра до вечера, дополнительные активности</p>
|
||||||
<div class="part-day__price_price" itemprop="offers" itemscope itemtype="https://schema.org/Offer"><span itemprop="price" content="<?php echo esc_attr($price_full_day); ?>"><?php echo number_format($price_full_day, 0, ',', ' '); ?></span><meta itemprop="priceCurrency" content="RUB"></div>
|
|
||||||
<div class="part-day__price_time non-bg">с 8:30 до 18:30</div>
|
|
||||||
</div>
|
</div>
|
||||||
<p class="part-day__price_text">за 5 дней пребывания</p>
|
<div class="pricing-card__price" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
|
||||||
|
<span class="pricing-card__amount" itemprop="price" content="<?php echo esc_attr($price_full_day); ?>"><?php echo number_format($price_full_day, 0, ',', ' '); ?> ₽</span>
|
||||||
|
<span class="pricing-card__period">за 5 дней</span>
|
||||||
|
<meta itemprop="priceCurrency" content="RUB">
|
||||||
</div>
|
</div>
|
||||||
<div class="block-row">
|
<div class="pricing-card__slots">
|
||||||
<img loading="lazy" src="<?php echo $theme_uri; ?>/assets/images/calendar+.png" width="27" height="28" alt="">
|
<div class="pricing-card__slot">
|
||||||
<p class="part-day_text">Тематическая неделя на выбор</p>
|
<span class="pricing-card__slot-time">с 8:30 до 18:30</span>
|
||||||
|
<span class="pricing-card__slot-label">полный день</span>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn-place btn-write-camp">Занять место</button>
|
</div>
|
||||||
<ul>
|
<ul class="pricing-card__features">
|
||||||
<li><b>5 дней</b> пребывания в клубе</li>
|
<li><b>5 дней</b> пребывания в клубе</li>
|
||||||
<li>творческие занятия и мастер-классы <b>2 раза в день</b></li>
|
<li>творческие занятия и мастер-классы <b>2 раза в день</b></li>
|
||||||
<li>умные прогулки <b>2 раза в день</b> (в зависимости от погодные условий)</li>
|
<li>умные прогулки <b>2 раза в день</b></li>
|
||||||
<li>тематические экскурсии каждую неделю</li>
|
<li>тематические экскурсии каждую неделю</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<div class="pricing-card__extra">
|
||||||
|
<img loading="lazy" src="<?php echo $theme_uri; ?>/assets/images/calendar+.png" width="20" height="20" alt="">
|
||||||
|
<span>Тематическая неделя на выбор</span>
|
||||||
</div>
|
</div>
|
||||||
|
<button class="pricing-card__btn btn-write-camp">Занять место</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@ -700,7 +707,16 @@ $metrics = [
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-camp-request-form hidden">
|
<?php
|
||||||
|
$_b24_raw = carbon_get_post_meta($post_id, 'camp_bitrix_script');
|
||||||
|
$_b24_form = '';
|
||||||
|
$_b24_url = '';
|
||||||
|
if (preg_match('/data-b24-form="([^"]+)"/', $_b24_raw, $_m)) $_b24_form = $_m[1];
|
||||||
|
if (preg_match("/\\(window,document,'([^']+)'\\)/", $_b24_raw, $_m)) $_b24_url = $_m[1];
|
||||||
|
?>
|
||||||
|
<div class="modal-camp-request-form hidden"
|
||||||
|
data-b24-form="<?php echo esc_attr($_b24_form); ?>"
|
||||||
|
data-b24-loader="<?php echo esc_attr($_b24_url); ?>">
|
||||||
<div class="form-wrapper">
|
<div class="form-wrapper">
|
||||||
<button class="btn-close-request-form">
|
<button class="btn-close-request-form">
|
||||||
<img class="btn-close-request-form-camp" src="<?php echo $theme_uri; ?>/assets/images/btn-close-modal.svg" alt="кнопка закрыть окно">
|
<img class="btn-close-request-form-camp" src="<?php echo $theme_uri; ?>/assets/images/btn-close-modal.svg" alt="кнопка закрыть окно">
|
||||||
@ -709,8 +725,6 @@ $metrics = [
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<template id="b24-camp-template"><?php echo carbon_get_post_meta($post_id, 'camp_bitrix_script' ); ?></template>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
(function() {
|
(function() {
|
||||||
var mapLoaded = false;
|
var mapLoaded = false;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user