<div class="container card_box_9">
    <div class="row">
        <?php if ($settings['title']): ?>
        <div class="col-12">
            <div class="head_card_box">
                <span class="head_card_title" style="color:<?php echo $settings['box_title']; ?>">
                    <?php echo $settings['title']; ?>
                </span>
                <?php if ($settings['title_show_more']): ?>
                <a href="<?php echo $settings['website_link']['url']; ?>" class="head_card_more"
                    style="color:<?php echo $settings['box_title_redmor']; ?>">
                    <?php echo $settings['title_show_more']; ?>
                    <i class="fal fa-arrow-left"></i>
                </a>
                <?php endif; ?>
            </div>
        </div>
        <?php endif;
        while ($all_posts->have_posts()) :
        $all_posts->the_post(); ?>
        <div class="col-12 col-md-4 ">
            <div class="fid-box-row app-card">
                <figure class="box-card fiv app-card verticalarea">
                    <a class="inner-card" href="<?php the_permalink(); ?>">
                        <div class="ovl overlay-dark-top"></div>
                        <div class="radius-game"><?php the_post_thumbnail('articlethumb'); ?>
                        </div>
                    </a>
                    <div class="app-card-content">
                        <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
                        <div class="details pt-3">
                            <span>نوشته شده توسط <?php the_author(); ?></span>
                            <span class="float-right"><?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' پیش'; ?></span>
                        </div>
                    </div>
                </figure>
            </div>
        </div>
        <?php endwhile; ?>
    </div>