' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
$og_title = wp_get_document_title();
$og_description = get_post_meta($post_id, '_yoast_wpseo_metadesc', true) ?: get_bloginfo('description');
$og_url = get_permalink($post_id);
$og_type = 'website';
if ($thumb_id) {
$img_data = wp_get_attachment_image_src($thumb_id, 'full');
if ($img_data) {
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
}
$alt = get_post_meta($thumb_id, '_wp_attachment_image_alt', true);
if ($alt) {
echo ' ' . "\n";
}
$img_large = wp_get_attachment_image_src($thumb_id, 'large');
if ($img_large) {
echo ' ' . "\n";
}
}
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
$og_site_name = get_option('branch_og_site_name') ?: sprintf('Частная школа %s %s', get_option('branch_name', 'Декарт'), get_option('branch_city_prep', 'в Щёлково'));
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
if ($thumb_id && $img_data) {
echo ' ' . "\n";
}
}, 1);
get_header();
$post_id = get_the_ID();
$theme_uri = get_template_directory_uri();
$branch_city = get_option('branch_city') ?: carbon_get_theme_option('site_city') ?: 'Щёлково';
$branch_city_prep = get_option('branch_city_prep') ?: 'в Щёлково';
$branch_phone = get_option('branch_phone') ?: carbon_get_theme_option('site_phone') ?: '';
$branch_email = get_option('branch_email') ?: carbon_get_theme_option('site_mail') ?: '';
$branch_name = get_option('branch_name') ?: carbon_get_theme_option('site_name') ?: 'Декарт';
$branch_addr = get_option('branch_address') ?: carbon_get_theme_option('site_address') ?: '';
$branch_coords = get_option('branch_coords') ?: carbon_get_theme_option('site_location') ?: '';
$branch_logo = get_option('branch_logo') ?: '';
$branch_region = get_option('branch_region') ?: 'Московская область';
$branch_price_range = get_option('branch_price_range', '');
$branch_social = get_option('branch_social') ?: carbon_get_theme_option('social_media') ?: array();
$branch_messengers = get_option('branch_messengers', array());
$hero_subtitle = carbon_get_post_meta($post_id, 'reviews_hero_subtitle') ?: 'Родители доверяют нам самое главное — вот что они говорят о нас';
$metric_1_num = carbon_get_post_meta($post_id, 'reviews_hero_metric_1_number');
$metric_1_lbl = carbon_get_post_meta($post_id, 'reviews_hero_metric_1_label');
$metric_2_num = carbon_get_post_meta($post_id, 'reviews_hero_metric_2_number');
$metric_2_lbl = carbon_get_post_meta($post_id, 'reviews_hero_metric_2_label');
$metric_3_num = carbon_get_post_meta($post_id, 'reviews_hero_metric_3_number');
$metric_3_lbl = carbon_get_post_meta($post_id, 'reviews_hero_metric_3_label');
$metric_4_num = carbon_get_post_meta($post_id, 'reviews_hero_metric_4_number');
$metric_4_lbl = carbon_get_post_meta($post_id, 'reviews_hero_metric_4_label');
$hero_badges = carbon_get_post_meta($post_id, 'reviews_hero_badges');
$results_title = carbon_get_post_meta($post_id, 'reviews_results_title') ?: 'Декарт в цифрах';
$results_items = carbon_get_post_meta($post_id, 'reviews_results');
$faq_items = carbon_get_post_meta($post_id, 'reviews_faq');
$branch_button_script = get_option('branch_button_script', '');
// Парсинг Bitrix24 параметров для динамической загрузки (иначе не инициализируется в скрытой модалке)
$_b24_form = '';
$_b24_url = '';
if (preg_match('/data-b24-form="([^"]+)"/', $branch_button_script, $_m)) {
$_b24_form = $_m[1];
}
if (preg_match("/\\(window,document,'([^']+)'\\)/", $branch_button_script, $_m)) {
$_b24_url = $_m[1];
}
$myreviews_widget = get_option('branch_myreviews_widget', '');
$cross_title = carbon_get_post_meta($post_id, 'reviews_cross_title') ?: 'Наши программы';
$cross_links = carbon_get_post_meta($post_id, 'reviews_cross_links');
$video_title = carbon_get_post_meta($post_id, 'reviews_video_title') ?: 'Видеоотзывы родителей';
$video_items = carbon_get_post_meta($post_id, 'reviews_video');
if ($branch_logo && is_array($branch_logo)) {
$jsonld_img_url = $branch_logo['url'] ?? '';
} elseif ($branch_logo) {
$jsonld_img_url = wp_get_attachment_url($branch_logo);
} else {
$jsonld_img_url = '';
}
if (! $jsonld_img_url) {
$logo_id = get_theme_mod('custom_logo');
$jsonld_img_url = $logo_id ? wp_get_attachment_url($logo_id) : '';
}
$school_image_url = '';
$front_page_id = (int) get_option('page_on_front');
if ($front_page_id && has_post_thumbnail($front_page_id)) {
$img_data = wp_get_attachment_image_src(get_post_thumbnail_id($front_page_id), 'full');
if ($img_data && $img_data[1] >= 696) {
$school_image_url = $img_data[0];
}
}
$jsonld_social = array();
if (is_array($branch_social)) {
foreach ($branch_social as $s) {
if (! empty($s['url'])) {
$jsonld_social[] = $s['url'];
}
if (! empty($s['social_media_link'])) {
$jsonld_social[] = $s['social_media_link'];
}
}
}
if (is_array($branch_messengers)) {
foreach ($branch_messengers as $m) {
if (! empty($m['url'])) {
$jsonld_social[] = $m['url'];
}
}
}
$jsonld_social = array_values(array_unique($jsonld_social));
?>
Отзывы о частной школе «Декарт»
$metric_1_num, 'lbl' => $metric_1_lbl );
}
if ($metric_2_num && $metric_2_lbl) {
$hero_metrics[] = array( 'num' => $metric_2_num, 'lbl' => $metric_2_lbl );
}
if ($metric_3_num && $metric_3_lbl) {
$hero_metrics[] = array( 'num' => $metric_3_num, 'lbl' => $metric_3_lbl );
}
if ($metric_4_num && $metric_4_lbl) {
$hero_metrics[] = array( 'num' => $metric_4_num, 'lbl' => $metric_4_lbl );
}
if (! empty($hero_metrics)) : ?>
★★★★★
4.9 из 5 на основе отзывов на внешних площадках
Записаться на экскурсию →
Или позвоните:
'reviews-hero__photo',
'fetchpriority' => 'high',
'loading' => 'eager',
));
?>
$badge) :
$bi = $i + 1; // 1-indexed for CSS class
if ($bi > 4) {
break; // макс 4
}
$icon = $badge['badge_icon'] ?? '';
$text = $badge['badge_text'] ?? '';
if (empty($text)) {
continue;
}
?>
'Яндекс Карты', 'url' => $ext_yandex );
}
if ($ext_google) {
$ext_platforms[] = array( 'name' => 'Google Карты', 'url' => $ext_google );
}
if ($ext_2gis) {
$ext_platforms[] = array( 'name' => '2ГИС', 'url' => $ext_2gis );
}
if ($ext_otzovik) {
$ext_platforms[] = array( 'name' => 'Отзовик', 'url' => $ext_otzovik );
}
if ($ext_other_name && $ext_other_url) {
$ext_platforms[] = array( 'name' => $ext_other_name, 'url' => $ext_other_url );
}
?>
Мы дорожим доверием родителей, поэтому каждый отзыв на этой странице проходит проверку. Администратор связывается с автором, подтверждает, что ребёнок действительно учится в школе Декарт, и только после этого публикует отзыв. Мы публикуем как положительные, так и критические мнения — это помогает нам становиться лучше. Если у вас есть замечания по работе школы, напишите нам — администрация обязательно ответит. Мы открыты к диалогу и ценим обратную связь.
Отзывы родителей о частной школе
Все отзывы проходят проверку — мы связываемся с родителями и убеждаемся в достоверности каждого отзыва. Здесь собраны настоящие истории семей, чьи дети учатся в частной школе «Декарт» в Щёлково. Читайте, знакомьтесь и присоединяйтесь!
12) : ?>
Показать ещё
Отзывы появятся скоро. Будьте первым!
Почему родители выбирают Декарт
:
Хотите так же? Запишитесь на день открытых дверей
Записаться →
Посмотрите, как проходят занятия в школе Декарт
'
. '';
}
if (! $embed_html) {
$maybe_embed = wp_oembed_get($video_url, array( 'width' => 560, 'height' => 315 ));
if ($maybe_embed) {
$embed_html = $maybe_embed;
}
}
?>
Остались вопросы? Позвоните:
Или прочитайте ответы на частые вопросы ниже
Частые вопросы о поступлении в школу Декарт
'
. '
'
. '
' . esc_html($q) . ' '
. '
'
. ''
. ''
. ' '
. ' '
. ' '
. ' '
. ' '
. '
'
. '
'
. '
' . wp_kses_post(wpautop($a)) . '
'
. '
'
. '
';
$faq_idx++;
if ($count % 2 === 0) {
$col1 .= $accordion;
} else {
$col2 .= $accordion;
}
$count++;
endforeach;
?>
Убедились, что школа Декарт — это то, что нужно вашему ребёнку? Не откладывайте знакомство. Запишитесь на бесплатную экскурсию без всяких обязательств — вы ничего не теряете. Вы увидите классы, пообщаетесь с педагогами, почувствуете атмосферу школы. Экскурсия длится 30–40 минут, можно прийти всей семьёй. Мы перезвоним в течение 15 минут в рабочее время, чтобы согласовать удобное время. Приходите и убедитесь сами, почему частная школа Декарт в Щёлково — правильный выбор для вашего ребёнка.
Хотите увидеть школу своими глазами?
Приходите на экскурсию — покажем классы, расскажем о программах и ответим на все вопросы
📚
Набор в 1 класс на учебный год открыт — осталось мест
📅
Ближайший день открытых дверей:
Записаться на экскурсию
'reviews',
'post_status' => 'publish',
'posts_per_page' => -1,
'orderby' => 'date',
'order' => 'DESC',
));
if ($reviews_query->have_posts()) {
foreach ($reviews_query->posts as $review_post) {
$text = carbon_get_post_meta($review_post->ID, 'review_text');
$stars = (int) carbon_get_post_meta($review_post->ID, 'review_star');
if (! $text) {
continue;
}
if ($stars > 0) {
$agg_total_stars += $stars;
$agg_review_cnt++;
}
$ld_review = array(
'@type' => 'Review',
'reviewBody' => wp_strip_all_tags($text),
'author' => array(
'@type' => 'Person',
'name' => get_the_title($review_post->ID) ?: 'Анонимно',
),
'itemReviewed' => array(
'@type' => 'School',
'@id' => home_url('/') . '#organization',
),
);
if ($stars > 0) {
$ld_review['reviewRating'] = array(
'@type' => 'Rating',
'ratingValue' => $stars,
'bestRating' => 5,
'worstRating' => 1,
);
}
// datePublished: сначала ищем CF review_date, иначе post_date
$review_date_cf = carbon_get_post_meta($review_post->ID, 'review_date');
if (! empty($review_date_cf)) {
if (preg_match('/^(\d{2})\.(\d{2})\.(\d{4})$/', $review_date_cf, $m)) {
$review_date_cf = $m[3] . '-' . $m[2] . '-' . $m[1];
}
$ld_review['datePublished'] = $review_date_cf;
} else {
$ld_review['datePublished'] = get_the_date('Y-m-d', $review_post->ID);
}
$ld_reviews[] = $ld_review;
}
}
wp_reset_postdata();
$agg_rating = null;
if ($agg_review_cnt > 0) {
$agg_rating = array(
'@type' => 'AggregateRating',
'itemReviewed' => array( '@id' => home_url('/') . '#organization' ),
'ratingValue' => round($agg_total_stars / $agg_review_cnt, 1),
'ratingCount' => $agg_review_cnt,
'bestRating' => 5,
'worstRating' => 1,
);
}
$ld_faq = array();
if (! empty($faq_items)) {
$faq_main_entity = array();
foreach ($faq_items as $item) {
$q_name = ! empty($item['question']) ? wp_strip_all_tags($item['question']) : '';
$q_ans = ! empty($item['answer']) ? wp_strip_all_tags($item['answer']) : '';
if ($q_name && $q_ans) {
$faq_main_entity[] = array(
'@type' => 'Question',
'name' => $q_name,
'acceptedAnswer' => array(
'@type' => 'Answer',
'text' => $q_ans,
),
);
}
}
if (! empty($faq_main_entity)) {
$ld_faq[] = array(
'@type' => 'FAQPage',
'mainEntity' => $faq_main_entity,
);
}
}
$org_address = array(
'@type' => 'PostalAddress',
'streetAddress' => $branch_addr,
'addressLocality' => $branch_city,
'addressRegion' => $branch_region,
'postalCode' => get_option('branch_postal_code', '') ?: carbon_get_theme_option('schema_postal_code') ?: '',
'addressCountry' => 'RU',
);
$schema_description = carbon_get_theme_option('schema_description') ?: get_option('branch_schema_description', '');
$schema_founded = carbon_get_theme_option('schema_founded') ?: get_option('branch_founded', '');
$schema_map_url = carbon_get_theme_option('schema_map_url');
$schema_area_raw = carbon_get_theme_option('schema_area_served') ?: get_option('branch_area_served', '');
$hours_cf = carbon_get_theme_option('schema_hours');
$hours_spec = array();
if (! empty($hours_cf) && is_array($hours_cf)) {
foreach ($hours_cf as $entry) {
$day = isset($entry['day_of_week']) ? trim($entry['day_of_week']) : '';
if (empty($day)) {
continue;
}
$is_off = ! empty($entry['day_off']);
if ($is_off) {
$hours_spec[] = array(
'@type' => 'OpeningHoursSpecification',
'dayOfWeek' => $day,
'opens' => '00:00',
'closes' => '00:00',
);
} else {
$from = isset($entry['opens']) ? trim($entry['opens']) : '';
$to = isset($entry['closes']) ? trim($entry['closes']) : '';
if ($from && $to) {
$hours_spec[] = array(
'@type' => 'OpeningHoursSpecification',
'dayOfWeek' => $day,
'opens' => $from,
'closes' => $to,
);
}
}
}
} else {
$hours_raw = carbon_get_post_meta($post_id, 'reviews_intro_hours');
if (! empty($hours_raw) && is_string($hours_raw)) {
$lines = explode("\n", $hours_raw);
foreach ($lines as $line) {
$line = trim($line);
if (empty($line)) {
continue;
}
$parts = explode('|', $line);
$day = isset($parts[0]) ? trim($parts[0]) : '';
if (empty($day)) {
continue;
}
if (isset($parts[2]) && 'closed' === strtolower(trim($parts[2]))) {
$hours_spec[] = array(
'@type' => 'OpeningHoursSpecification',
'dayOfWeek' => $day,
'opens' => '00:00',
'closes' => '00:00',
);
continue;
}
$from = isset($parts[1]) ? trim($parts[1]) : '';
$to = isset($parts[2]) ? trim($parts[2]) : '';
if ($day && $from && $to) {
$hours_spec[] = array(
'@type' => 'OpeningHoursSpecification',
'dayOfWeek' => $day,
'opens' => $from,
'closes' => $to,
);
}
}
}
}
$area_served = array();
$area_served[] = array( '@type' => 'City', 'name' => $branch_city );
if (! empty($schema_area_raw) && is_string($schema_area_raw)) {
$cities = array_map('trim', explode(',', $schema_area_raw));
foreach ($cities as $c) {
if ($c && $c !== $branch_city) {
$area_served[] = array( '@type' => 'City', 'name' => $c );
}
}
} else {
}
if (! empty($schema_description) && is_string($schema_description)) {
$org_description = wp_strip_all_tags(trim($schema_description));
} else {
$org_description = 'Частная школа в ' . $branch_city . ' с углублённым изучением английского языка. Обучение с 1 по 11 класс, подготовка к ЕГЭ и ОГЭ, индивидуальный подход.';
}
$organization = array(
'@type' => 'School',
'@id' => home_url('/') . '#organization',
'name' => $branch_name,
'description' => $org_description,
'url' => home_url('/'),
'address' => $org_address,
'areaServed' => $area_served,
);
if (! empty($hours_spec)) {
$organization['openingHoursSpecification'] = $hours_spec;
}
if (! empty($schema_map_url) && is_string($schema_map_url)) {
$organization['hasMap'] = esc_url(trim($schema_map_url));
}
if (! empty($schema_founded) && is_string($schema_founded)) {
$organization['foundingDate'] = trim($schema_founded);
}
if (! empty($branch_coords) && false !== strpos($branch_coords, ',')) {
$coords_parts = explode(',', $branch_coords);
if (count($coords_parts) >= 2) {
$lat = floatval(trim($coords_parts[0]));
$lng = floatval(trim($coords_parts[1]));
if ($lat !== 0.0 || $lng !== 0.0) {
$organization['geo'] = array(
'@type' => 'GeoCoordinates',
'latitude' => $lat,
'longitude' => $lng,
);
}
}
}
if ($branch_phone) {
$organization['telephone'] = $branch_phone;
}
if ($jsonld_img_url) {
$organization['logo'] = $jsonld_img_url;
}
if ($school_image_url) {
$organization['image'] = $school_image_url;
} elseif ($jsonld_img_url) {
$organization['image'] = $jsonld_img_url;
}
if (! empty($jsonld_social)) {
$organization['sameAs'] = $jsonld_social;
}
if ($branch_phone || $branch_email) {
$cp = array( '@type' => 'ContactPoint' );
if ($branch_phone) {
$cp['telephone'] = $branch_phone;
}
if ($branch_email) {
$cp['email'] = $branch_email;
}
$cp['contactType'] = 'customer service';
$cp['areaServed'] = 'RU';
$cp['availableLanguage'] = array( 'Russian' );
$organization['contactPoint'] = array( $cp );
}
if ($agg_rating) {
unset($agg_rating['itemReviewed']);
$organization['aggregateRating'] = $agg_rating;
}
$ld_website = array(
'@type' => 'WebSite',
'@id' => home_url('/') . '#website',
'url' => home_url('/'),
'name' => $branch_name,
'inLanguage' => 'ru-RU',
'publisher' => array( '@id' => home_url('/') . '#organization' ),
'potentialAction' => array(
'@type' => 'SearchAction',
'target' => array(
'@type' => 'EntryPoint',
'urlTemplate' => home_url('/') . '?s={search_term_string}',
),
'query-input' => 'required name=search_term_string',
),
);
$ld_webpage = array(
'@type' => 'WebPage',
'@id' => get_permalink($post_id),
'url' => get_permalink($post_id),
'inLanguage' => 'ru-RU',
'name' => wp_get_document_title() ?: 'Отзывы — ' . $branch_name,
'isPartOf' => array( '@id' => home_url('/') . '#website' ),
'about' => array( '@id' => home_url('/') . '#organization' ),
'speakable' => array(
'@type' => 'SpeakableSpecification',
'cssSelector' => array( '.reviews-faq__title', '.reviews-trust__text', '.reviews-hero__subtitle' ),
),
);
$webpage_description = get_post_meta($post_id, '_yoast_wpseo_metadesc', true);
if (! $webpage_description) {
$webpage_description = sprintf(
'Реальные отзывы родителей и учеников о частной школе Декарт в %s. Истории поступлений, мнения о программах и педагогах.',
$branch_city
);
}
$ld_webpage['description'] = wp_strip_all_tags($webpage_description);
$page_thumb_id = get_post_thumbnail_id($post_id);
if ($page_thumb_id) {
$page_img = wp_get_attachment_image_url($page_thumb_id, 'full');
if ($page_img) {
$ld_webpage['image'] = esc_url($page_img);
}
}
$post_obj = get_post($post_id);
if ($post_obj) {
$ld_webpage['datePublished'] = get_the_date('c', $post_obj);
$ld_webpage['dateModified'] = get_the_modified_date('c', $post_obj);
}
$ld_breadcrumb = array(
'@type' => 'BreadcrumbList',
'@id' => get_permalink($post_id) . '#breadcrumb',
'itemListElement' => array(
array(
'@type' => 'ListItem',
'position' => 1,
'name' => 'Главная',
'item' => home_url('/'),
),
array(
'@type' => 'ListItem',
'position' => 2,
'name' => 'Отзывы',
'item' => get_permalink($post_id),
),
),
);
$ld_graph = array_merge(
array( $ld_website, $ld_webpage, $ld_breadcrumb, $organization ),
$ld_reviews,
$ld_faq
);
if (true) {
$ld_graph = array_filter($ld_graph);
$jsonld_data = array(
'@context' => 'https://schema.org',
'@graph' => $ld_graph,
);
echo '' . "\n";
}
?>