2012-01-07 03:25:13 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2016-09-27 06:17:45 +00:00
|
|
|
* The template for displaying archive pages
|
2012-01-07 03:25:13 +00:00
|
|
|
*
|
2015-07-01 15:21:44 +00:00
|
|
|
* @link https://codex.wordpress.org/Template_Hierarchy
|
2012-01-07 03:25:13 +00:00
|
|
|
*
|
|
|
|
* @package _s
|
|
|
|
*/
|
|
|
|
|
|
|
|
get_header(); ?>
|
|
|
|
|
2014-08-17 17:02:35 +00:00
|
|
|
<div id="primary" class="content-area">
|
2017-06-23 16:41:05 +00:00
|
|
|
<main id="main" class="site-main">
|
2013-03-05 00:41:38 +00:00
|
|
|
|
2015-11-11 21:59:40 +00:00
|
|
|
<?php
|
|
|
|
if ( have_posts() ) : ?>
|
2013-03-05 00:41:38 +00:00
|
|
|
|
|
|
|
<header class="page-header">
|
|
|
|
<?php
|
2014-11-12 20:51:21 +00:00
|
|
|
the_archive_title( '<h1 class="page-title">', '</h1>' );
|
2016-04-19 20:24:39 +00:00
|
|
|
the_archive_description( '<div class="archive-description">', '</div>' );
|
2013-03-05 00:41:38 +00:00
|
|
|
?>
|
|
|
|
</header><!-- .page-header -->
|
|
|
|
|
2015-11-11 21:59:40 +00:00
|
|
|
<?php
|
|
|
|
/* Start the Loop */
|
|
|
|
while ( have_posts() ) : the_post();
|
2013-03-05 00:41:38 +00:00
|
|
|
|
2015-11-11 21:59:40 +00:00
|
|
|
/*
|
|
|
|
* 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() );
|
2013-03-05 00:41:38 +00:00
|
|
|
|
2015-11-11 21:59:40 +00:00
|
|
|
endwhile;
|
2013-03-05 00:41:38 +00:00
|
|
|
|
2015-11-11 21:59:40 +00:00
|
|
|
the_posts_navigation();
|
2013-03-05 00:41:38 +00:00
|
|
|
|
2015-11-11 21:59:40 +00:00
|
|
|
else :
|
2013-03-05 00:41:38 +00:00
|
|
|
|
2015-11-11 21:59:40 +00:00
|
|
|
get_template_part( 'template-parts/content', 'none' );
|
2013-03-05 00:41:38 +00:00
|
|
|
|
2015-11-11 21:59:40 +00:00
|
|
|
endif; ?>
|
2013-03-05 00:41:38 +00:00
|
|
|
|
2013-07-30 19:12:45 +00:00
|
|
|
</main><!-- #main -->
|
2014-08-17 17:02:35 +00:00
|
|
|
</div><!-- #primary -->
|
2012-01-07 03:25:13 +00:00
|
|
|
|
2015-11-11 21:59:40 +00:00
|
|
|
<?php
|
|
|
|
get_sidebar();
|
|
|
|
get_footer();
|