.hidden{display:none}'; }, 100);
get_header();
?>
carbon_get_post_meta( $post_id, 'hero_title_h1' ) ?: 'Детский лагерь Декарт.',
'span' => carbon_get_post_meta( $post_id, 'hero_title_span' ) ?: 'Яркое лето без забот!',
'btn_text' => carbon_get_post_meta( $post_id, 'hero_btn_primary' ) ?: 'Записаться на пробный день',
'image_id' => carbon_get_post_meta( $post_id, 'banner_img' ),
];
$metrics = [
[
'img_id' => carbon_get_post_meta( $post_id, 'hero_metric_1_img' ),
'number' => carbon_get_post_meta( $post_id, 'hero_metric_1_number' ) ?: '12',
'label' => carbon_get_post_meta( $post_id, 'hero_metric_1_label' ) ?: 'лет в городе',
'default_icon' => $theme_uri . '/assets/images/doodles/icon-home.png',
],
[
'img_id' => carbon_get_post_meta( $post_id, 'hero_metric_2_img' ),
'number' => carbon_get_post_meta( $post_id, 'hero_metric_2_number' ) ?: '2 500+',
'label' => carbon_get_post_meta( $post_id, 'hero_metric_2_label' ) ?: 'счастливых детей',
'default_icon' => $theme_uri . '/assets/images/doodles/icon-bulb.png',
],
[
'img_id' => carbon_get_post_meta( $post_id, 'hero_metric_3_img' ),
'number' => carbon_get_post_meta( $post_id, 'hero_metric_3_number' ) ?: '4.9 / 5',
'label' => carbon_get_post_meta( $post_id, 'hero_metric_3_label' ) ?: 'рейтинг от родителей',
'default_icon' => $theme_uri . '/assets/images/doodles/icon-award.png',
],
];
?>
'about-us__image',
'loading' => 'lazy',
'alt' => 'Фото детского лагеря Декарт'
] );
else :
echo '
';
endif;
?>
Лето, которое не хочется ставить на паузу
⭐ 2500+ мам доверили нам лето
Почему мамы выбирают "Декарт": дети бегут сюда сами
Никаких уговоров по утрам. Никаких «забери меня». Только горящие глаза и «а можно ещё?»
$item) {
$suggestions_title = $item['suggestions_title'];
$suggestions_text = $item['suggestions_text'];
$icon_file = $icons[$index % count($icons)];
?>
до 10 детей
каждая группа
Приводите ребёнка, когда вам удобно
₽
за 5 дней
с 8:30 до 13:30
утренняя смена
с 13:30 до 18:30
вечерняя смена
- 5 дней пребывания в клубе
- творческие занятия и мастер-классы 1 раз в день
- умные прогулки 1 раз в день
₽
за 5 дней
с 8:30 до 18:30
полный день
- 5 дней пребывания в клубе
- творческие занятия и мастер-классы 2 раза в день
- умные прогулки 2 раза в день
- тематические экскурсии каждую неделю
Наши наставники и ведущие мастер-классов
Что говорят о нас родители
'review_type',
'value' => 'camp',
'compare' => '='
)
);
$args = array(
'posts_per_page' => -1,
'post_type' => 'reviews',
'orderby' => 'date',
'order' => 'DESC',
'suppress_filters' => true,
'meta_query' => $key,
);
$the_query = new WP_Query($args);
if ($the_query->have_posts()) :
?>
Часто задаваемые вопросы
" . esc_html($questions_question) . "
" . wp_kses_post($questions_answer) . "
";
if ($count % 2 === 0) {
$HTMcol1 .= $accordion_item;
} else {
$HTMcol2 .= $accordion_item;
}
$count++;
}
}
echo "$HTMcol1
";
echo "$HTMcol2
";
?>
Опыт работы в сфере образования:
Дополнительное образование:
'Event' );
if ( ! empty( $item['programs_title'] ) ) {
$ev['name'] = wp_strip_all_tags( $item['programs_title'] );
}
if ( ! empty( $item['programs_text'] ) ) {
$ev['description'] = wp_strip_all_tags( $item['programs_text'] );
}
if ( ! empty( $item['programs_date'] ) ) {
$raw = wp_strip_all_tags( $item['programs_date'] );
if ( preg_match( '/\d{4}/', $raw, $y ) ) {
$ev['startDate'] = $y[0];
}
$ev['description'] = ( isset( $ev['description'] ) ? $ev['description'] . ' — ' : '' ) . $raw;
}
if ( ! empty( $item['programs_img'] ) ) {
$ev['image'] = esc_url( wp_get_attachment_url( $item['programs_img'] ) );
}
$_half_price = (int)carbon_get_post_meta($post_id, 'price_half_day');
if ( $_half_price > 0 ) {
$ev['offers'] = array(
'@type' => 'Offer',
'price' => $_half_price,
'priceCurrency' => 'RUB',
);
}
if ( $jsonld_img_url && empty( $ev['image'] ) ) {
$ev['image'] = esc_url( $jsonld_img_url );
}
$ld_events[] = $ev;
}
}
$ld_questions = carbon_get_post_meta( $post_id, 'questions' );
$ld_faq = array();
if ( is_array( $ld_questions ) ) {
$faq_main_entity = array();
foreach ( $ld_questions as $q ) {
$name = ! empty( $q['questions_question'] ) ? wp_strip_all_tags( $q['questions_question'] ) : '';
$answer = ! empty( $q['questions_answer'] ) ? wp_strip_all_tags( $q['questions_answer'] ) : '';
if ( $name && $answer ) {
$faq_main_entity[] = array(
'@type' => 'Question',
'name' => $name,
'acceptedAnswer' => array(
'@type' => 'Answer',
'text' => $answer,
),
);
}
}
if ( ! empty( $faq_main_entity ) ) {
$ld_faq[] = array(
'@type' => 'FAQPage',
'mainEntity' => $faq_main_entity,
);
}
}
$agg_rating = null;
$agg_reviews = new WP_Query( array(
'post_type' => 'reviews',
'posts_per_page' => -1,
'fields' => 'ids',
'suppress_filters' => true,
'meta_query' => array( array(
'key' => 'review_type',
'value' => 'camp',
'compare' => '=',
) ),
) );
if ( $agg_reviews->have_posts() ) {
$total_stars = 0;
$review_cnt = 0;
foreach ( $agg_reviews->posts as $rid ) {
$star = (int) carbon_get_post_meta( $rid, 'review_star' );
if ( $star > 0 ) {
$total_stars += $star;
$review_cnt++;
}
}
if ( $review_cnt > 0 ) {
$agg_rating = array(
'@type' => 'AggregateRating',
'ratingValue' => round( $total_stars / $review_cnt, 1 ),
'reviewCount' => $review_cnt,
'bestRating' => 5,
'worstRating' => 1,
);
}
}
wp_reset_postdata();
$localbusiness = array(
'@type' => 'LocalBusiness',
'@id' => home_url('/') . '#localbusiness',
'name' => $jsonld_name,
'url' => get_permalink( $post_id ),
);
if ( $jsonld_phone ) $localbusiness['telephone'] = $jsonld_phone;
if ( $jsonld_mail ) $localbusiness['email'] = $jsonld_mail;
if ( $jsonld_img_url ) $localbusiness['image'] = $jsonld_img_url;
$localbusiness['address'] = array(
'@type' => 'PostalAddress',
'addressLocality' => $jsonld_city,
'streetAddress' => $jsonld_addr,
'addressCountry' => 'RU',
);
if ( ! empty( $jsonld_coord_arr[0] ) && ! empty( $jsonld_coord_arr[1] ) ) {
$localbusiness['geo'] = array(
'@type' => 'GeoCoordinates',
'latitude' => $jsonld_coord_arr[0],
'longitude' => $jsonld_coord_arr[1],
);
}
$localbusiness['areaServed'] = $city_clean . ', Московская область';
$localbusiness['openingHours'] = 'Mo-Fr 08:30-18:30';
$organization = array(
'@type' => 'Organization',
'@id' => home_url('/') . '#organization',
'name' => $jsonld_name,
'url' => home_url('/'),
);
if ( ! empty( $jsonld_social ) ) {
$organization['sameAs'] = $jsonld_social;
}
$ld_graph = array_merge( array( $localbusiness, $organization ), $ld_events, $ld_faq );
if ( $agg_rating ) $ld_graph[] = $agg_rating;
if ( ! empty( $ld_graph ) ) {
echo '' . "\n";
}
?>