<?php if ('layout_two' == $settings['layout_type']) : ?>
    <!-- testimonial-two section End -->
    <section class="project-two">
        <div class="container-fluid">
            <?php if (!empty($settings['layout_two_sec_sub_title']) || !empty($settings['layout_two_sec_title'])) : ?>
                <div class="sec-title text-center wow fadeInUp" data-wow-duration='1500ms' data-wow-delay='000ms'>
                    <div class="d-flex align-items-center justify-content-center">
                        <?php ostech_elementor_rendered_image($settings, 'layout_two_sec-title__img', 'sec-title__img'); ?>
                        <?php
                        if (!empty($settings['layout_two_sec_sub_title'])) :
                            $this->add_inline_editing_attributes('layout_two_sec_sub_title', 'none');
                            ostech_elementor_rendered_content($this, 'layout_two_sec_sub_title', 'sec-title__tagline', $settings['section_sub_title_tag_layout_two']);
                        endif; ?>
                    </div>
                    <?php if (!empty($settings['layout_two_sec_title'])) :
                        $this->add_inline_editing_attributes('layout_two_sec_title', 'none');
                        ostech_elementor_rendered_content($this, 'layout_two_sec_title', 'sec-title__title', $settings['section_title_tag_layout_two']);
                    endif;
                    ?>
                </div>
            <?php endif; ?>
            <div class="row gutter-y-30">
                <?php foreach ($settings['portfolio_two_list'] as $index => $item) : ?>
                    <div class="col-lg-3 col-md-4 col-sm-12">
                        <div class="project-two__item wow fadeInUp" data-wow-duration="1000ms" data-wow-delay="500ms">
                            <div class="project-two__thumb">
                                <?php ostech_elementor_rendered_image($item, 'image'); ?>
                            </div>
                            <div class="project-two__content">
                                <<?php echo esc_attr($item['portfolio_title_tag_layout_two']); ?> class="project-two__content__title">
                                    <?php
                                    if (!empty($item['title'])) :
                                        ostech_basic_rendered_content($this, $item,  'title', '', 'a');
                                    endif;
                                    ?>
                                </<?php echo esc_attr($item['portfolio_title_tag_layout_two']); ?>>
                                <p class="project-two__content__text"><?php echo esc_html($item['tag_line']) ?></p>

                                <a href="<?php echo esc_url($item['url']['url']); ?>" <?php esc_attr(!empty($item['url']['is_external']) ? "target=_blank" : ' '); ?> class="project-two__content__btn">
                                    <span class="project-two__content__btn__icon"></span>
                                </a>
                            </div>
                        </div>
                    </div>
                <?php endforeach; ?>
            </div>
        </div>
    </section>
    <!-- testimonial-two section End -->
<?php endif; ?>