2026-08-07 11:52:31 +00:00

55 lines
3.0 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
// ─── Адаптация первоклассников (CF school_adaptation) ───
if (! defined('ABSPATH')) {
exit;
}
$post_id = get_the_ID();
$points = crb_get_post_meta($post_id, 'school_adaptation');
$adapt_title = crb_get_post_meta($post_id, 'school_adaptation_title', 'Мягкая адаптация первоклассника');
$adapt_subtitle = crb_get_post_meta($post_id, 'school_adaptation_subtitle', 'Первый класс — важный этап. Мы делаем его спокойным и радостным для ребёнка и родителей.');
if (empty($points) || ! is_array($points)) {
$points = [
[
'icon' => 'star',
'title' => 'Программа «Мягкий старт»',
'text' => 'Первые недели учёбы проходят щадяще: короткие уроки, больше игр и движения. Ребёнок привыкает к школе без стресса.',
],
[
'icon' => 'bulb',
'title' => 'Нейропсихолог в школе',
'text' => 'Специалист сопровождает каждого первоклассника, помогает развить внимание, память и саморегуляцию.',
],
[
'icon' => 'calendar-check',
'title' => 'Сбалансированный режим дня',
'text' => 'Уроки — в первую половину дня, после обеда — прогулки, отдых и кружки. Никаких перегрузок для ребёнка 6–7 лет.',
],
[
'icon' => 'users',
'title' => 'Обратная связь родителям',
'text' => 'Еженедельные отчёты о прогрессе и адаптации ребёнка. Вы всегда знаете, как проходит учебный процесс.',
],
];
}
?>
<section class="school-adaptation section-bg reveal" data-bg="adaptation" id="adaptation">
<div class="container">
<div class="section-header--centered">
<h2 class="bento-h2"><?php echo esc_html($adapt_title); ?></h2>
<p class="bento-p"><?php echo esc_html($adapt_subtitle); ?></p>
</div>
<div class="school-adaptation__grid">
<?php foreach ($points as $p) : ?>
<div class="school-adaptation__card">
<span class="school-adaptation__icon" aria-hidden="true">
<img src="<?php echo esc_url(get_template_directory_uri() . '/assets/images/icons/' . $p['icon'] . '.svg'); ?>" alt="" loading="lazy">
</span>
<h3 class="school-adaptation__title"><?php echo esc_html($p['title']); ?></h3>
<p class="school-adaptation__text"><?php echo esc_html($p['text']); ?></p>
</div>
<?php endforeach; ?>
</div>
</div>
</section>