Пример #1
1
    /**
     * Display navigation to next/previous set of posts when applicable.
     */
    function create_paging_nav()
    {
        // Don't print empty markup if there's only one page.
        if ($GLOBALS['wp_query']->max_num_pages < 2) {
            return;
        }
        $pagination_type = get_theme_mod('pagination_type', create_get_default_theme_options('pagination_type'));
        /**
         * Check if navigation type is Jetpack Infinite Scroll and if it is enabled, else goto default pagination
         * if it's active then disable pagination
         */
        if (('infinite-scroll-click' == $pagination_type || 'infinite-scroll-scroll' == $pagination_type) && class_exists('Jetpack') && Jetpack::is_module_active('infinite-scroll')) {
            return false;
        } elseif ('numeric' == $pagination_type && function_exists('the_posts_pagination')) {
            // Previous/next page navigation.
            the_posts_pagination(array('prev_text' => __('Previous page', 'create'), 'next_text' => __('Next page', 'create'), 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('Page', 'create') . ' </span>'));
        } else {
            ?>
		<nav class="navigation paging-navigation" role="navigation">
			<h1 class="screen-reader-text"><?php 
            _e('Posts navigation', 'create');
            ?>
</h1>
			<div class="nav-links">

				<?php 
            if (get_next_posts_link()) {
                ?>
				<div class="nav-previous"><?php 
                next_posts_link(__('<span class="meta-nav">&larr;</span> Older posts', 'create'));
                ?>
</div>
				<?php 
            }
            ?>

				<?php 
            if (get_previous_posts_link()) {
                ?>
				<div class="nav-next"><?php 
                previous_posts_link(__('Newer posts <span class="meta-nav">&rarr;</span>', 'create'));
                ?>
</div>
				<?php 
            }
            ?>

			</div><!-- .nav-links -->
		</nav><!-- .navigation -->
	<?php 
        }
    }
Пример #2
0
/**
 * ページナビゲーションを出力
 *
 * @return void
 */
function epigone_paging_nav()
{
    $defaults = array('show_all' => false, 'prev_next' => true, 'prev_text' => __('&laquo; Previous'), 'next_text' => __('Next &raquo;'), 'end_size' => 1, 'mid_size' => 2, 'type' => 'list', 'add_args' => array(), 'add_fragment' => '', 'before_page_number' => '', 'after_page_number' => '');
    echo "<div class='text-center'>";
    the_posts_pagination($defaults);
    echo "</div>";
}
function avocation_pagination()
{
    if (is_single()) {
        the_post_navigation(array('prev_text' => '<div class="avocation_previous_pagination alignleft">%title</div>', 'next_text' => '<div class="avocation_next_pagination alignright">%title</div>'));
    } else {
        the_posts_pagination(array('prev_text' => '<i class="fa fa-angle-double-left"></i>', 'next_text' => '<i class="fa fa-angle-double-right"></i>', 'before_page_number' => '<span class="meta-nav screen-reader-text"></span>'));
    }
}
Пример #4
0
/**
 * Use WordPress archive pagination.
 *
 * Return a paginated navigation to next/previous set of posts, when
 * applicable. Includes screen reader text for better accessibility.
 *
 * @since  1.0.0
 *
 * @see  the_posts_pagination()
 * @return string Markup for pagination links.
 */
