shkola/wp-content/themes/dekart/template-parts/pksh/final-cta.php
2026-07-17 16:10:56 +00:00

33 lines
1.2 KiB
PHP
Raw Permalink 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 — запись на бесплатное пробное
* .bento .pksh-section #final-cta
*
* @package Dekart
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$data = Pksh_Data::instance();
$timer_ts = $data->get_honest_deadline();
?>
<section class="bento pksh-section" id="final-cta" aria-label="Запись">
<div class="bento__full">
<div class="final-cta">
<h2 class="bento-h2">Первое занятие — бесплатно</h2>
<p class="final-cta__text">Ребёнок познакомится с педагогом, попробует задания. Вы увидите методику своими глазами. Никакой оплаты и договоров.</p>
<?php if ( $timer_ts > 0 ) : ?>
<?php Pksh_Data::render_honest_timer( 'Акция действует еще:' ); ?>
<?php endif; ?>
<button class="btn-primary btn-primary--large open-bitrix-form btn-write">Записаться на бесплатное пробное</button>
<?php if ( ! empty( $data->get_premium_program()['urgency'] ) ) : ?>
<p class="final-cta__footnote"><?php echo esc_html( $data->get_premium_program()['urgency'] ); ?></p>
<?php endif; ?>
</div>
</div>
</section>