<div class="container list-item-area-sim sli_6">
<?php if ($settings['title']): ?>
    <div class="row">
        <div class="col-12">
            <div class="head_card_box">
                <div class="head_card_title"><?php echo $settings['title']; ?></div>
                <a href="<?php echo $settings['more_link']['url']; ?>" class="head_card_more">
                    <?php echo $settings['title_show_more']; ?>
                    <i class="fal fa-arrow-left" aria-hidden="true"></i>
                </a>
            </div>
        </div>
    </div>
    <?php endif; ?>
    <section class="woo-list-slider-owl mb-3" style="box-shadow:none;background-color:<?php echo $settings['background_color']; ?>">
        <div class="sec_list">
            <div class="col-12 pl-0">
                <div class="row">
                    <?php while ($products->have_posts()) : $products->the_post(); ?>
                    <div class="col-12 col-sm-6 col-lg-4">
                        <div class="item-area-simple">
                            <div class="product-image-area">
                                <div class="product-image">
                                    <?php do_action('add_quick_view_button'); ?>
                                    <a href="<?php echo get_permalink(); ?>">
                                        <?php the_post_thumbnail(array(100, 100), array('alt' => '' . get_the_title(), 'title' => '' . get_the_title() . '')); ?>
                                    </a>
                                </div>
                            </div>
                            <div class="product-detail-area">
                                <div class="product-name">
                                    <a href="<?php echo get_permalink(); ?>">
                                        <?php echo the_title(); ?>
                                    </a>
                                </div>
                                <div class="row">
                                    <?php woocommerce_template_loop_price(); ?>
                                </div>
                            </div>
                            <?php
                        global $product;
                            if ( !$product->is_in_stock() ) {
                                echo '<div class="out_of_stock"><span class="soldout">' . __( 'ناموجود', 'leora' ) . '</span></div>';
                        }
                    ?>
                            <?php woocommerce_show_product_loop_sale_flash(); ?>
                        </div>
                    </div>
                    <?php $k++;
            endwhile;
            wp_reset_postdata(); ?>
                </div>
            </div>
        </div>
    </section>
</div>