48 lines
1.6 KiB
PHP
48 lines
1.6 KiB
PHP
<?php
|
|
|
|
// Аттестация и документы
|
|
|
|
if (! defined('ABSPATH')) {
|
|
exit;
|
|
}
|
|
|
|
$f_title = dekart_family_get('family_attest_title');
|
|
$f_text = dekart_family_get('family_attest_text');
|
|
$f_items = (array) dekart_family_get('family_attest_items');
|
|
$f_cta = dekart_family_get('family_attest_cta');
|
|
$f_btn = $f_cta ?: 'Задать вопрос';
|
|
|
|
if (! $f_title && ! $f_text && ! $f_items) {
|
|
return;
|
|
}
|
|
?>
|
|
<section class="section-bg reveal family-block family-attest" data-bg="family-attest">
|
|
<div class="container">
|
|
<?php if ($f_title) : ?>
|
|
<h2 class="bento-h2"><?php echo esc_html($f_title); ?></h2>
|
|
<?php endif; ?>
|
|
<?php if ($f_text) : ?>
|
|
<p class="bento-p"><?php echo esc_html($f_text); ?></p>
|
|
<?php endif; ?>
|
|
|
|
<?php if ($f_items) : ?>
|
|
<div class="family-grid family-grid--3">
|
|
<?php foreach ($f_items as $f_it) : ?>
|
|
<div class="family-card">
|
|
<?php if (! empty($f_it['title'])) : ?>
|
|
<h3 class="family-card__title"><?php echo esc_html($f_it['title']); ?></h3>
|
|
<?php endif; ?>
|
|
<?php if (! empty($f_it['text'])) : ?>
|
|
<p class="family-card__text"><?php echo esc_html($f_it['text']); ?></p>
|
|
<?php endif; ?>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div class="family-block__cta">
|
|
<button type="button" class="btn-write btn-primary open-bitrix-form" data-goal="family_classes_cta"><?php echo esc_html($f_btn); ?></button>
|
|
</div>
|
|
</div>
|
|
</section>
|