<!--[archive/grid]-->

<div class="row clearfix d-block">

    <?php global $wp_query; ?>

    <!--

        <?= $wp_query->request ?>

    -->

    <?php if( have_posts() ) : ?>

        <?php while( have_posts() ) : ?>

            <?php the_post(); ?>

            <?php if( is_events() ) : ?>

                <?php get_template_part("template-parts/archive/event-cell", "", ["wide" => in_array( $wp_query->current_post, [ 4, 8, 14 ] ) ]); ?>

            <?php else : ?>

                <?php get_template_part("template-parts/archive/cell", "", ["wide" => in_array( $wp_query->current_post, [ 4, 8, 14 ] ) ]); ?>

                <?php if ( wp_is_mobile() && $wp_query->current_post%3 === 0 ) : ?>

                    <?php get_template_part("template-parts/ad/adfox/ad-inlist-1"); ?>

                <?php endif; ?>

            <?php endif; ?>

        <?php endwhile; ?>

    <?php else : ?>

        <?php get_template_part("template-parts/no-posts"); ?>

    <?php endif; ?>



</div>

<!--[/archive/grid]-->