testimonial-1.php
2 years ago
testimonial-10.php
2 years ago
testimonial-11.php
2 years ago
testimonial-2.php
2 years ago
testimonial-3.php
2 years ago
testimonial-4.php
2 years ago
testimonial-5.php
2 years ago
testimonial-6.php
2 years ago
testimonial-7.php
2 years ago
testimonial-8.php
2 years ago
testimonial-9.php
2 years ago
testimonial-8.php
65 lines
| 1 | <?php |
| 2 | if (!defined('ABSPATH')) { |
| 3 | exit; // Exit if accessed directly. |
| 4 | } |
| 5 | ?> |
| 6 | <section class="feedback-section-three ezd-position-relative"> |
| 7 | <div id="feedBack_carousel" class="carousel slide" data-bs-ride="carousel"> |
| 8 | |
| 9 | <div class="feedback_slider"> |
| 10 | <div class="carousel-inner ezd-text-center"> |
| 11 | <?php |
| 12 | if (!empty($testimonials8)) { |
| 13 | foreach ( $testimonials8 as $index => $item ) { |
| 14 | $active = $index == 1 ? ' active' : ''; |
| 15 | ?> |
| 16 | <div class="carousel-item<?php echo esc_attr($active) ?>"> |
| 17 | <?php ?> |
| 18 | <?php |
| 19 | if ( !empty($item['review_content']) ) { |
| 20 | echo spel_kses_post(wpautop($item[ 'review_content' ])); |
| 21 | } |
| 22 | if ( !empty($item['author_name']) ) { |
| 23 | ?> |
| 24 | <div class="ezd-d-inline-block ezd-position-relative name fw-500 text-lg"> |
| 25 | <?php echo esc_html($item[ 'author_name' ]); ?> |
| 26 | <span class="fw-normal opacity-50"><?php echo esc_html($item[ 'author_position' ]); ?></span> |
| 27 | </div> |
| 28 | <?php |
| 29 | } |
| 30 | ?> |
| 31 | </div> |
| 32 | <?php |
| 33 | } |
| 34 | } |
| 35 | ?> |
| 36 | </div> |
| 37 | </div> |
| 38 | |
| 39 | |
| 40 | <button class="carousel-control-prev carousel-btn" type="button" data-bs-target="#feedBack_carousel" data-bs-slide="prev"> |
| 41 | <?php \Elementor\Icons_Manager::render_icon( $settings['prev_arrow_icon'], [ 'aria-hidden' => 'true' ] ); ?> |
| 42 | </button> |
| 43 | <button class="carousel-control-next carousel-btn" type="button" data-bs-target="#feedBack_carousel" data-bs-slide="next"> |
| 44 | <?php \Elementor\Icons_Manager::render_icon( $settings['next_arrow_icon'], [ 'aria-hidden' => 'true' ] ); ?> |
| 45 | </button> |
| 46 | |
| 47 | <div class="carousel-indicators"> |
| 48 | |
| 49 | <?php |
| 50 | if (!empty($testimonials8)) { |
| 51 | foreach ( $testimonials8 as $index => $item ) { |
| 52 | $active = $index == 0 ? 'active' : ''; |
| 53 | $current_area = $index == 1 ? 'aria-current="true"' : ''; |
| 54 | ?> |
| 55 | <button type="button" data-bs-target="#feedBack_carousel" data-bs-slide-to="<?php echo esc_attr($index) ?>" class="<?php echo esc_attr($active) ?>" <?php echo $current_area ?> aria-label="Slide <?php echo esc_attr($index) ?>"> |
| 56 | <?php spel_dynamic_image($item[ 'author_image' ], 'full', [ 'class' => 'lazy-img ezd-rounded-circle' ]) ?> |
| 57 | </button> |
| 58 | <?php |
| 59 | } |
| 60 | } |
| 61 | ?> |
| 62 | </div> |
| 63 | |
| 64 | </div> |
| 65 | </section> |