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

37 lines
1.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
// ─── Результаты (CF school_results) ───
if (! defined('ABSPATH')) {
exit;
}
$post_id = get_the_ID();
$stats = crb_get_post_meta($post_id, 'school_results');
$results_title = crb_get_post_meta($post_id, 'school_results_title', 'Результаты наших учеников');
$results_subtitle = crb_get_post_meta($post_id, 'school_results_subtitle', 'Цифры, которые говорят сами за себя: ваши дети опережают сверстников и учатся с удовольствием.');
if (empty($stats) || ! is_array($stats)) {
$stats = [
[ 'num' => '6–12 мес', 'label' => 'опережение государственной программы' ],
[ 'num' => '98%', 'label' => 'детей успешно адаптируются к школе' ],
[ 'num' => 'до 15', 'label' => 'учеников в классе — внимание каждому' ],
[ 'num' => '1 ч', 'label' => 'продуктивных занятий вместо 2–3 часов зубрёжки' ],
];
}
?>
<section class="school-results section-bg reveal" data-bg="results" id="results">
<div class="container">
<div class="section-header--centered">
<span class="bento-label">Результаты</span>
<h2 class="bento-h2"><?php echo esc_html($results_title); ?></h2>
<p class="bento-p"><?php echo esc_html($results_subtitle); ?></p>
</div>
<div class="school-results__grid">
<?php foreach ($stats as $s) : ?>
<div class="school-results__stat">
<span class="school-results__num"><?php echo esc_html($s['num']); ?></span>
<span class="school-results__label"><?php echo esc_html($s['label']); ?></span>
</div>
<?php endforeach; ?>
</div>
</div>
</section>