function utility_pro_post_pagination()
{
    $args = array('mid_size' => 2, 'before_page_number' => '<span class="screen-reader-text">' . __('Page', 'utility-pro') . ' </span>');
    if ('numeric' === genesis_get_option('posts_nav')) {
        the_posts_pagination($args);
    } else {
        the_posts_navigation($args);
    }
}
Пример #5
0
function multishop_pagination()
{
    ?>
<div class="col-md-12 multishop-default-pagination ">
			<?php 
    if (is_single()) {
        the_post_navigation(array('next_text' => '<span class="multishop_next_pagination meta-nav" aria-hidden="true">%title</span>', 'prev_text' => '<span class="multishop_previous_pagination meta-nav" aria-hidden="true">%title</span>'));
    } else {
        the_posts_pagination(array('prev_text' => __('<<'), 'next_text' => __('>>'), 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('Page', 'multishop') . ' </span>'));
    }
    ?>
</div>
<?php 
}
Пример #6
0
    /**
     * Display navigation to next/previous set of posts when applicable.
     */
    function wimplepro_paging_nav()
    {
        // Don't print empty markup if there's only one page.
        if ($GLOBALS['wp_query']->max_num_pages < 2) {
            return;
        }
        if (ot_get_option('pagination') == 'infinite') {
            wimplepro_infinite_loading('infinite');
        } elseif (ot_get_option('pagination') == 'numberal') {
            // Previous/next page navigation.
            the_posts_pagination(array('prev_text' => __('Previous page', 'themecountry'), 'next_text' => __('Next page', 'themecountry'), 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('Page', 'themecountry') . ' </span>'));
        } elseif (ot_get_option('pagination') == 'loading') {
            wimplepro_infinite_loading();
        } else {
            ?>
	<nav class="navigation paging-navigation" role="navigation">
		<span class="screen-reader-text"><?php 
            _e('Posts navigation', 'themecountry');
            ?>
</span>
		<div class="nav-links">

			<?php 
            if (get_next_posts_link()) {
                ?>
			<div class="nav-previous"><?php 
                next_posts_link(__('<span class="meta-nav">&larr;</span> Older posts', 'themecountry'));
                ?>
</div>
			<?php 
            }
            ?>

			<?php 
            if (get_previous_posts_link()) {
                ?>
			<div class="nav-next"><?php 
                previous_posts_link(__('Newer posts <span class="meta-nav">&rarr;</span>', 'themecountry'));
                ?>
</div>
			<?php 
            }
            ?>

		</div><!-- .nav-links -->
	</nav><!-- .navigation -->
	<?php 
        }
    }
Пример #7
0
function my_ajax_pagination()
{
    $query_vars = json_decode(stripslashes($_POST['query_vars']), true);
    $query_vars['paged'] = $_POST['page'];
    $posts = new WP_Query($query_vars);
    $GLOBALS['wp_query'] = $posts;
    add_filter('editor_max_image_size', 'my_image_size_override');
    if (!$posts->have_posts()) {
        get_template_part('content', 'none');
    } else {
        while ($posts->have_posts()) {
            $posts->the_post();
            get_template_part('content', get_post_format());
        }
    }
    remove_filter('editor_max_image_size', 'my_image_size_override');
    the_posts_pagination(array('prev_text' => __('Previous page', 'twentyfifteen'), 'next_text' => __('Next page', 'twentyfifteen'), 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('Page', 'twentyfifteen') . ' </span>'));
    die;
}
Пример #8
0
    /**
     * Display navigation to next/previous set of posts when applicable.
     */
    function photolab_paging_nav()
    {
        if (function_exists('the_posts_pagination')) {
            the_posts_pagination(array('prev_text' => __('&larr; Previous', 'photolab'), 'next_text' => __('Next &rarr;', 'photolab'), 'screen_reader_text' => ''));
            return;
        }
        global $wp_query, $wp_rewrite;
        // Don't print empty markup if there's only one page.
        if ($wp_query->max_num_pages < 2) {
            return;
        }
        $paged = get_query_var('paged') ? intval(get_query_var('paged')) : 1;
        $pagenum_link = html_entity_decode(get_pagenum_link());
        $query_args = array();
        $url_parts = explode('?', $pagenum_link);
        if (isset($url_parts[1])) {
            wp_parse_str($url_parts[1], $query_args);
        }
        $pagenum_link = remove_query_arg(array_keys($query_args), $pagenum_link);
        $pagenum_link = trailingslashit($pagenum_link) . '%_%';
        $format = $wp_rewrite->using_index_permalinks() && !strpos($pagenum_link, 'index.php') ? 'index.php/' : '';
        $format .= $wp_rewrite->using_permalinks() ? user_trailingslashit($wp_rewrite->pagination_base . '/%#%', 'paged') : '?paged=%#%';
        // Set up paginated links.
        $links = paginate_links(array('base' => $pagenum_link, 'format' => $format, 'total' => $wp_query->max_num_pages, 'current' => $paged, 'mid_size' => 1, 'add_args' => array_map('urlencode', $query_args), 'prev_text' => __('&larr; Previous', 'photolab'), 'next_text' => __('Next &rarr;', 'photolab')));
        if ($links) {
            ?>
	<nav class="navigation paging-navigation" role="navigation">
		<h1 class="screen-reader-text"><?php 
            _e('Posts navigation', 'photolab');
            ?>
</h1>
		<div class="pagination loop-pagination">
			<?php 
            echo $links;
            ?>
		</div><!-- .pagination -->
	</nav><!-- .navigation -->
	<?php 
        }
    }
