<?php if ('layout_three' === $settings['layout_type']) : ?>
    <!-- Testimonial section Start -->
    <section class="testimonial-three">
        <div class="container">
            <div class="row">
                <div class="col-lg-5">
                    <div class="testimonial-three__left wow fadeInLeft" data-wow-duration="1000ms" data-wow-delay="500ms">
                        <div class="sec-title text-start wow fadeInUp" data-wow-duration='1500ms' data-wow-delay='000ms'>
                            <div class="d-flex align-items-center justify-content-start">
                                <?php ostech_elementor_rendered_image($settings, 'layout_three_title_image', 'sec-title__img'); ?>
                                <?php
                                if (!empty($settings['layout_three_sec_sub_title'])) :
                                    $this->add_inline_editing_attributes('layout_three_sec_sub_title', 'none');
                                    ostech_elementor_rendered_content($this, 'layout_three_sec_sub_title', 'sec-title__tagline', $settings['section_sub_title_tag_layout_three']);
                                endif; ?>
                            </div>
                            <?php if (!empty($settings['layout_three_sec_title'])) :
                                $this->add_inline_editing_attributes('layout_three_sec_title', 'none');
                                ostech_elementor_rendered_content($this, 'layout_three_sec_title', 'sec-title__title', $settings['section_title_tag_layout_three']);
                            endif;
                            ?>
                        </div>
                        <?php
                        if (!empty($settings['layout_three_sec_summary'])) :
                            $this->add_inline_editing_attributes('layout_three_sec_summary', 'none');
                            ostech_elementor_rendered_content($this, 'layout_three_sec_summary', 'testimonial-three__text', 'p');
                        endif;
                        ?>
                        <?php if (!empty($settings['layout_three_button_url']['url'])) : ?>
                            <a href="<?php echo esc_url($settings['layout_three_button_url']['url']); ?>" <?php esc_attr(!empty($settings['layout_three_button_url']['is_external']) ? "target=_blank" : ' '); ?> class="ostech-btn">
                                <span><?php echo esc_html($settings['layout_three_button_label']); ?></span>
                            </a>
                        <?php endif; ?>
                        <div class="testimonial-three__ostech__thumb">
                            <div class="testimonial-three__ostech__thumb__item">
                                <?php ostech_elementor_rendered_image($settings, 'layout_three_shape_two'); ?>
                            </div>
                            <div class="testimonial-three__ostech__thumb__shape">
                                <?php ostech_elementor_rendered_image($settings, 'layout_three_shape_three'); ?>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-7">
                    <div class="testimonial-three__right wow fadeInRight" data-wow-duration="1000ms" data-wow-delay="500ms">
                        <div class="testimonial-three__carousel ostech-owl__carousel owl-theme owl-carousel" data-owl-options='{
						"items": 1,
						"margin": 10,
						"smartSpeed": 700,
						"loop":true,
						"autoplay": true,
						"nav":false,
						"URLhashListener":true,
						"dots":false
						}'>
                            <?php foreach ($settings['layout_three_testimonial'] as $index => $item) :  ?>
                                <div class="testimonial-three__item" data-hash="<?php echo esc_attr($index + 1); ?>">
                                    <div class="testimonial-three__item__star">
                                        <?php for ($i = 0; $i < $item['rating']['size']; $i++) : ?>
                                            <i class="icon-star"></i>
                                        <?php endfor; ?>
                                    </div>
                                    <p class="testimonial-three__item__text"><?php echo wp_kses($item['testimonial'], 'ostech_allowed_tags'); ?></p>
                                    <div class="testimonial-three__item__bottom">
                                        <div class="testimonial-three__item__author">
                                            <<?php echo esc_attr($item['testimonial_name_tag_layout_one']); ?> class="testimonial-three__item__author__name">
                                                <?php echo wp_kses($item['name'], 'ostech_allowed_tags'); ?>
                                            </<?php echo esc_attr($item['testimonial_name_tag_layout_one']); ?>>
                                            <span class="testimonial-three__item__author__deg"><?php echo wp_kses($item['designation'], 'ostech_allowed_tags'); ?></span>
                                        </div>
                                        <div class="testimonial-three__item__quite">
                                            <i class="icon-quite"></i>
                                        </div>
                                    </div>
                                </div>
                            <?php endforeach; ?>
                        </div>
                        <div class="testimonial-three__two">
                            <div class="testimonial-three__carousel-thumb ostech-owl__carousel ostech-owl__carousel--with-shadow owl-theme owl-carousel" data-owl-options='{
							"items": 3,
							"margin": 10,
							"smartSpeed": 700,
							"loop":true,
							"autoplay": true,
							"URLhashListener":true,
							"center": true,
							"dots":false,
							"responsive": {
								"0": {
									"items": 3
								},
								"500": {
									"items": 3
								}
							}
							}'>
                                <?php foreach ($settings['layout_three_testimonial'] as $index => $item) :  ?>
                                    <a href="#item<?php echo esc_attr($index + 1); ?>" class="item" data-hash="item1">
                                        <span class="testimonial-three__meta-thumb"><?php ostech_elementor_rendered_image($item, 'image'); ?></span>
                                    </a>
                                <?php endforeach; ?>
                            </div>
                            <?php if (!empty($settings['layout_three_shape']['url'])) : ?>
                                <div class="testimonial-three__two__shape">
                                    <?php ostech_elementor_rendered_image($settings, 'layout_three_shape'); ?>
                                </div>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!--Testimonial Three End-->
<?php endif; ?>