403Webshell
Server IP : 65.108.144.40  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : dev ( 1000)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/successkpi/wp-content/themes/successkpi/blocks/text-with-cta-button/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/successkpi/wp-content/themes/successkpi/blocks/text-with-cta-button/index.php
<?php
if (function_exists('render_block_preview_image') && render_block_preview_image($block, 'Text with cards block preview')) {
    return;
}
$className = 'sk-cta-custom-section cta_block sk-cta-block-section sk-section-spacing ' . ($block['className'] ?? '');
?>
<section class="<?php echo esc_attr(trim($className)); ?>">
    <div class="container">
        <div class="prefooter book-demo">
            <div class="headline-2 title" data-aos="fade-up">
                <?php $cta_section_type = get_field('cta_section_type') ?? 'static'; ?>
                <?php if ($cta_section_type === 'dynamic') : ?>
                    <?php
                    $cta_heading_left_text = get_field('cta_heading_left_text') ?? '';
                    $cta_heading_right_text = get_field('cta_heading_right_text') ?? '';
                    ?>
                    <?php if (!empty($cta_heading_left_text) || have_rows('cta_heading_dynamic_text') || !empty($cta_heading_right_text)) : ?>
                        <h2>
                            <?php if (!empty($cta_heading_left_text)) : ?>
                                <?php echo esc_html($cta_heading_left_text); ?>
                            <?php endif; ?>
                            <?php if (have_rows('cta_heading_dynamic_text')) : ?>
                                <div class="css-text-rotator">
                                    <div class="sk-swiper-wrapper">
                                        <?php while (have_rows('cta_heading_dynamic_text')) : the_row(); ?>
                                            <?php $dynamic_heading_text = get_sub_field('dynamic_heading_text') ?? ''; ?>
                                            <?php if (!empty($dynamic_heading_text)) : ?>
                                                <div class="sk-swiper-slide"><?php echo esc_html($dynamic_heading_text); ?></div>
                                            <?php endif; ?>
                                        <?php endwhile; ?>
                                    </div>
                                </div>
                            <?php endif; ?>
                            <?php if (!empty($cta_heading_right_text)) : ?>
                                <?php echo esc_html($cta_heading_right_text); ?>
                            <?php endif; ?>
                        </h2>
                    <?php endif; ?>
                <?php else : ?>
                    <?php $cta_heading = get_field('cta_heading') ?? ''; ?>
                    <?php if (!empty($cta_heading)) : ?>
                        <h2 data-aos="fade-up"><?php echo esc_html($cta_heading); ?></h2>
                    <?php endif; ?>
                <?php endif; ?>
            </div>
            <?php $cta_description = get_field('cta_description') ?? ''; ?>
            <?php if (!empty($cta_description)) : ?>
                <p><?php echo wp_kses_post($cta_description); ?></p>
            <?php endif; ?>
            <div class="buttons">
                <?php
                $cta_link = get_field('cta_link') ?? '';
                if (!empty($cta_link['url'])) :
                    $cta_link_target = !empty($cta_link['target']) ? $cta_link['target'] : '_self';
                ?>
                    <a href="<?php echo esc_url($cta_link['url']); ?>" target="<?php echo esc_attr($cta_link_target); ?>" class="custom-btn" data-aos="fade-up">
                        <?php echo esc_html($cta_link['title']); ?>
                    </a>
                <?php endif; ?>
              <?php
$cta_additional_link = get_field('cta_additional_link') ?? '';
if (!empty($cta_additional_link['url'])) :
    $cta_additional_link_target = !empty($cta_additional_link['target'])
        ? $cta_additional_link['target']
        : '_self';
?>
<a
    href="<?php echo esc_url($cta_additional_link['url']); ?>"
    target="<?php echo esc_attr($cta_additional_link_target); ?>"
    class="custom-btn"
    data-aos="fade-up">
    <?php echo esc_html($cta_additional_link['title']); ?>
</a>
<?php endif; ?>
            </div>
        </div>
    </div>
</section>

Youez - 2016 - github.com/yon3zu
LinuXploit