2026-09-08 18:38:27 +00:00

43 lines
1.8 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
/**
* Преподаватели — CTA перед формой записи
* CF teachers_cta_title/text/btn. Кнопка открывает ту же форму, что ниже (promo-form).
*
* @package Dekart
*/
if (! defined('ABSPATH')) {
exit;
}
$post_id = (int) get_the_ID();
$cta_title = carbon_get_post_meta($post_id, 'teachers_cta_title');
$cta_text = carbon_get_post_meta($post_id, 'teachers_cta_text');
$cta_btn = carbon_get_post_meta($post_id, 'teachers_cta_btn');
if (empty($cta_title)) {
$cta_title = 'Познакомьтесь с педагогами лично';
}
if (empty($cta_text)) {
$cta_text = 'Запишитесь на экскурсию или пробный день — увидите, как проходят занятия, и зададите вопросы учителям напрямую.';
}
if (empty($cta_btn)) {
$cta_btn = 'Записаться на экскурсию';
}
?>
<section class="teachers-cta section-bg reveal" data-bg="teachers-cta" aria-label="Запись на экскурсию">
<div class="container">
<div class="teachers-cta__inner">
<div class="section-header--centered">
<h2 class="bento-h2"><?php echo esc_html($cta_title); ?></h2>
<p class="bento-p"><?php echo esc_html($cta_text); ?></p>
</div>
<button class="teachers-cta__btn btn-write open-bitrix-form" data-track="teachers-cta">
<?php echo esc_html($cta_btn); ?>
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14m-7-7 7 7-7 7"/></svg>
</button>
</div>
</div>
</section>