<?php if ('layout_seven' === $settings['layout_type']) : ?>
    <!--Testimonial Two Start-->
    <section class="testimonials-four">
        <div class="testimonials-four__bg jarallax" data-jarallax data-speed="0.3" data-imgPosition="50% -100%" style="background-image: url(<?php echo esc_url($settings['layout_seven_bg_image']['url']); ?>);"></div>
        <div class="container-fluid">
            <div class="row">
                <div class="col-xl-6">
                    <div class="testimonials-four__image">
                        <div class="testimonials-four__image__shape-top">
                            <?php ostech_elementor_rendered_image($settings, 'layout_seven_shape_one'); ?>
                        </div>
                        <div class="testimonials-four__image__shape-bottom">
                            <?php ostech_elementor_rendered_image($settings, 'layout_seven_shape_two'); ?>
                        </div>
                        <?php ostech_elementor_rendered_image($settings, 'layout_seven_image'); ?>
                    </div>
                </div>
                <div class="col-xl-6">
                    <div class="testimonials-four__content">
                        <div class="sec-title-two">

                            <<?php echo esc_attr($settings['section_sub_title_tag_layout_seven']); ?> class="sec-title-two__tagline">
                                <span class="sec-title-two__tagline__icon">
                                    <?php \Elementor\Icons_Manager::render_icon($settings['layout_seven_sec_icon'], ['aria-hidden' => 'true'], 'i'); ?>
                                </span><?php echo wp_kses($settings['layout_seven_sec_sub_title'], 'ostech_allowed_tags'); ?>
                            </<?php echo esc_attr($settings['section_sub_title_tag_layout_seven']); ?>><!-- /.sec-title-two__tagline -->

                            <?php
                            if (!empty($settings['layout_seven_sec_title'])) :
                                $this->add_inline_editing_attributes('layout_seven_sec_title', 'none');
                                ostech_elementor_rendered_content($this, 'layout_seven_sec_title', 'sec-title-two__title', $settings['section_title_tag_layout_seven']);
                            endif;
                            ?>
                        </div><!-- /.sec-title-two -->
                        <div class="testimonials-four__carousel ostech-owl__carousel owl-theme owl-carousel" data-owl-options='<?php echo esc_attr(ostech_get_owl_options($settings)); ?>'>
                            <?php foreach ($settings['layout_seven_testimonials'] as $index => $item) :  ?>
                                <div class="item">
                                    <div class="testimonials-four__item">
                                        <div class="testimonials-four__qutation" style="background-image: url(<?php echo esc_url($item['shape']['url']); ?>);"></div>
                                        <div class="testimonials-four__ratings">
                                            <?php for ($i = 0; $i < $item['rating']['size']; $i++) : ?>
                                                <span class="fa fa-star"></span>
                                            <?php endfor; ?>
                                        </div>
                                        <div class="testimonials-four__quote">
                                            <?php echo wp_kses($item['testimonial'], 'ostech_allowed_tags'); ?>
                                        </div>
                                        <<?php echo esc_attr($item['testimonial_name_tag_layout_seven']); ?> class="testimonials-four__title">
                                            <?php echo wp_kses($item['name'], 'ostech_allowed_tags'); ?>
                                        </<?php echo esc_attr($item['testimonial_name_tag_layout_seven']); ?>>
                                        <span class="testimonials-four__designation">
                                            <?php echo wp_kses($item['designation'], 'ostech_allowed_tags'); ?>
                                        </span>
                                        <div class="testimonials-four__author">
                                            <?php ostech_elementor_rendered_image($item, 'image'); ?>
                                        </div>
                                    </div>
                                </div><!-- /.testimonials-item -->
                            <?php endforeach; ?>
                        </div><!-- /.testimonials-four__carousel -->
                    </div>
                </div>
            </div>
        </div><!-- /.container -->
    </section><!-- /.testimonials-four -->
    <!--Testimonial Two End-->
<?php endif; ?>