portage/archive.php

49 lines
1.2 KiB
PHP
Raw Normal View History

2021-08-01 17:32:46 +00:00
<?php
/**
* The archive template file.
*
* Displays generic archives.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
2021-08-01 17:52:14 +00:00
* @package Portage
2021-08-01 17:32:46 +00:00
*/
get_header();
?>
<div id="content">
<div id="archive-title">
<?php if ( is_day() ) : ?>
2021-08-01 17:52:14 +00:00
<?php printf( __( 'Daily Archive for %s', 'portage' ), '<span>' . get_the_date() . '</span>' ); ?>
2021-08-01 17:32:46 +00:00
<?php elseif ( is_month() ) : ?>
2021-08-01 17:52:14 +00:00
<?php printf( __( 'Monthly Archive for %s', 'portage' ),
2021-08-01 17:32:46 +00:00
/* translators: F will be replaced with month, and Y will be replaced with year, so "F Y" in English would be replaced with something like "June 2008". */
2021-08-01 17:52:14 +00:00
'<span>' . get_the_date( __( 'F Y', 'portage' ) ) . '</span>' ); ?>
2021-08-01 17:32:46 +00:00
<?php elseif ( is_year() ) : ?>
2021-08-01 17:52:14 +00:00
<?php printf(__( 'Yearly Archive for %s', 'portage' ), '<span>' . get_the_date( 'Y' ) . '</span>' ); ?>
2021-08-01 17:32:46 +00:00
<?php else : ?>
2021-08-01 17:52:14 +00:00
<?php _e( 'Blog Archive', 'portage' ); ?>
2021-08-01 17:32:46 +00:00
<?php endif; ?>
</div>
<!-- Start the loop -->
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'formats/excerpt', get_post_format() ); ?>
<!-- End the loop -->
<?php endwhile; ?>
<?php endif; ?>
<?php atticus_finch_display_nav(); ?>
</div> <!-- end Content -->
<?php get_sidebar(); ?>
<div class="clear"></div>
<?php get_footer(); ?>