<div class="container">
    <section class="article_post2" style="margin-top:1rem;background:<?php echo $settings['background_Color_vid']; ?>">
        <?php if ($settings['title']) : ?>
            <div class=" col-12">
                <h3 class="article__title p-l-1 pull-xs-right nini-larg line" style="color:<?php echo $settings['text_Color_vid']; ?>">
                    <?php \Elementor\Icons_Manager::render_icon($settings['Iconlayoutvid'], ['aria-hidden' => 'true']); ?>
                    <a class="">
                        <?php echo $settings['title']; ?>
                    </a>
                </h3>
            </div>
        <?php endif; ?>
        <div class="art-items row">
            <?php
            while ($all_posts->have_posts()) :
                $all_posts->the_post();
            ?>
                <div class="col-12 col-sm-6 col-md-4 col-lg-3">
                    <article>
                        <a href="<?php the_permalink(); ?>">
                            <figure>
                                <?php the_post_thumbnail('medium_large'); ?>
                            </figure>
                        </a>
                        <div class="content-article">
                            <h2><?php the_title(); ?></h2>
                            <div class="daymonthyear">
                                <?php echo human_time_diff(get_the_time('U'), current_time('timestamp')) . ' پیش'; ?>
                            </div>
                        </div>
                    </article>
                </div>
            <?php endwhile; ?>
        </div>
    </section>
</div>