<div class="container sli_3">
<?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="background-color:<?php echo $settings['background_color']; ?>">
        <div class="boxs--slide">
            <div class="boxs--slide-container owl-carousel focarousel5 owl-theme">
                <?php while ($products->have_posts()) : $products->the_post(); ?>
                    <span>
                        <div class="item wrapper--products">
                            <div class="wrapper--products-slide woo-product-box show_countdown">
                                <a href="<?php echo get_permalink() ?>">
                                <?php if (metaboxs_get_meta('custom_label') && 'yes' === $settings['custom_label']): ?>
                                <span class="label custom_label_prod_box">
                                    <?php echo metaboxs_get_meta('custom_label'); ?>
                                </span>
                                <?php endif; ?>
                                    <span href="<?php echo get_permalink() ?>" class="woo-product-box_img" title="<?php the_title() ?>">
                                        <?php the_post_thumbnail(array(300, 300), array('alt' => '' . get_the_title(), 'title' => '' . get_the_title() . '')); ?>
                                    </span>
                                    <div class="woo-product-box_title text-center">
                                        <?php echo the_title(); ?>
                                    </div>
                                    <div class="woo-product_price">
                                        <?php
                                        woocommerce_show_product_loop_sale_flash();
                                        woocommerce_template_loop_price();
                                        global $product;
                                        if ( !$product->is_in_stock() ) {
                                           echo '<span class="soldout">' . __( 'ناموجود', 'woocommerce' ) . '</span>';
                                       }
                                        ?>
                                    </div>
                                    <div class="woo-product-box_footer"></div>
                                </a>
                            </div>
                        </div>
                    </span>
                <?php $k++;
                endwhile;
                wp_reset_postdata(); ?>
            </div>
        </div>
    </section>
</div>



