| 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/platform-banner/ |
Upload File : |
<?php
if (function_exists('render_block_preview_image') && render_block_preview_image($block, 'Platform banner block preview')) {
return;
}
$className = 'platform-page-banner ' . ($block['className'] ?? '');
?>
<section class="<?php echo esc_attr(trim($className)); ?>">
<div class="container">
<div class="platform-page-banner-content">
<?php
$cta_heading = get_field('cta_heading');
if(isset($cta_heading) && !empty($cta_heading)) : ?>
<h1><?php echo esc_html($cta_heading); ?></h1>
<?php endif; ?>
<?php
$cta_description = get_field('cta_description');
if(isset($cta_description) && !empty($cta_description)) : ?>
<?php echo wp_kses_post($cta_description); ?>
<?php endif; ?>
<?php
$cta_link = get_field('cta_link');
if(isset($cta_link) && !empty($cta_link)) : ?>
<div class="get-demo-btn">
<a href="<?php echo esc_url($cta_link['url']); ?>" target="<?php echo esc_attr($cta_link['target']); ?>" class="custom-btn"><?php echo esc_html($cta_link['title']); ?></a>
</div>
<?php endif; ?>
<?php $cta_image = get_field('cta_image');
if(isset($cta_image) && !empty($cta_image)) : ?>
<div class="hero-custom-image">
<img fetchpriority="high" decoding="async" class="" src="<?php echo esc_url($cta_image['url']); ?>" alt="<?php echo esc_attr($cta_image['alt']); ?>">
</div>
<?php endif; ?>
</div>
</div>
</section>