2013-02-19 00:08:56 +01:00
|
|
|
<?php
|
|
|
|
/**
|
2013-09-20 21:34:10 +02:00
|
|
|
* The template for displaying Archive pages
|
2013-02-19 00:08:56 +01:00
|
|
|
*
|
|
|
|
* Used to display archive-type pages if nothing more specific matches a query.
|
|
|
|
* For example, puts together date-based pages if no date.php file exists.
|
|
|
|
*
|
|
|
|
* If you'd like to further customize these archive views, you may create a
|
|
|
|
* new template file for each specific one. For example, Twenty Thirteen
|
|
|
|
* already has tag.php for Tag archives, category.php for Category archives,
|
|
|
|
* and author.php for Author archives.
|
|
|
|
*
|
2019-01-09 06:09:51 +01:00
|
|
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
2013-02-19 00:08:56 +01:00
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Twenty_Thirteen
|
|
|
|
* @since Twenty Thirteen 1.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
get_header(); ?>
|
|
|
|
|
|
|
|
<div id="primary" class="content-area">
|
|
|
|
<div id="content" class="site-content" role="main">
|
|
|
|
|
|
|
|
<?php if ( have_posts() ) : ?>
|
|
|
|
<header class="archive-header">
|
2017-12-01 00:11:00 +01:00
|
|
|
<h1 class="archive-title">
|
|
|
|
<?php
|
2019-07-09 03:10:00 +02:00
|
|
|
if ( is_day() ) {
|
2019-09-03 02:41:05 +02:00
|
|
|
/* translators: %s: Date. */
|
2017-12-01 00:11:00 +01:00
|
|
|
printf( __( 'Daily Archives: %s', 'twentythirteen' ), get_the_date() );
|
2019-07-09 03:10:00 +02:00
|
|
|
} elseif ( is_month() ) {
|
2019-09-03 02:41:05 +02:00
|
|
|
/* translators: %s: Date. */
|
2019-07-09 03:10:00 +02:00
|
|
|
printf( __( 'Monthly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentythirteen' ) ) );
|
|
|
|
} elseif ( is_year() ) {
|
2019-09-03 02:41:05 +02:00
|
|
|
/* translators: %s: Date. */
|
2019-07-09 03:10:00 +02:00
|
|
|
printf( __( 'Yearly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentythirteen' ) ) );
|
|
|
|
} else {
|
|
|
|
_e( 'Archives', 'twentythirteen' );
|
|
|
|
}
|
|
|
|
?>
|
2017-12-01 00:11:00 +01:00
|
|
|
</h1>
|
2013-02-19 00:08:56 +01:00
|
|
|
</header><!-- .archive-header -->
|
|
|
|
|
2017-12-01 00:11:00 +01:00
|
|
|
<?php
|
2020-01-29 01:45:18 +01:00
|
|
|
// Start the loop.
|
2017-12-01 00:11:00 +01:00
|
|
|
while ( have_posts() ) :
|
|
|
|
the_post();
|
2018-08-17 03:51:36 +02:00
|
|
|
?>
|
2013-02-19 00:08:56 +01:00
|
|
|
<?php get_template_part( 'content', get_post_format() ); ?>
|
|
|
|
<?php endwhile; ?>
|
|
|
|
|
|
|
|
<?php twentythirteen_paging_nav(); ?>
|
|
|
|
|
|
|
|
<?php else : ?>
|
|
|
|
<?php get_template_part( 'content', 'none' ); ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
</div><!-- #content -->
|
|
|
|
</div><!-- #primary -->
|
|
|
|
|
|
|
|
<?php get_sidebar(); ?>
|
2015-04-12 23:29:32 +02:00
|
|
|
<?php get_footer(); ?>
|