<?php
    $uplift_options = uplift_get_theme_opts();

    $blog_type    = $uplift_options['archive_display_type'];
    $blog_classes = uplift_blog_classes( $blog_type );
?>

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

    <div class="campaigns-wrap campaigns-archive">

        <!-- OPEN .campaign-items -->
        <ul class="campaign-items masonry-items clearfix">

            <?php while ( have_posts() ) : the_post();
                echo uplift_get_campaign_item( $blog_classes['item'] );
            endwhile; ?>

            <!-- CLOSE .campaign-items -->
        </ul>

    </div>

<?php else: ?>

    <h3><?php _e( 'Sorry, there are no results to display.', 'uplift' ); ?></h3>

<?php endif; ?>

<div class="pagination-wrap"><?php echo pagenavi( $wp_query ); ?></div>