| 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/custom-hero-banner/ |
Upload File : |
<?php
if (function_exists('render_block_preview_image') && render_block_preview_image($block, 'custom banner block preview')) {
return;
}
$className = 'custom-inner-banner ' . ($block['className'] ?? '');
$micro_heading = get_field('micro_heading');
$heading = get_field('heading');
$description = get_field('description');
?>
<section class="<?php echo esc_attr(trim($className)); ?>">
<div class="container">
<div class="inner-banner-content">
<?php
if (
isset($micro_heading) && ! empty($micro_heading)
) :
?>
<span>
<?php echo esc_html($micro_heading); ?>
</span>
<?php endif; ?>
<?php
if (
isset($heading) && ! empty($heading)
) :
?>
<h1>
<?php echo esc_html($heading); ?>
</h1>
<?php endif; ?>
<?php
if (
isset($description) && ! empty($description)
) :
?>
<?php echo wp_kses_post($description); ?>
<?php endif; ?>
</div>
</div>
</section>