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_guarantees) ───
if (! defined('ABSPATH')) {
exit;
}
$post_id = get_the_ID();
$guarantees = crb_get_post_meta($post_id, 'school_guarantees');
$guar_title = crb_get_post_meta($post_id, 'school_guarantees_title', 'На что вы можете рассчитывать');
$guar_subtitle = crb_get_post_meta($post_id, 'school_guarantees_subtitle', 'Мы отвечаем за качество обучения и комфорт вашего ребёнка.');
if (empty($guarantees) || ! is_array($guarantees)) {
$guarantees = [
[
'icon' => 'shield-check',
'title' => 'Безопасность ребёнка',
'text' => 'Контроль доступа, видеонаблюдение, антибуллинг-программа и нейропсихолог. Ребёнок в безопасности все 4 года обучения.',
],
[
'icon' => 'file-description',
'title' => 'Аттестат гос. образца',
'text' => 'Официальное прикрепление к московской школе с аккредитацией. По окончании — аттестат государственного образца.',
],
[
'icon' => 'check',
'title' => 'Пробный период',
'text' => 'Приходите на экскурсию и пробный день — познакомитесь с педагогами и убедитесь, что школа подходит вашему ребёнку.',
],
[
'icon' => 'cash',
'title' => 'Прозрачный договор',
'text' => 'Фиксированная стоимость, без скрытых платежей. Материнский капитал и налоговый вычет 13% — оформляем без лишней бюрократии.',
],
];
}
?>
<section class="school-guarantees section-bg reveal" data-bg="guarantees" id="guarantees">
<div class="container">
<div class="section-header--centered">
<h2 class="bento-h2"><?php echo esc_html($guar_title); ?></h2>
<p class="bento-p"><?php echo esc_html($guar_subtitle); ?></p>
</div>
<div class="school-guarantees__grid">
<?php foreach ($guarantees as $g) : ?>
<div class="school-guarantees__card">
<span class="school-guarantees__icon" aria-hidden="true">
<img src="<?php echo esc_url(get_template_directory_uri() . '/assets/images/icons/' . $g['icon'] . '.svg'); ?>" alt="" loading="lazy">
</span>
<h3 class="school-guarantees__title"><?php echo esc_html($g['title']); ?></h3>
<p class="school-guarantees__text"><?php echo esc_html($g['text']); ?></p>
</div>
<?php endforeach; ?>
</div>
</div>
</section>