2026-10-08 16:59:02 +00:00

34 lines
1.1 KiB
PHP

<?php
if (! defined('ABSPATH')) {
exit;
}
$short_title = dekart_family_get('family_short_title') ?: 'Коротко';
$short_text = dekart_family_get('family_short_text');
$short_items = (array) dekart_family_get('family_short_items');
if (! $short_text && ! $short_items) {
return;
}
?>
<section class="section-bg reveal family-block family-short" data-bg="family-short" aria-label="Коротко">
<div class="container">
<div class="family-short__card">
<h2 class="family-short__title"><?php echo esc_html($short_title); ?></h2>
<?php if ($short_text) : ?>
<p class="family-short__text"><?php echo esc_html($short_text); ?></p>
<?php endif; ?>
<?php if ($short_items) : ?>
<ul class="family-short__list">
<?php foreach ($short_items as $it) : ?>
<?php if (empty($it['text'])) { continue; } ?>
<li><?php echo esc_html($it['text']); ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
</div>
</section>