| 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/info-cards-row/ |
Upload File : |
<?php
if (function_exists('render_block_preview_image') && render_block_preview_image($block, 'Home banner block preview')) {
return;
}
$className = 'sk-enterprise-performance-section sk-section-spacing ' . ($block['className'] ?? '');
?>
<section class="<?php echo esc_attr(trim($className)); ?>">
<?php $heading = get_field('heading');
if (isset($heading) && !empty($heading)) : ?>
<div class="sk-enterprise-performance-heading">
<h2>Enterprise Performance at Any Scale</h2>
</div>
<?php endif; ?>
<div class="sk-enterprise-performance-features">
<div class="gradient-box"></div>
<div class="container">
<div class="row">
<?php if (have_rows('features_list')) : ?>
<?php while (have_rows('features_list')) : the_row(); ?>
<div class="col-md-3">
<div class="sk-performance-feature-card">
<?php
$media_type = get_sub_field('media_type');
$lottie_file = get_sub_field('feature_lottie');
$img = get_sub_field('feature_image');
if (
($media_type == 'lottie' && isset($lottie_file['url']) && !empty($lottie_file['url'])) ||
($media_type == 'image' && isset($img['url']) && !empty($img['url']))
) :
?>
<div class="icon">
<?php if ($media_type == 'lottie') : ?>
<lottie-player class="lottie"
src="<?php echo esc_url($lottie_file['url']); ?>"
background="transparent" speed="1" style="width: 100%; height: auto;" direction="1"
playmode="normal" loop="" autoplay="">
</lottie-player>
<?php elseif ($media_type == 'image') : ?>
<img src="<?php echo esc_url($img['url']); ?>" alt="<?php echo esc_attr($img['alt']); ?>" style="width: 100%; height: auto;">
<?php endif; ?>
</div>
<?php endif; ?>
<?php
$f_title = get_sub_field('feature_title');
if (isset($f_title) && !empty($f_title)) : ?>
<h4><?php echo esc_html($f_title); ?></h4>
<?php endif;
$f_desc = get_sub_field('feature_description');
if (isset($f_desc) && !empty($f_desc)) :
?>
<?php echo wp_kses_post($f_desc); ?>
<?php endif; ?>
</div>
</div>
<?php endwhile;
endif; ?>
</div>
</div>
</div>
<?php
$bottom_title = get_field('bottom_title');
$bottom_description = get_field('bottom_description');
$bottom_cta = get_field('bottom_cta');
if (
(isset($bottom_title) && !empty($bottom_title)) ||
(isset($bottom_description) && !empty($bottom_description)) ||
(isset($bottom_cta['url']) && !empty($bottom_cta['url']))
) :
?>
<div class="container">
<div class="sk-performance-cta">
<?php if (isset($bottom_title) && !empty($bottom_title)) : ?>
<h3><?php echo esc_html($bottom_title); ?></h3>
<?php endif; ?>
<?php if (isset($bottom_description) && !empty($bottom_description)) : ?>
<div><?php echo wp_kses_post($bottom_description); ?></div>
<?php endif; ?>
<?php if (isset($bottom_cta['url']) && !empty($bottom_cta['url'])) : ?>
<a class="custom-btn" href="<?php echo esc_url($bottom_cta['url']); ?>" target="<?php echo esc_attr(!empty($bottom_cta['target']) ? $bottom_cta['target'] : '_self'); ?>">
<?php echo esc_html($bottom_cta['title']); ?>
</a>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
</section>