2026-07-28 20:30:15 +00:00

114 lines
7.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* Answer-блок главной страницы (GEO / AI-цитируемость)
* Абстрактные SVG-элементы, лёгкая анимация
*
* @package Dekart
*/
if (! defined('ABSPATH')) {
exit;
}
$post_id = (int) get_the_ID();
$branch_city = get_option('branch_city') ?: carbon_get_theme_option('site_city', 'Щёлково');
$branch_city_prep = get_option('branch_city_prep') ?: 'в Щёлково';
$branch_area_served = get_option('branch_area_served') ?: 'Щёлково, Фрязино и Ивантеевки';
$title = carbon_get_post_meta($post_id, 'answer_block_title');
$subtitle = carbon_get_post_meta($post_id, 'answer_block_subtitle');
$content = carbon_get_post_meta($post_id, 'answer_block_text');
if (! $title) {
$title = 'Частная школа «Декарт» — качественное образование ' . $branch_city_prep;
}
if (! $subtitle) {
$subtitle = 'Небольшие классы, опытные педагоги и индивидуальный подход к каждому ученику';
}
if (! $content) {
$city_prep = esc_html($branch_city_prep);
$content = '<p>Частная школа «Декарт» ' . $city_prep . ' — это <strong>малокомплектные классы до 15 человек</strong>, где каждый ученик получает внимание и поддержку. Мы работаем по авторской программе в соответствии с ФГОС. <em>Английский язык</em> — с 1 класса. Учебные занятия проходят в первую половину дня (до 13:00), после обеда — продлёнка с досуговыми занятиями и помощью с домашними заданиями (до 19:00). Можно забрать ребёнка после уроков или оставить на продлёнку. В продлёнку входят обед, полдник, помощь с домашними заданиями и кружки. Принимаем детей из ' . esc_html($branch_area_served) . '. Лицензия Министерства образования Московской области. Опытные педагоги — средний стаж <em>от 10 лет</em>. Запишитесь на экскурсию, чтобы познакомиться с учителями, посмотреть классы и задать все вопросы лично.</p>';
}
?>
<section class="answer-block section-bg reveal" data-bg="answer-block" aria-labelledby="answer-block-title" role="region">
<div class="container">
<?php // ── Декоративные SVG-элементы ── ?>
<div class="answer-block__deco" aria-hidden="true">
<!-- Абстрактные точки (россыпь) -->
<svg class="answer-block__deco-item answer-block__deco-item--dots" width="180" height="120" viewBox="0 0 180 120" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="2.5" fill="currentColor" opacity="0.4"/>
<circle cx="100" cy="25" r="2" fill="currentColor" opacity="0.3"/>
<circle cx="120" cy="55" r="2" fill="currentColor" opacity="0.3"/>
<circle cx="50" cy="75" r="2" fill="currentColor" opacity="0.4"/>
<circle cx="170" cy="90" r="2" fill="currentColor" opacity="0.3"/>
<circle cx="80" cy="110" r="2" fill="currentColor" opacity="0.3"/>
</svg>
<!-- Волнистая линия — низ -->
<svg class="answer-block__deco-item answer-block__deco-item--wave" width="200" height="60" viewBox="0 0 200 60" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0 30 Q25 0 50 30 T100 30 T150 30 T200 30" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" opacity="0.3" fill="none"/>
<path d="M0 40 Q25 10 50 40 T100 40 T150 40 T200 40" stroke="currentColor" stroke-width="1" stroke-linecap="round" opacity="0.15" fill="none"/>
</svg>
</div>
<div class="section-header--centered">
<span class="bento-label">О школе</span>
<h2 id="answer-block-title" class="bento-h2"><?php echo esc_html($title); ?></h2>
<p class="bento-p"><?php echo esc_html($subtitle); ?></p>
</div>
<div class="answer-block__card">
<div class="answer-block__icon-wrap" aria-hidden="true">
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
</svg>
</div>
<div class="answer-block__text">
<?php echo wp_kses_post($content); ?>
</div>
</div>
<div class="answer-block__highlights">
<div class="answer-block__highlight">
<div class="answer-block__highlight-icon" aria-hidden="true">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>
</div>
<div>
<span class="answer-block__highlight-label">Лицензия</span>
<span class="answer-block__highlight-value">Министерства образования Московской области</span>
</div>
</div>
<div class="answer-block__highlight">
<div class="answer-block__highlight-icon" aria-hidden="true">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg>
</div>
<div>
<span class="answer-block__highlight-label">Классы</span>
<span class="answer-block__highlight-value">До 15 человек — индивидуальный подход в малокомплектной школе</span>
</div>
</div>
<div class="answer-block__highlight">
<div class="answer-block__highlight-icon" aria-hidden="true">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M2 12h20"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>
</div>
<div>
<span class="answer-block__highlight-label">Английский</span>
<span class="answer-block__highlight-value">Углублённое изучение с 1&#8209;го класса</span>
</div>
</div>
<div class="answer-block__highlight">
<div class="answer-block__highlight-icon" aria-hidden="true">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/></svg>
</div>
<div>
<span class="answer-block__highlight-label">Опыт</span>
<span class="answer-block__highlight-value">Педагоги со стажем от 10 лет</span>
</div>
</div>
</div>
</div>
</section>