| 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/media-grid/ |
Upload File : |
<?php
if (function_exists('render_block_preview_image') && render_block_preview_image($block, 'Image Grid Section')) {
return;
}
$className = 'image-grid-section sk-section-spacing ' . ($block['className'] ?? '');
?>
<section class="<?php echo esc_attr(trim($className)); ?>">
<div class="container">
<div class="media-wrapper">
<?php if (have_rows('left_images')) : ?>
<div class="left-images">
<?php while (have_rows('left_images')) : the_row();
$left_image = get_sub_field('left_image');
if (isset($left_image) && !empty($left_image) && isset($left_image['url']) && !empty($left_image['url'])) :
?>
<img decoding="async" src="<?php echo esc_url($left_image['url']); ?>" alt="<?php echo (isset($left_image['alt']) && !empty($left_image['alt'])) ? esc_attr($left_image['alt']) : ''; ?>">
<?php endif;
endwhile; ?>
</div>
<?php endif;
$middle_image = get_field('middle_image');
if (isset($middle_image) && !empty($middle_image) && isset($middle_image['url']) && !empty($middle_image['url'])) : ?>
<div class="middle-image">
<img decoding="async" src="<?php echo esc_url($middle_image['url']); ?>" alt="<?php echo (isset($middle_image['alt']) && !empty($middle_image['alt'])) ? esc_attr($middle_image['alt']) : ''; ?>">
</div>
<?php endif;
if (have_rows('right_images')) : ?>
<div class="right-images">
<?php while (have_rows('right_images')) : the_row();
$right_image = get_sub_field('right_image');
if (isset($right_image) && !empty($right_image) && isset($right_image['url']) && !empty($right_image['url'])) :
?>
<img decoding="async" src="<?php echo esc_url($right_image['url']); ?>" alt="<?php echo (isset($right_image['alt']) && !empty($right_image['alt'])) ? esc_attr($right_image['alt']) : ''; ?>">
<?php
endif;
endwhile; ?>
</div>
<?php endif; ?>
</div>
</div>
</section>