Пример #9
0
/**
 * Customized Archive Pagination Helper function
 * @since  0.1 
 * @return string HTML output of our pagination
 */
function awesome_pagination()
{
    ?>
	<section class="pagination">
	<?php 
    if (!is_single()) {
        //ARCHIVE
        ?>

		<?php 
        //added in 4.1, so check
        if (function_exists('the_posts_pagination')) {
            //numbered, pretty pagination
            the_posts_pagination(array('prev_text' => '&larr;', 'next_text' => 'Next &rarr;', 'mid_size' => 3));
        } else {
            previous_posts_link('&larr; Newer Posts');
            next_posts_link('Older Posts &rarr;');
        }
        ?>

	<?php 
    } else {
        //SINGLE
        ?>
		
		<?php 
        next_post_link('%link', '&larr; %title');
        //1 newer post
        ?>
		<?php 
        previous_post_link('%link', '%title &rarr;');
        //1 older post
        ?>

	<?php 
    }
    ?>
	</section>
	<?php 
}
Пример #10
0
 /**
  * Display navigation to next/previous set of posts when applicable.
  */
 function simple_life_paging_nav()
 {
     // Don't print empty markup if there's only one page.
     if ($GLOBALS['wp_query']->max_num_pages < 2) {
         return;
     }
     $pagination_type = esc_attr(simple_life_get_option('pagination_type'));
     switch ($pagination_type) {
         case 'numeric':
             if (function_exists('wp_pagenavi')) {
                 wp_pagenavi();
             } else {
                 the_posts_pagination(array('mid_size' => 2, 'prev_text' => '<span class="meta-nav"><i class="fa fa-chevron-left" aria-hidden="true"></i></span> ' . __('Previous page', 'simple-life'), 'next_text' => __('Next page', 'simple-life') . ' <span class="meta-nav"><i class="fa fa-chevron-right" aria-hidden="true"></i></span>', 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('Page', 'simple-life') . ' </span>'));
             }
             break;
         case 'default':
             the_posts_navigation(array('prev_text' => '<span class="meta-nav"><i class="fa fa-chevron-left" aria-hidden="true"></i></span> ' . __('Older posts', 'simple-life'), 'next_text' => __('Newer posts', 'simple-life') . ' <span class="meta-nav"><i class="fa fa-chevron-right" aria-hidden="true"></i></span>'));
             break;
         default:
             break;
     }
 }
Пример #11
0
function proper_post_navigation()
{
    // don't bother for pages
    if (!is_page()) {
        //where multiple posts appear use Hybrid loop_pagination
        if (!is_singular()) {
            the_posts_pagination();
            //otherwise, for single pages, films etc. us WP previous and next post links
        } else {
            ?>
	  		
	  		<nav class="navigation pagination">
	  			<?php 
            previous_post_link('<span class="prev-wrapper">%link</span>');
            next_post_link('<span class="next-wrapper">%link</span>');
            ?>
  			</nav>

			<?php 
        }
        ?>
		<?php 
    }
}
Пример #12
0
        while (have_posts()) {
            the_post();
            ?>
    <?php 
            get_template_part('module_loop_post');
            ?>
    <?php 
        }
        ?>
    </div>
  <?php 
    }
    // extend loop()
    ?>
  <?php 
    the_posts_pagination(array('mid_size' => 1, 'prev_text' => '&laquo;', 'next_text' => '&raquo;', 'type' => 'list', 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('Page', 'lightning') . ' </span>'));
} else {
    ?>
  <div class="well"><p><?php 
    _e('No posts.', 'lightning');
    ?>
</p></div>
<?php 
}
// have_post()
?>

