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

38 lines
1.2 KiB
PHP

<?php
// Как поступить
if (! defined('ABSPATH')) {
exit;
}
$f_title = dekart_family_get('family_steps_title');
$f_items = (array) dekart_family_get('family_steps');
if (! $f_title && ! $f_items) {
return;
}
?>
<section class="section-bg reveal family-block" data-bg="family-steps" id="enrollment">
<div class="container">
<?php if ($f_title) : ?>
<h2 class="bento-h2"><?php echo esc_html($f_title); ?></h2>
<?php endif; ?>
<?php if ($f_items) : ?>
<ol class="family-steps">
<?php $f_n = 0; foreach ($f_items as $f_it) : ?>
<?php if (empty($f_it['step_title'])) { continue; } $f_n++; ?>
<li class="family-steps__item">
<span class="family-steps__num"><?php echo esc_html(sprintf('%02d', $f_n)); ?></span>
<h3 class="family-steps__title"><?php echo esc_html($f_it['step_title']); ?></h3>
<?php if (! empty($f_it['step_text'])) : ?>
<p class="family-steps__text"><?php echo esc_html($f_it['step_text']); ?></p>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ol>
<?php endif; ?>
</div>
</section>