| 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/testimonials-section/ |
Upload File : |
<?php
if (function_exists('render_block_preview_image') && render_block_preview_image($block, 'Testimonials section')) {
return;
}
$className = 'trusted-by-section ' . ($block['className'] ?? '');
?>
<section class="<?php echo esc_attr(trim($className)); ?>">
<?php $heading = get_field('heading');
if (isset($heading) && !empty($heading)): ?>
<div class="main-title-wrapper">
<div class="main-title-inner">
<h3><?php echo esc_html($heading); ?></h3>
</div>
</div>
<?php endif; ?>
<div class="container">
<?php if (have_rows('experience_cards')) : ?>
<div class="testimonials-wrapper">
<?php while (have_rows('experience_cards')) : the_row(); ?>
<div class="testimonial-slide">
<?php $card_image = get_sub_field('card_image');
if (isset($card_image) && !empty($card_image)) : ?>
<picture class="aspect-ratio">
<img decoding="async" src="<?php echo esc_url($card_image['url']) ?>" alt="<?php echo (isset($card_image['alt']) && !empty($card_image['alt'])) ? esc_attr($card_image['alt']) : ''; ?>">
</picture>
<?php endif; ?>
<div class="trusted-quote">
<?php $card_description = get_sub_field('card_description');
if (isset($card_description) && !empty($card_description)) : ?>
<?php echo wp_kses_post($card_description) ?>
<?php endif; ?>
<picture class="trusted-quote-logo">
<?php $card_image1 = get_sub_field('card_image1');
if (isset($card_image1) && !empty($card_image1)) : ?>
<img decoding="async" src="<?php echo esc_url($card_image1['url']) ?>" alt="<?php echo (isset($card_image1['alt']) && !empty($card_image1['alt'])) ? esc_attr($card_image1['alt']) : ''; ?>">
<?php endif; ?>
</picture>
</div>
</div>
<?php endwhile; ?>
</div>
<?php endif; ?>
<?php if (have_rows('features_list')): ?>
<div class="benefits-wrapper">
<div class="benefits-inner">
<?php while (have_rows('features_list')): the_row();
$title = get_sub_field('feature_title');
$description = get_sub_field('feature_description');
?>
<?php if ($title || $description): ?>
<div class="benefits-card">
<?php if ($title): ?>
<h3><?php echo esc_html($title); ?></h3>
<?php endif; ?>
<?php if ($description): ?>
<?php echo wp_kses_post($description); ?>
<?php endif; ?>
</div>
<?php endif; ?>
<?php endwhile; ?>
</div>
</div>
<?php endif; ?>
</div>
</section>