</main><!-- [ /.mainSection ] -->

<div class="col-md-3 col-md-offset-1 subSection">
<?php 
Пример #13
0
				<?php 
        /*
         * Include the Post-Format-specific template for the content.
         * If you want to override this in a child theme, then include a file
         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
         */
        get_template_part('template-parts/content', get_post_format());
        ?>

			<?php 
    }
    ?>

			<?php 
    the_posts_pagination();
    ?>

		<?php 
} else {
    ?>

			<?php 
    get_template_part('template-parts/content', 'none');
    ?>

		<?php 
}
?>

		</main><!-- #main -->
Пример #14
0
    /* Start the Loop */
    ?>
                    <?php 
    while (have_posts()) {
        the_post();
        ?>
                        <?php 
        get_template_part('content', get_post_format());
        ?>
                    <?php 
    }
    ?>
                </div>
			<?php 
    // Previous/next post navigation.
    the_posts_pagination(array('mid_size' => 2, 'prev_text' => __('Back', 'naturo_lite'), 'next_text' => __('Onward', 'naturo_lite')));
    ?>
 
            <?php 
} else {
    ?>
                <?php 
    get_template_part('no-results', 'archive');
    ?>
            <?php 
}
?>
        </section>
       <?php 
get_sidebar();
?>
Пример #15
0
        the_title();
        ?>
</a></h3>
            <?php 
        get_template_part('parts/meta');
        ?>
            <?php 
        get_template_part('parts/excerpt');
        ?>
        </article>

        <?php 
    }
    ?>

    <?php 
} else {
    ?>

        <h2>No posts to display</h2>

    <?php 
}
?>

    <?php 
the_posts_pagination(array('prev_text' => '&larr; Previous', 'next_text' => 'Next &rarr;', 'before_page_number' => '<span class="meta-nav screen-reader-text">Page</span>'));
?>

<?php 
get_footer();
Пример #16
0
	/**
	 * Display navigation to next/previous set of posts when applicable.
	 */
	function storefront_paging_nav() {
		global $wp_query;

		$args = array(
			'type' 	    => 'list',
			'next_text' => _x( 'Next', 'Next post', 'storefront' ) . '&nbsp;<span class="meta-nav">&rarr;</span>',
			'prev_text' => '<span class="meta-nav">&larr;</span>&nbsp' . _x( 'Previous', 'Previous post', 'storefront' ),
			);

		the_posts_pagination( $args );
	}
Пример #17
0
 /**
  * Display a paginated navigation to next/previous set of posts,
  * when applicable.
  *
  * @param array $args Optional. See {@see get_the_posts_pagination()} for available arguments.
  *                    Default empty array.
  */
 function the_pagination_html($args = array())
 {
     the_posts_pagination($args);
 }
Пример #18
0
				<?php 
        /*
         * Include the Post-Format-specific template for the content.
         * If you want to override this in a child theme, then include a file
         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
         */
        get_template_part('template-parts/content', get_post_format());
        ?>

			<?php 
    }
    ?>

			<?php 
    the_posts_pagination(array('prev_text' => '<i class="fa fa-angle-double-left"></i>', 'next_text' => '<i class="fa fa-angle-double-right"></i>'));
    ?>

		<?php 
} else {
    ?>

			<?php 
    get_template_part('template-parts/content', 'none');
    ?>

		<?php 
}
?>

		</main><!-- #main -->
Пример #19
0
    	<?php 
while (have_posts()) {
    the_post();
    ?>
        	<?php 
    get_template_part('templates/content', get_post_type() != 'post' ? get_post_type() : get_post_format());
    ?>
        <?php 
}
?>

        <div class="pagination-container text-center">
            <!--<ul class="pagination">
                <li class="disabled"><a href="#">«</a></li>
                <li class="active"><a href="#">1<span class="sr-only">(current)</span></a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">5</a></li>
                <li><a href="#">»</a></li>
            </ul>//pagination-->

            <?php 
the_posts_pagination(array('mid_size' => 3, 'prev_text' => __('«', 'sage'), 'next_text' => __('»', 'sage')));
?>

        </div> 
        
    </div><!--//container-->
