Лагерь: Общий код
This commit is contained in:
parent
40c1cf8fe2
commit
21221f21cc
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,6 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="58" height="60" viewBox="0 0 58 60" fill="none">
|
||||
<path d="M17.7452 34.2306C20.416 32.4987 22.1345 29.9996 22.8983 27.1153C23.0892 26.1532 23.2802 25.1934 23.2802 24.0388C23.4711 17.6934 18.1271 12.5 11.6401 12.5C5.15074 12.5 0 17.8831 0 24.2308C0 28.2694 2.09796 32.1154 5.5349 34.2299C9.1579 36.729 14.1199 36.729 17.7453 34.2299L17.7452 34.2306Z" fill="#3BB273"/>
|
||||
<path d="M44.8413 2.30664V12.8855H55.3358L44.8413 2.30664Z" fill="#3BB273"/>
|
||||
<path d="M16.981 38.2696C16.5991 38.462 16.2172 38.6544 15.6444 38.6544H15.4534C14.8806 38.8469 14.4987 38.8469 13.9259 39.0393H13.1621H12.0164H11.4436H10.8708H9.72511C9.53417 39.0393 9.34322 39.0393 8.96131 38.8469C8.38848 38.8469 8.00661 38.6544 7.43376 38.462H7.24281C6.86092 38.2696 6.47901 38.2696 6.09717 38.0771V51.5372L10.2955 47.3062C10.4864 47.1138 10.4864 47.1138 10.6774 46.9213H11.0592H11.2502H11.6321H11.823C12.014 46.9213 12.2049 47.1138 12.2049 47.3062L16.4032 51.5372L16.4081 38.2691L16.981 38.2696Z" fill="#3BB273"/>
|
||||
<path d="M41.5984 14.6152V0H15.0745C14.1198 0 13.1675 0.769761 13.1675 1.92188V9.42181C13.5494 9.42181 14.1222 9.61424 14.5041 9.61424C14.886 9.61424 15.4588 9.80667 15.8407 9.99911C16.0316 9.99911 16.2226 10.1915 16.2226 10.1915C16.7954 10.1915 17.1772 10.1915 17.3682 10.384C17.5591 10.384 17.7501 10.5764 17.941 10.5764C18.132 10.7688 18.5139 10.7688 18.7048 10.9613C18.8958 10.9613 19.0867 11.1537 19.2777 11.3461C19.4686 11.5386 19.6596 11.5386 20.0415 11.731C20.2324 11.9234 20.4234 11.9234 20.6143 12.1159C20.8052 12.3083 20.9962 12.5007 21.1871 12.5007C21.3781 12.6932 21.569 12.6932 21.569 12.8856C21.76 13.0781 21.9509 13.2705 22.1418 13.4629C22.3328 13.6553 22.5237 13.8478 22.5237 13.8478C22.7147 14.0402 22.9056 14.2326 23.0966 14.4251C23.2875 14.6175 23.2875 14.8099 23.4785 15.0024C23.6694 15.1948 23.8603 15.3872 23.8603 15.5797C24.0513 15.7721 24.0513 15.9645 24.2422 16.157C24.4332 16.3494 24.4332 16.5418 24.6241 16.7343C24.8151 16.9267 24.8151 17.1191 25.006 17.3116C25.197 17.504 25.197 17.6964 25.3879 18.0813C25.3879 18.2738 25.5789 18.4662 25.5789 18.6586C25.7698 18.851 25.7698 19.2359 25.7698 19.4284C25.7698 19.6208 25.9607 19.8132 25.9607 20.0057C25.9607 20.1981 26.1517 20.583 26.1517 20.7754C26.1517 20.9679 26.3426 21.1603 26.3426 21.3527C26.3426 21.7376 26.5336 21.93 26.5336 22.3149V22.8922V24.4316C26.5336 25.0089 26.5336 25.7786 26.3426 26.3535C26.3426 26.5459 26.3426 26.7384 26.1517 26.9308C26.1517 27.3157 25.9607 27.7006 25.9607 28.0854C25.9607 28.2778 25.7698 28.4702 25.7698 28.8551C25.5788 29.24 25.5788 29.6249 25.3879 29.8173C25.3879 30.0097 25.197 30.3946 25.006 30.587C24.8151 30.9719 24.8151 31.1643 24.6241 31.5492C24.4332 31.7416 24.4332 31.934 24.2422 32.3189C24.0513 32.7038 23.8603 32.8962 23.6694 33.0887C23.4785 33.2811 23.2875 33.4736 23.0966 33.666C22.9056 33.8584 22.7147 34.2433 22.5237 34.4357C22.3328 34.6282 22.1419 34.8206 21.9509 35.013C21.7526 35.1931 21.3707 35.3856 21.1798 35.768C20.9888 35.9604 20.7979 36.1528 20.416 36.3453C20.225 36.5377 20.225 36.5377 20.0341 36.7301V55.7689C20.0341 56.3462 19.6522 56.9235 19.0794 57.3084C18.8885 57.3084 18.6975 57.5008 18.5066 57.5008H18.3156H17.9337H17.7428C17.5518 57.5008 17.3609 57.3084 17.3609 57.1159L13.1626 52.8849V58.0781C13.1626 59.0403 13.9264 60 15.0696 60H55.7134C56.6681 60 57.6204 59.2302 57.6204 58.0781L57.6253 16.1549H43.1231C42.3593 16.1549 41.5984 15.3849 41.5984 14.6152Z" fill="#3BB273"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.4 KiB |
@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="60" height="58" viewBox="0 0 60 58" fill="none">
|
||||
<path d="M51.7003 32.1748C51.0003 31.8748 50.3003 31.8748 49.6003 32.2748L30.4003 45.4748L22.5003 40.1748C21.9003 39.7748 21.0003 39.7748 20.4003 40.0748C19.7003 40.4748 19.4003 41.1748 19.4003 41.9748C19.7003 44.6748 17.0003 46.0748 16.9003 46.0748C16.3003 46.3748 15.8003 47.0748 15.8003 47.7748C15.8003 48.4748 16.1003 49.1748 16.8003 49.5748L29.8003 57.5748C30.1003 57.7748 30.5003 57.8748 30.8003 57.8748C31.2003 57.8748 31.5003 57.7748 31.8003 57.5748L51.8003 45.5748C52.4003 45.1748 52.8003 44.5748 52.8003 43.8748V33.9748C52.8003 33.2748 52.4003 32.5748 51.7003 32.1748Z" fill="#3BB273"/>
|
||||
<path d="M59.0002 20.375L32.0002 0.375C31.3002 -0.125 30.4002 -0.125 29.7002 0.375L1.10019 19.675C0.500195 20.075 0.200195 20.675 0.200195 21.375C0.200195 22.075 0.500195 22.675 1.10019 23.075L10.3002 29.075C10.2002 29.975 10.0002 30.975 9.90019 32.075C6.50019 32.575 3.90019 35.475 3.90019 38.975C3.90019 42.075 5.9002 44.675 8.7002 45.575C7.9002 48.675 4.60019 48.975 3.90019 48.975C2.80019 48.975 1.90019 49.875 1.90019 50.975C1.90019 52.075 2.80019 52.975 3.90019 52.975C7.20019 52.975 11.9002 50.975 12.7002 45.675C15.7002 44.875 17.9002 42.175 17.9002 38.975C17.9002 36.175 16.3002 33.775 13.9002 32.675C14.0002 32.075 14.1002 31.475 14.1002 30.975C14.4002 30.975 14.7002 30.875 15.0002 30.675L26.9002 22.475L29.3002 24.075L18.7002 31.375C18.2002 31.775 17.8002 32.375 17.8002 32.975C17.8002 33.575 18.1002 34.275 18.6002 34.575L28.9002 42.075C29.3002 42.375 29.7002 42.475 30.1002 42.475C30.5002 42.475 30.9002 42.375 31.2002 42.175L58.9002 23.675C59.4002 23.275 59.8002 22.675 59.8002 22.075C59.8002 21.375 59.5002 20.775 59.0002 20.375ZM10.8002 41.975C9.10019 41.975 7.80019 40.675 7.80019 38.975C7.80019 37.275 9.10019 35.975 10.8002 35.975C12.5002 35.975 13.8002 37.275 13.8002 38.975C13.8002 40.675 12.5002 41.975 10.8002 41.975Z" fill="#3BB273"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="59" height="58" viewBox="0 0 59 58" fill="none">
|
||||
<path d="M54.2012 16.1C53.5012 13.9 52.2012 11.9 50.6012 10.4C49.4012 4.4 44.1012 0 38.0012 0H21.5012C15.3012 0 10.1012 4.4 8.90117 10.3C7.20117 11.8 6.00117 13.8 5.30117 16C2.50117 18.5 0.701172 22 0.701172 25.9V45.1C0.701172 52.2 6.50117 58 13.6012 58H45.8012C52.9012 58 58.7012 52.2 58.7012 45.1V25.9C58.7012 22 56.9012 18.5 54.2012 16.1ZM21.5012 4H37.9012C40.7012 4 43.2012 5.3 44.8012 7.4C43.8012 7.2 42.8012 7 41.8012 7H17.5012C16.5012 7 15.5012 7.1 14.5012 7.4C16.2012 5.3 18.7012 4 21.5012 4ZM43.6012 27.4L27.1012 43.9C26.7012 44.3 26.2012 44.5 25.7012 44.5C25.2012 44.5 24.7012 44.3 24.3012 43.9L15.8012 35.4C15.0012 34.6 15.0012 33.4 15.8012 32.6C16.6012 31.8 17.8012 31.8 18.6012 32.6L25.7012 39.7L40.8012 24.6C41.6012 23.8 42.8012 23.8 43.6012 24.6C44.4012 25.4 44.4012 26.6 43.6012 27.4ZM13.6012 13C13.0012 13 12.4012 13.1 11.9012 13.1C12.1012 13 12.2012 12.9 12.3012 12.7C13.8012 11.6 15.6012 11 17.6012 11H41.9012C44.1012 11 46.1012 11.8 47.7012 13.1C47.1012 13 46.5012 13 45.9012 13H13.6012Z" fill="#3BB273"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
21
wp-content/themes/dekart/assets/images/icons/scroll-hand.svg
Normal file
21
wp-content/themes/dekart/assets/images/icons/scroll-hand.svg
Normal file
@ -0,0 +1,21 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 300">
|
||||
<rect class="card" x="480" width="200" height="200" rx="5" fill="rgba(190,190,190,0.3)"/>
|
||||
<rect class="card" y="0" width="200" height="200" rx="5" fill="rgba(190,190,190,0.3)"/>
|
||||
<rect class="card" x="240" width="200" height="200" rx="5" fill="rgba(190,190,190,0.3)"/>
|
||||
<path class="hand" d="M78.9579 285.7C78.9579 285.7 37.8579 212.5 20.5579 180.8C-2.44209 138.6 -6.2422 120.8 9.6579 112C19.5579 106.5 33.2579 108.8 41.6579 123.4L61.2579 154.6V32.3C61.2579 32.3 60.0579 0 83.0579 0C107.558 0 105.458 32.3 105.458 32.3V91.7C105.458 91.7 118.358 82.4 133.458 86.6C141.158 88.7 150.158 92.4 154.958 104.6C154.958 104.6 185.658 89.7 200.958 121.4C200.958 121.4 236.358 114.4 236.358 151.1C236.358 187.8 192.158 285.7 192.158 285.7H78.9579Z" fill="rgba(190,190,190,1)"/>
|
||||
<style>
|
||||
.hand{animation:anim-hand 2s infinite}
|
||||
.card{animation:anim-card 2s infinite}
|
||||
@keyframes anim-hand{
|
||||
0%{transform:translateX(80px) scale(1);opacity:0}
|
||||
10%{transform:translateX(80px) scale(1);opacity:1}
|
||||
20%,60%{transform:translateX(175px) scale(.6);opacity:1}
|
||||
80%{transform:translateX(5px) scale(.6);opacity:1}
|
||||
to{transform:translateX(5px) scale(.6);opacity:0}
|
||||
}
|
||||
@keyframes anim-card{
|
||||
0%,60%{transform:translateX(0)}
|
||||
80%,to{transform:translateX(-240px)}
|
||||
}
|
||||
</style>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
@ -1,4 +1,3 @@
|
||||
document.querySelector('body').style='background: #FFF;';
|
||||
|
||||
var swiper = new Swiper(".camp-swiper-foto-thumbsSlider", {
|
||||
spaceBetween: 10,
|
||||
@ -41,27 +40,29 @@ document.addEventListener("click", function (event) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (target.classList.contains("btn-write-camp")) {
|
||||
const campBtn = target.closest('.btn-write-camp');
|
||||
if (campBtn) {
|
||||
if (campBtn.tagName === 'A') event.preventDefault();
|
||||
modalCampRequestForm.style = "";
|
||||
return;
|
||||
}
|
||||
|
||||
if (target.classList.contains("btn-program")) {
|
||||
modalPrograms.querySelector('.modal-programs__img').innerHTML = target.parentNode.querySelector('.programs__item_img').outerHTML;
|
||||
modalPrograms.querySelector('.programs__item_title').innerHTML = target.parentNode.querySelector('.programs__item_title').innerHTML;
|
||||
modalPrograms.querySelector('.programs__item_price').innerHTML = target.parentNode.querySelector('.programs__item_price').innerHTML;
|
||||
modalPrograms.querySelector('.programs__item_title').textContent = target.parentNode.querySelector('.programs__item_title').textContent;
|
||||
modalPrograms.querySelector('.programs__item_price').textContent = target.parentNode.querySelector('.programs__item_price').textContent;
|
||||
modalPrograms.querySelector('.programs__content').innerHTML = target.parentNode.querySelector('.programs_content').innerHTML;
|
||||
modalPrograms.classList.add('open');
|
||||
return;
|
||||
}
|
||||
if (target.classList.contains("btn-mentors")) {
|
||||
modalMentors.querySelector('.modal-programs__img').innerHTML = target.parentNode.querySelector('.mentors__item_img').outerHTML;
|
||||
modalMentors.querySelector('.modal-mentors_name').innerHTML = target.parentNode.querySelector('.mentors__item_name').innerHTML;
|
||||
modalMentors.querySelector('.modal-mentors_job').innerHTML = target.parentNode.querySelector('.mentors__item_text').innerHTML;
|
||||
modalMentors.querySelector('.mentors__about-col_text').innerHTML = target.parentNode.querySelector('.mentor_education').innerHTML;
|
||||
modalMentors.querySelector('.modal-mentors_name').textContent = target.parentNode.querySelector('.mentors__item_name').textContent;
|
||||
modalMentors.querySelector('.modal-mentors_job').textContent = target.parentNode.querySelector('.mentors__item_text').textContent;
|
||||
modalMentors.querySelector('.mentors__about-col_text').textContent = target.parentNode.querySelector('.mentor_education').textContent;
|
||||
|
||||
modalMentors.querySelector('.modal-mentors__directions').innerHTML = target.parentNode.querySelector('.HTMLdirection').innerHTML;
|
||||
modalMentors.querySelector('.mentors__experience-col_text').innerHTML = target.parentNode.querySelector('.mentor_experience').innerHTML;
|
||||
modalMentors.querySelector('.mentors__experience-col_text').textContent = target.parentNode.querySelector('.mentor_experience').textContent;
|
||||
modalMentors.querySelector('.modal-additional__education_list').innerHTML = target.parentNode.querySelector('.mentor_add_experience').innerHTML;
|
||||
modalMentors.classList.add('open');
|
||||
return;
|
||||
@ -69,39 +70,34 @@ document.addEventListener("click", function (event) {
|
||||
});
|
||||
|
||||
(function() {
|
||||
const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
||||
if (prefersReducedMotion) return;
|
||||
if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) return;
|
||||
|
||||
const animatedSections = [
|
||||
'.hero-media-search__container',
|
||||
'.about-us__wrapper',
|
||||
'.infograph h2',
|
||||
'.infograph .camp_text',
|
||||
'.infograph-wrapper',
|
||||
'.programs h2',
|
||||
'.programs-wrapper > div',
|
||||
'.mentors h2',
|
||||
'.mentors-wrapper > div',
|
||||
'.routine h2',
|
||||
'.routine__item',
|
||||
'.foto h2',
|
||||
'.camp-foto-wrapper',
|
||||
'.infograph h2', '.infograph .camp_text', '.infograph-wrapper',
|
||||
'.programs h2', '.programs-wrapper > div',
|
||||
'.mentors h2', '.mentors-wrapper > div',
|
||||
'.routine h2', '.routine__item',
|
||||
'.foto h2', '.camp-foto-wrapper',
|
||||
'.camp-reviews-wrapper',
|
||||
'.camp-faq h2',
|
||||
'.faq-wrapper',
|
||||
'.camp-contact h2',
|
||||
'.contact-wrapper',
|
||||
'.camp-faq h2', '.faq-wrapper',
|
||||
'.camp-contact h2', '.contact-wrapper',
|
||||
].join(',');
|
||||
|
||||
const els = document.querySelectorAll(animatedSections);
|
||||
if (!els.length) return;
|
||||
|
||||
const observer = new IntersectionObserver((entries) => {
|
||||
entries.forEach(entry => {
|
||||
if (entry.isIntersecting) {
|
||||
entry.target.classList.add('visible');
|
||||
observer.unobserve(entry.target);
|
||||
}
|
||||
});
|
||||
}, { threshold: 0.1, rootMargin: '0px 0px -50px 0px' });
|
||||
|
||||
document.querySelectorAll(animatedSections).forEach(el => {
|
||||
els.forEach(el => {
|
||||
el.classList.add('fade-up');
|
||||
observer.observe(el);
|
||||
});
|
||||
|
||||
@ -1,81 +0,0 @@
|
||||
<?php
|
||||
$theme_uri = get_template_directory_uri();
|
||||
$hero_img_id = carbon_get_post_meta(get_the_ID(), 'banner_img');
|
||||
$hero_img_url = $hero_img_id ? wp_get_attachment_image_url($hero_img_id, 'large') : $theme_uri . '/assets/images/camp-hero-placeholder.webp';
|
||||
$hero_img_alt = $hero_img_id ? get_post_meta($hero_img_id, '_wp_attachment_image_alt', true) : 'Camp';
|
||||
$hero_search_title = carbon_get_post_meta( get_the_ID(), 'hero_search_title' ) ?: 'Find the Camp Galileo Closest to You';
|
||||
$hero_search_placeholder = carbon_get_post_meta( get_the_ID(), 'hero_search_placeholder' ) ?: 'Search by Zip Code';
|
||||
?>
|
||||
<section class="hero-media-search">
|
||||
<div class="container">
|
||||
<div class="hero-media-search__container">
|
||||
|
||||
<div class="hero-media-search__content">
|
||||
<h1 class="heading-1 heading-highlight blue">
|
||||
Mind-Blowing Innovation. <span>Big Summer Fun!</span>
|
||||
</h1>
|
||||
|
||||
<div class="hero-media-search__propositions on-desktop">
|
||||
<div class="wrapper__propositions">
|
||||
<img src="<?php echo $theme_uri; ?>/assets/images/doodles/icon-home.png" alt="">
|
||||
<h3>90+</h3>
|
||||
<p>Communities Served</p>
|
||||
</div>
|
||||
<div class="wrapper__propositions">
|
||||
<img src="<?php echo $theme_uri; ?>/assets/images/doodles/icon-bulb.png" alt="">
|
||||
<h3>570K+</h3>
|
||||
<p>Young Innovators</p>
|
||||
</div>
|
||||
<div class="wrapper__propositions">
|
||||
<img src="<?php echo $theme_uri; ?>/assets/images/doodles/icon-award.png" alt="">
|
||||
<h3>49K+</h3>
|
||||
<p>Scholarships</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form action="" class="form hero-media-search__form on-desktop camp-finder-form-redirect">
|
||||
<h4 class="heading-4"><?php echo esc_html( $hero_search_title ); ?></h4>
|
||||
<div class="form__field">
|
||||
<input type="text" name="s" id="" placeholder="<?php echo esc_attr( $hero_search_placeholder ); ?>">
|
||||
<button type="submit" class="btn btn--blue">Search</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="hero-media-search__media">
|
||||
<div class="hero-media-search__frame">
|
||||
<img src="<?php echo esc_url($hero_img_url); ?>" alt="<?php echo esc_attr($hero_img_alt); ?>" class="hero-media-search__image" fetchpriority="high" loading="eager">
|
||||
<img src="<?php echo $theme_uri; ?>/assets/images/doodles/doodle-gears.svg" alt="" class="doodle doodle--top-left">
|
||||
<img src="<?php echo $theme_uri; ?>/assets/images/doodles/doodle-pencils.svg" alt="" class="doodle doodle--bottom-right">
|
||||
</div>
|
||||
<div class="hero-media-search__wrapper">
|
||||
<div class="hero-media-search__propositions on-mobile">
|
||||
<div class="wrapper__propositions">
|
||||
<img src="<?php echo $theme_uri; ?>/assets/images/doodles/icon-home.png" alt="">
|
||||
<h3>90+</h3>
|
||||
<p>Communities Served</p>
|
||||
</div>
|
||||
<div class="wrapper__propositions">
|
||||
<img src="<?php echo $theme_uri; ?>/assets/images/doodles/icon-bulb.png" alt="">
|
||||
<h3>570K+</h3>
|
||||
<p>Young Innovators</p>
|
||||
</div>
|
||||
<div class="wrapper__propositions">
|
||||
<img src="<?php echo $theme_uri; ?>/assets/images/doodles/icon-award.png" alt="">
|
||||
<h3>49K+</h3>
|
||||
<p>Scholarships</p>
|
||||
</div>
|
||||
</div>
|
||||
<form action="" class="form hero-media-search__form on-mobile camp-finder-form-redirect">
|
||||
<h4 class="heading-4"><?php echo esc_html( $hero_search_title ); ?></h4>
|
||||
<div class="form__field">
|
||||
<input type="text" name="s" id="" placeholder="<?php echo esc_attr( $hero_search_placeholder ); ?>">
|
||||
<button type="submit" class="btn btn--blue">Search</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@ -840,7 +840,7 @@ function enqueue_template_specific_styles() {
|
||||
'template-specific-style',
|
||||
get_template_directory_uri() . '/assets/css/camp.css',
|
||||
array(),
|
||||
'1.1'
|
||||
'1.2'
|
||||
);
|
||||
wp_enqueue_script(
|
||||
'camp-script',
|
||||
|
||||
@ -23,21 +23,24 @@ if (is_array($programs)) {
|
||||
/**
|
||||
* Banner helper
|
||||
*/
|
||||
function getBanner($nameBanner) {
|
||||
$banner_add_img = wp_get_attachment_url(carbon_get_post_meta( get_the_ID(), 'banner_add_img' . $nameBanner ));
|
||||
if ($banner_add_img == '') return;
|
||||
$banner_add_title = carbon_get_post_meta( get_the_ID(), 'banner_add_title' . $nameBanner );
|
||||
$banner_add_text = carbon_get_post_meta( get_the_ID(), 'banner_add_text' . $nameBanner );
|
||||
$banner_add_text_min = carbon_get_post_meta( get_the_ID(), 'banner_add_text_min' . $nameBanner );
|
||||
echo "<div class='banner banner-add' style='background-image: url($banner_add_img)'>
|
||||
function getBanner($suffix, $post_id) {
|
||||
$img = carbon_get_post_meta($post_id, 'banner_add_img' . $suffix);
|
||||
$img_url = $img ? wp_get_attachment_url($img) : '';
|
||||
if (!$img_url) return;
|
||||
$title = carbon_get_post_meta($post_id, 'banner_add_title' . $suffix);
|
||||
$text = carbon_get_post_meta($post_id, 'banner_add_text' . $suffix);
|
||||
$note = carbon_get_post_meta($post_id, 'banner_add_text_min' . $suffix);
|
||||
?>
|
||||
<div class='banner banner-add' style='background-image: url(<?php echo esc_url($img_url); ?>)'>
|
||||
<div class='banner__left-part'>
|
||||
<div class='banner_title'>$banner_add_title</div>
|
||||
<p class='banner_text'>$banner_add_text</p>
|
||||
<button class='banner_btn btn-write-camp'>ЗАБРОНИРОВАТЬ</button>
|
||||
<p class='banner_text-min'>$banner_add_text_min</p>
|
||||
<div class='banner_title'><?php echo esc_html($title); ?></div>
|
||||
<p class='banner_text'><?php echo esc_html($text); ?></p>
|
||||
<button class='banner_btn btn-write-camp'><?php esc_html_e('ЗАБРОНИРОВАТЬ'); ?></button>
|
||||
<p class='banner_text-min'><?php echo esc_html($note); ?></p>
|
||||
</div>
|
||||
<div class='banner__right-part'></div>
|
||||
</div>";
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<main class="camp container_camp">
|
||||
@ -243,9 +246,11 @@ $metrics = [
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="programs">
|
||||
<h2 class="camp_title">Летние программы</h2>
|
||||
<div class="scroll-icon-wrapper" style="mix-blend-mode: multiply;"> <svg role="presentation" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 300" height="42" width="42"> <rect class="tooltip-horizontal-scroll-icon_card" x="480" width="200" height="200" rx="5" fill="rgba(190,190,190,0.3)"></rect> <rect class="tooltip-horizontal-scroll-icon_card" y="0" width="200" height="200" rx="5" fill="rgba(190,190,190,0.3)"></rect> <rect class="tooltip-horizontal-scroll-icon_card" x="240" width="200" height="200" rx="5" fill="rgba(190,190,190,0.3)"></rect> <path class="tooltip-horizontal-scroll-icon_hand" d="M78.9579 285.7C78.9579 285.7 37.8579 212.5 20.5579 180.8C-2.44209 138.6 -6.2422 120.8 9.6579 112C19.5579 106.5 33.2579 108.8 41.6579 123.4L61.2579 154.6V32.3C61.2579 32.3 60.0579 0 83.0579 0C107.558 0 105.458 32.3 105.458 32.3V91.7C105.458 91.7 118.358 82.4 133.458 86.6C141.158 88.7 150.158 92.4 154.958 104.6C154.958 104.6 185.658 89.7 200.958 121.4C200.958 121.4 236.358 114.4 236.358 151.1C236.358 187.8 192.158 285.7 192.158 285.7H78.9579Z" fill="rgba(190,190,190,1)"></path> <style>.tooltip-horizontal-scroll-icon_hand{animation:tooltip-horizontal-scroll-icon_anim-scroll-hand 2s infinite}.tooltip-horizontal-scroll-icon_card{animation:tooltip-horizontal-scroll-icon_anim-scroll-card 2s infinite}@keyframes tooltip-horizontal-scroll-icon_anim-scroll-hand{0%{transform:translateX(80px) scale(1);opacity:0}10%{transform:translateX(80px) scale(1);opacity:1}20%,60%{transform:translateX(175px) scale(.6);opacity:1}80%{transform:translateX(5px) scale(.6);opacity:1}to{transform:translateX(5px) scale(.6);opacity:0}}@keyframes tooltip-horizontal-scroll-icon_anim-scroll-card{0%,60%{transform:translateX(0)}80%,to{transform:translateX(-240px)}}</style> </svg> </div>
|
||||
<section class="programs" itemscope itemtype="https://schema.org/ItemList">
|
||||
<h2 class="camp_title" itemprop="name">Летние программы</h2>
|
||||
<div class="scroll-icon-wrapper" style="mix-blend-mode: multiply;">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/assets/images/icons/scroll-hand.svg" alt="" width="42" height="42" loading="lazy">
|
||||
</div>
|
||||
<div class="programs-wrapper">
|
||||
<?php
|
||||
$programs = carbon_get_post_meta($post_id, 'programs' );
|
||||
@ -272,9 +277,9 @@ $metrics = [
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php getBanner(''); ?>
|
||||
<?php getBanner('', $post_id); ?>
|
||||
|
||||
<section class="bring-child">
|
||||
<section class="bring-child" itemscope itemtype="https://schema.org/Product">
|
||||
<?php
|
||||
$price_half_day = carbon_get_post_meta($post_id, 'price_half_day' );
|
||||
$price_full_day = carbon_get_post_meta($post_id, 'price_full_day' );
|
||||
@ -291,7 +296,7 @@ $metrics = [
|
||||
</div>
|
||||
<div class="part-day__price">
|
||||
<div class="block-row">
|
||||
<div class="part-day__price_price"><?php echo number_format($price_half_day, 0, ',', ' '); ?></div>
|
||||
<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>
|
||||
<div class="part-day__price_time">с 8:30 до 13:30</div>
|
||||
</div>
|
||||
<p class="part-day__price_text">за 5 дней пребывания</p>
|
||||
@ -325,8 +330,7 @@ $metrics = [
|
||||
</div>
|
||||
<div class="part-day__price">
|
||||
<div class="block-row">
|
||||
<div class="part-day__price_price">
|
||||
<?php echo number_format($price_full_day, 0, ',', ' '); ?></div>
|
||||
<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>
|
||||
<p class="part-day__price_text">за 5 дней пребывания</p>
|
||||
@ -540,7 +544,7 @@ $metrics = [
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php getBanner("2"); ?>
|
||||
<?php getBanner("2", $post_id); ?>
|
||||
|
||||
<section class="camp-faq">
|
||||
<h2 class="camp_title">Часто задаваемые вопросы</h2>
|
||||
@ -677,25 +681,14 @@ $metrics = [
|
||||
<div class="modal-mentors__directions"></div>
|
||||
<div class="modal-mentors__about">
|
||||
<div class="about-item">
|
||||
<svg width="60" height="58" viewBox="0 0 60 58" fill="none">
|
||||
<path
|
||||
d="M51.7003 32.1748C51.0003 31.8748 50.3003 31.8748 49.6003 32.2748L30.4003 45.4748L22.5003 40.1748C21.9003 39.7748 21.0003 39.7748 20.4003 40.0748C19.7003 40.4748 19.4003 41.1748 19.4003 41.9748C19.7003 44.6748 17.0003 46.0748 16.9003 46.0748C16.3003 46.3748 15.8003 47.0748 15.8003 47.7748C15.8003 48.4748 16.1003 49.1748 16.8003 49.5748L29.8003 57.5748C30.1003 57.7748 30.5003 57.8748 30.8003 57.8748C31.2003 57.8748 31.5003 57.7748 31.8003 57.5748L51.8003 45.5748C52.4003 45.1748 52.8003 44.5748 52.8003 43.8748V33.9748C52.8003 33.2748 52.4003 32.5748 51.7003 32.1748Z"
|
||||
fill="#3BB273" />
|
||||
<path
|
||||
d="M59.0002 20.375L32.0002 0.375C31.3002 -0.125 30.4002 -0.125 29.7002 0.375L1.10019 19.675C0.500195 20.075 0.200195 20.675 0.200195 21.375C0.200195 22.075 0.500195 22.675 1.10019 23.075L10.3002 29.075C10.2002 29.975 10.0002 30.975 9.90019 32.075C6.50019 32.575 3.90019 35.475 3.90019 38.975C3.90019 42.075 5.9002 44.675 8.7002 45.575C7.9002 48.675 4.60019 48.975 3.90019 48.975C2.80019 48.975 1.90019 49.875 1.90019 50.975C1.90019 52.075 2.80019 52.975 3.90019 52.975C7.20019 52.975 11.9002 50.975 12.7002 45.675C15.7002 44.875 17.9002 42.175 17.9002 38.975C17.9002 36.175 16.3002 33.775 13.9002 32.675C14.0002 32.075 14.1002 31.475 14.1002 30.975C14.4002 30.975 14.7002 30.875 15.0002 30.675L26.9002 22.475L29.3002 24.075L18.7002 31.375C18.2002 31.775 17.8002 32.375 17.8002 32.975C17.8002 33.575 18.1002 34.275 18.6002 34.575L28.9002 42.075C29.3002 42.375 29.7002 42.475 30.1002 42.475C30.5002 42.475 30.9002 42.375 31.2002 42.175L58.9002 23.675C59.4002 23.275 59.8002 22.675 59.8002 22.075C59.8002 21.375 59.5002 20.775 59.0002 20.375ZM10.8002 41.975C9.10019 41.975 7.80019 40.675 7.80019 38.975C7.80019 37.275 9.10019 35.975 10.8002 35.975C12.5002 35.975 13.8002 37.275 13.8002 38.975C13.8002 40.675 12.5002 41.975 10.8002 41.975Z"
|
||||
fill="#3BB273" />
|
||||
</svg>
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/assets/images/icons/icon-education.svg" alt="" width="60" height="58" loading="lazy">
|
||||
<div class="mentors__about-col">
|
||||
<p class="mentors__about-col_title">Образование:</p>
|
||||
<div class="mentors__about-col_text"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="about-item">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="59" height="58" viewBox="0 0 59 58" fill="none">
|
||||
<path
|
||||
d="M54.2012 16.1C53.5012 13.9 52.2012 11.9 50.6012 10.4C49.4012 4.4 44.1012 0 38.0012 0H21.5012C15.3012 0 10.1012 4.4 8.90117 10.3C7.20117 11.8 6.00117 13.8 5.30117 16C2.50117 18.5 0.701172 22 0.701172 25.9V45.1C0.701172 52.2 6.50117 58 13.6012 58H45.8012C52.9012 58 58.7012 52.2 58.7012 45.1V25.9C58.7012 22 56.9012 18.5 54.2012 16.1ZM21.5012 4H37.9012C40.7012 4 43.2012 5.3 44.8012 7.4C43.8012 7.2 42.8012 7 41.8012 7H17.5012C16.5012 7 15.5012 7.1 14.5012 7.4C16.2012 5.3 18.7012 4 21.5012 4ZM43.6012 27.4L27.1012 43.9C26.7012 44.3 26.2012 44.5 25.7012 44.5C25.2012 44.5 24.7012 44.3 24.3012 43.9L15.8012 35.4C15.0012 34.6 15.0012 33.4 15.8012 32.6C16.6012 31.8 17.8012 31.8 18.6012 32.6L25.7012 39.7L40.8012 24.6C41.6012 23.8 42.8012 23.8 43.6012 24.6C44.4012 25.4 44.4012 26.6 43.6012 27.4ZM13.6012 13C13.0012 13 12.4012 13.1 11.9012 13.1C12.1012 13 12.2012 12.9 12.3012 12.7C13.8012 11.6 15.6012 11 17.6012 11H41.9012C44.1012 11 46.1012 11.8 47.7012 13.1C47.1012 13 46.5012 13 45.9012 13H13.6012Z"
|
||||
fill="#3BB273" />
|
||||
</svg>
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/assets/images/icons/icon-experience.svg" alt="" width="59" height="58" loading="lazy">
|
||||
<div class="mentors__about-col">
|
||||
<p class="mentors__about-col_title">Опыт работы в сфере образования:</p>
|
||||
<div class="mentors__experience-col_text"></div>
|
||||
@ -703,18 +696,7 @@ $metrics = [
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-additional__education">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="58" height="60" viewBox="0 0 58 60" fill="none">
|
||||
<path
|
||||
d="M17.7452 34.2306C20.416 32.4987 22.1345 29.9996 22.8983 27.1153C23.0892 26.1532 23.2802 25.1934 23.2802 24.0388C23.4711 17.6934 18.1271 12.5 11.6401 12.5C5.15074 12.5 0 17.8831 0 24.2308C0 28.2694 2.09796 32.1154 5.5349 34.2299C9.1579 36.729 14.1199 36.729 17.7453 34.2299L17.7452 34.2306Z"
|
||||
fill="#3BB273" />
|
||||
<path d="M44.8413 2.30664V12.8855H55.3358L44.8413 2.30664Z" fill="#3BB273" />
|
||||
<path
|
||||
d="M16.981 38.2696C16.5991 38.462 16.2172 38.6544 15.6444 38.6544H15.4534C14.8806 38.8469 14.4987 38.8469 13.9259 39.0393H13.1621H12.0164H11.4436H10.8708H9.72511C9.53417 39.0393 9.34322 39.0393 8.96131 38.8469C8.38848 38.8469 8.00661 38.6544 7.43376 38.462H7.24281C6.86092 38.2696 6.47901 38.2696 6.09717 38.0771V51.5372L10.2955 47.3062C10.4864 47.1138 10.4864 47.1138 10.6774 46.9213H11.0592H11.2502H11.6321H11.823C12.014 46.9213 12.2049 47.1138 12.2049 47.3062L16.4032 51.5372L16.4081 38.2691L16.981 38.2696Z"
|
||||
fill="#3BB273" />
|
||||
<path
|
||||
d="M41.5984 14.6152V0H15.0745C14.1198 0 13.1675 0.769761 13.1675 1.92188V9.42181C13.5494 9.42181 14.1222 9.61424 14.5041 9.61424C14.886 9.61424 15.4588 9.80667 15.8407 9.99911C16.0316 9.99911 16.2226 10.1915 16.2226 10.1915C16.7954 10.1915 17.1772 10.1915 17.3682 10.384C17.5591 10.384 17.7501 10.5764 17.941 10.5764C18.132 10.7688 18.5139 10.7688 18.7048 10.9613C18.8958 10.9613 19.0867 11.1537 19.2777 11.3461C19.4686 11.5386 19.6596 11.5386 20.0415 11.731C20.2324 11.9234 20.4234 11.9234 20.6143 12.1159C20.8052 12.3083 20.9962 12.5007 21.1871 12.5007C21.3781 12.6932 21.569 12.6932 21.569 12.8856C21.76 13.0781 21.9509 13.2705 22.1418 13.4629C22.3328 13.6553 22.5237 13.8478 22.5237 13.8478C22.7147 14.0402 22.9056 14.2326 23.0966 14.4251C23.2875 14.6175 23.2875 14.8099 23.4785 15.0024C23.6694 15.1948 23.8603 15.3872 23.8603 15.5797C24.0513 15.7721 24.0513 15.9645 24.2422 16.157C24.4332 16.3494 24.4332 16.5418 24.6241 16.7343C24.8151 16.9267 24.8151 17.1191 25.006 17.3116C25.197 17.504 25.197 17.6964 25.3879 18.0813C25.3879 18.2738 25.5789 18.4662 25.5789 18.6586C25.7698 18.851 25.7698 19.2359 25.7698 19.4284C25.7698 19.6208 25.9607 19.8132 25.9607 20.0057C25.9607 20.1981 26.1517 20.583 26.1517 20.7754C26.1517 20.9679 26.3426 21.1603 26.3426 21.3527C26.3426 21.7376 26.5336 21.93 26.5336 22.3149V22.8922V24.4316C26.5336 25.0089 26.5336 25.7786 26.3426 26.3535C26.3426 26.5459 26.3426 26.7384 26.1517 26.9308C26.1517 27.3157 25.9607 27.7006 25.9607 28.0854C25.9607 28.2778 25.7698 28.4702 25.7698 28.8551C25.5788 29.24 25.5788 29.6249 25.3879 29.8173C25.3879 30.0097 25.197 30.3946 25.006 30.587C24.8151 30.9719 24.8151 31.1643 24.6241 31.5492C24.4332 31.7416 24.4332 31.934 24.2422 32.3189C24.0513 32.7038 23.8603 32.8962 23.6694 33.0887C23.4785 33.2811 23.2875 33.4736 23.0966 33.666C22.9056 33.8584 22.7147 34.2433 22.5237 34.4357C22.3328 34.6282 22.1419 34.8206 21.9509 35.013C21.7526 35.1931 21.3707 35.3856 21.1798 35.768C20.9888 35.9604 20.7979 36.1528 20.416 36.3453C20.225 36.5377 20.225 36.5377 20.0341 36.7301V55.7689C20.0341 56.3462 19.6522 56.9235 19.0794 57.3084C18.8885 57.3084 18.6975 57.5008 18.5066 57.5008H18.3156H17.9337H17.7428C17.5518 57.5008 17.3609 57.3084 17.3609 57.1159L13.1626 52.8849V58.0781C13.1626 59.0403 13.9264 60 15.0696 60H55.7134C56.6681 60 57.6204 59.2302 57.6204 58.0781L57.6253 16.1549H43.1231C42.3593 16.1549 41.5984 15.3849 41.5984 14.6152Z"
|
||||
fill="#3BB273" />
|
||||
</svg>
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/assets/images/icons/icon-certificate.svg" alt="" width="58" height="60" loading="lazy">
|
||||
<div class="mentors__about-col">
|
||||
<p class="mentors__about-col_title">Дополнительное образование:</p>
|
||||
<div class="modal-additional__education_list">
|
||||
@ -748,6 +730,7 @@ $metrics = [
|
||||
var script = document.createElement("script");
|
||||
script.src = "https://api-maps.yandex.ru/2.1/?lang=ru_RU";
|
||||
script.onload = function() {
|
||||
script.onerror = function() { console.warn("Yandex Maps API failed to load"); };
|
||||
ymaps.ready(function() {
|
||||
var coords = <?php echo $contact_location ? '[' . esc_js($contact_location) . ']' : '[55.76, 37.64]'; ?>;
|
||||
var map = new ymaps.Map("ya-map", {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user