<!--[home/list-items]-->

<?php

    global $main_item, $colon_item;

    $mainpage_query = new WP_Query(
        [
            "post_type" => ["profile_article"],
            "post_status" => "publish",
            "posts_per_page" => 22,
            "ignore_sticky_posts" => true,
            "order" => "DESC",
            "orderby" => "post_date",
            "post__not_in" => [$main_item, $colon_item]
        ]
    );

?>

<?php if($mainpage_query->have_posts()): ?>

    <?php while ($mainpage_query->have_posts()): ?>

        <?php $mainpage_query->the_post(); ?>

        <?php if ( in_array( $mainpage_query->current_post, [8, 16] ) ): ?>

            <?php get_template_part("template-parts/home/cell", "", ["wide" => true]); ?>

        <?php else: ?>

            <?php get_template_part("template-parts/home/cell", "", ["wide" => false]); ?>

        <?php endif; ?>

    <?php endwhile; ?>

<?php endif; ?>

<!--[/home/list-items]-->