</section><!--//blog-list--> 
Пример #20
0
                    </h2>
                    <p><a href="<?php 
    the_permalink();
    ?>
"><?php 
    the_excerpt();
    ?>
</a></p>
                </li>
            <?php 
}
// End of the loop.
?>
        </ul>
        <?php 
$argsss = array('show_all' => False, 'end_size' => 1, 'mid_size' => 1, 'prev_next' => True, 'prev_text' => __('<'), 'next_text' => __('>'), 'add_args' => False, 'add_fragment' => '', 'screen_reader_text' => __(''));
the_posts_pagination($argsss);
?>
        <?php 
wp_reset_query();
?>
    </main><!-- #main -->
</div><!-- #primary -->

    <div id="secondary2" class="widget-area sidebar" role="complementary">
        <?php 
dynamic_sidebar('sidebar-3');
?>
    </div>
<?php 
get_footer();
Пример #21
0
    /* Start the Loop */
    ?>
                    <?php 
    while (have_posts()) {
        the_post();
        ?>
                        <?php 
        get_template_part('content', get_post_format());
        ?>
                    <?php 
    }
    ?>
                </div>
                <?php 
    // Previous/next post navigation.
    the_posts_pagination(array('mid_size' => 2, 'prev_text' => __('Back', 'skt-befit'), 'next_text' => __('Onward', 'skt-befit')));
    ?>
            <?php 
} else {
    ?>
                <?php 
    get_template_part('no-results', 'archive');
    ?>
            <?php 
}
?>
       </section>
        <div class="sidebar_right">
        <?php 
get_sidebar();
?>
Пример #22
0
    ?>
		</div>
		<div class="c-m8 cpl box_read_more">
			<a href="<?php 
    the_permalink();
    ?>
" title="<?php 
    the_title();
    ?>
" class="link_read_more btn fade-half">
				CONTINUE LENDO
			</a>
		</div>
		<div class="c-m4 cpl interactivity_post">
			<a href="#" title="#" class="box_interactivity">
				<span class="icon icon_interactivity icon_comment fade-fast">&#xe90d;</span>
				<span class="amount_interactivity_post fade-fast"><?php 
    echo $post->comment_count;
    ?>
</span>
			</a>							
			<!-- <a href="#" title="#" class="box_interactivity">
				<span class="icon icon_interactivity icon_share fade-fast">&#xe929;</span>
				<span class="amount_interactivity_post fade-fast">10</span>
			</a> -->
		</div>
	</article>
<?php 
}
the_posts_pagination(array('mid_size' => 4, 'prev_text' => '<span class="icon icon_pagination icon_arrow_prev">&#xe903;</span>', 'next_text' => '<span class="icon icon_pagination icon_arrow_next">&#xe904;</span>'));
			</header><!-- .page-header -->

			<?php 
    // Start the loop.
    while (have_posts()) {
        the_post();
        ?>

				<?php 
        /*
         * Run the loop for the search to output the results.
         * If you want to overload this in a child theme then include a file
         * called content-search.php and that will be used instead.
         */
        get_template_part('content', 'search');
        // End the loop.
    }
    // Previous/next page navigation.
    the_posts_pagination(array('prev_text' => '<< ', 'next_text' => ' >>', 'before_page_number' => '', 'screen_reader_text' => ' '));
    // If no content, include the "No posts found" template.
} else {
    get_template_part('content', 'none');
}
?>

		</main><!-- .site-main -->
	</section><!-- .content-area -->
</div>

<?php 
get_footer();
Пример #24
0
 * If you'd like to further customize these archive views, you may create a
 * new template file for each one. For example, tag.php (Tag archives),
 * category.php (Category archives), author.php (Author archives), etc.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package Skeleton
 */
get_header();
?>

<?php 
single_tag_title('<h1>', '</h1>');
?>

<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        get_template_part('template-parts/content', get_post_format());
    }
    // Previous/next page navigation.
    the_posts_pagination(array('prev_text' => __('Previous page', 'skeleton'), 'next_text' => __('Next page', 'skeleton')));
} else {
    // Nothing found on this tag
    get_template_part('template-parts/content', 'none');
}
?>

<?php 
get_footer();
Пример #25
0
<?php

