<?php if ('layout_four' == $settings['layout_type']) : ?>
    <section class="project-two project-two--page">
        <div class="container">
            <div class="project-two__carousel ostech-owl__carousel ostech-owl__carousel--with-shadow ostech-owl__carousel--basic-nav owl-carousel owl-theme" data-owl-options='<?php echo esc_attr(ostech_get_owl_options($settings)); ?>'>
                <?php foreach ($settings['portfolio_two_list'] as $index => $item) : ?>
                    <div class="item">
                        <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><!-- /.row -->
        </div>
    </section>
<?php endif; ?>