<div class="container larticle-1">
    <div class="row">
    <?php if ($settings['title']): ?>
        <div class="col-12">
            <div class="head_card_box">
                <span class="head_card_title">
                    <?php echo $settings['title']; ?>
                </span>
                <?php if ($settings['title_show_more']): ?>
                <a href="<?php echo $settings['website_link']['url']; ?>" class="head_card_more">
                    <?php echo $settings['title_show_more']; ?>
                    <i class="fal fa-arrow-left"></i>
                </a>
                <?php endif; ?>
            </div>
        </div>
        <?php endif;?>
    </div>
    <section class="widget_box_ch">
        <div class="row">
            <?php
            while ($all_posts->have_posts()) :
                $all_posts->the_post();
                $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'medium_large');
            ?>
                <div class="col-12 col-sm-6 col-md-4 col-lg-3">
                    <article class="widget-item-content">
                        <a href="<?php the_permalink(); ?>" class="listing-mg-type" style="background-image: url('<?php echo $thumb['0']; ?>');">
                        </a>
                        <div class="content-container">
                            <h2 class="title ">
                                <?php
                                do_action('type_article');
                                the_title(); ?>
                            </h2>
                        </div>
                    </article>
                </div>
            <?php endwhile; ?>
        </div>
    </section>
</div>