/**
 * Template part for posts pagination.
 *
 * @package King_News
 */
the_posts_pagination(array('prev_text' => '<i class="material-icons">navigate_before</i> Prev', 'next_text' => 'Next <i class="material-icons">navigate_next</i>'));
        $title .= get_bloginfo('name', 'display');
        // Add the site description for the home/front page.
        $site_description = get_bloginfo('description', 'display');
        if ($site_description && (is_home() || is_front_page())) {
            $title = "{$title} {$sep} {$site_description}";
        }
        // Add a page number if necessary.
        if ($paged >= 2 || $page >= 2) {
            $title = "{$title} {$sep} " . sprintf(__('Page %s', 'clean-simple-white'), max($paged, $page));
        }
        return $title;
    }
    add_filter('wp_title', 'cleansimplewhite_wp_title', 10, 2);
}
if (function_exists('the_posts_pagination')) {
    the_posts_pagination(array('prev_text' => __('Previous', 'clean-simple-white'), 'next_text' => __('Next', 'clean-simple-white'), 'before_page_number' => ''));
} else {
    function the_posts_pagination()
    {
        ?>
        <div class="navigation">
            <div class="nav-previous"><?php 
        next_posts_link(__('<span class="meta-nav">&larr;</span> Older posts', 'clean-simple-white'));
        ?>
</div>
            <div class="nav-next"><?php 
        previous_posts_link(__('Newer posts <span class="meta-nav">&rarr;</span>', 'clean-simple-white'));
        ?>
</div>
        </div>
        <?php 
Пример #27
0
	<div id="content">
		<?php 
if (have_posts()) {
    ?>
			<?php 
    while (have_posts()) {
        the_post();
        ?>
				<?php 
        get_template_part('content', get_post_format());
        ?>
			<?php 
    }
    ?>

			<?php 
    the_posts_pagination(array('mid_size' => 3));
    ?>
		<?php 
}
?>
	</div>

	<?php 
get_sidebar('left');
?>
</div>

<?php 
get_sidebar('right');
get_footer();
Пример #28
0
				<?php 
if (have_posts()) {
    ?>
					<?php 
    if (is_home() && !is_front_page()) {
        ?>
					<!-- code -->
				<?php 
    }
    ?>
				<?php 
    while (have_posts()) {
        the_post();
        get_template_part('template-parts/content', get_post_format());
    }
    the_posts_pagination(array('prev_text' => __('上一页', 'paranoid'), 'next_text' => __('下一页', 'paranoid'), 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('', 'paranoid') . ' </span>'));
} else {
    get_template_part('template-parts/content', 'none');
}
?>
			</div>
			<div class="col-md-4">
				<?php 
get_sidebar();
?>
			</div>
		</div>
	</div>
</div>

<?php 
Пример #29
0
if (have_posts()) {
    while ($the_query->have_posts()) {
        $the_query->the_post();
        ?>
			<?php 
        /*
         * Include the Post-Format-specific template for the content.
         * If you want to override this in a child theme, then include a file
         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
         */
        get_template_part('template-parts/portfolio', get_post_format());
        // End the loop.
    }
    wp_reset_query();
    // Previous/next page navigation.
    the_posts_pagination(array('prev_text' => __('Previous page', 'twentysixteen'), 'next_text' => __('Next page', 'twentysixteen'), 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('Page', 'twentysixteen') . ' </span>'));
    // If no content, include the "No posts found" template.
} else {
    get_template_part('template-parts/content', 'none');
}
?>

			</div>


	</main><!-- .site-main -->



</div><!-- .content-area -->
Пример #30
0
<?php

get_header();
?>
    <main class="main-content row u-clearfix">
        <div class="layoutMultiColumn--primary"role="main">
            <div class="blockGroup">
            <?php 
while (have_posts()) {
    the_post();
    ?>
                    <?php 
    get_template_part('template-parts/content', get_post_format());
    ?>
            <?php 
}
?>
        </div>
            <div class="u-textAlignCenter page-nav">
                <?php 
the_posts_pagination(array('prev_next' => 0, 'before_page_number' => ''));
?>
            </div>
        </div>
        <?php 
get_sidebar();
?>
    </main>
<?php 
get_footer();