2026-10-08 14:29:15 +00:00

52 lines
1.8 KiB
PHP

<?php
// Кому подходит / не подходит
if (! defined('ABSPATH')) {
exit;
}
$f_title = dekart_family_get('family_fit_title');
$f_yes = (array) dekart_family_get('family_fit_yes');
$f_no = (array) dekart_family_get('family_fit_no');
if (! $f_title && ! $f_yes && ! $f_no) {
return;
}
?>
<section class="section-bg reveal family-block" data-bg="family-fit">
<div class="container">
<?php if ($f_title) : ?>
<h2 class="bento-h2"><?php echo esc_html($f_title); ?></h2>
<?php endif; ?>
<div class="family-fit">
<?php if ($f_yes) : ?>
<div class="family-fit__col family-fit__col--yes">
<h3 class="family-fit__head">Кому подходит</h3>
<ul class="family-fit__list">
<?php foreach ($f_yes as $f_y) : ?>
<?php if (! empty($f_y['text'])) : ?><li><?php echo esc_html($f_y['text']); ?></li><?php endif; ?>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<?php if ($f_no) : ?>
<div class="family-fit__col family-fit__col--no">
<h3 class="family-fit__head">Кому не подходит</h3>
<ul class="family-fit__list">
<?php foreach ($f_no as $f_n) : ?>
<?php if (! empty($f_n['text'])) : ?><li><?php echo esc_html($f_n['text']); ?></li><?php endif; ?>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
</div>
<div class="family-block__cta">
<button type="button" class="btn-write btn-primary open-bitrix-form" data-goal="family_classes_cta">Записаться на диагностику</button>
</div>
</div>
</section>