-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
executable file
·48 lines (37 loc) · 1.28 KB
/
archive.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* The archive template file.
*
* Displays generic archives.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package Atticus Finch
*/
get_header();
?>
<div id="content">
<div id="archive-title">
<?php if ( is_day() ) : ?>
<?php printf( __( 'Daily Archive for %s', 'atticus-finch' ), '<span>' . get_the_date() . '</span>' ); ?>
<?php elseif ( is_month() ) : ?>
<?php printf( __( 'Monthly Archive for %s', 'atticus-finch' ),
/* 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". */
'<span>' . get_the_date( __( 'F Y', 'atticus-finch' ) ) . '</span>' ); ?>
<?php elseif ( is_year() ) : ?>
<?php printf(__( 'Yearly Archive for %s', 'atticus-finch' ), '<span>' . get_the_date( 'Y' ) . '</span>' ); ?>
<?php else : ?>
<?php _e( 'Blog Archive', 'atticus-finch' ); ?>
<?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(); ?>