Skip to content
Newer
Older
100644 58 lines (36 sloc) 1.52 KB
6ef4166 Moving the /themes/hybrid project online. We'll lose all of our revis…
greenshady authored Apr 7, 2010
1 <?php
2 /**
3 * Template Name: Yearly
4 *
5 * The Yearly page template is used to show a list of your post archives by year. For each year a
6 * post has been made, the year is listed along with the number of posts for that particular year.
7 *
8 * @package Hybrid
9 * @subpackage Template
10 */
11
12 get_header(); ?>
13
14 <div id="content" class="hfeed content">
15
16 <?php hybrid_before_content(); // Before content hook ?>
17
18 <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
19
20 <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
21
22 <?php hybrid_before_entry(); // Before entry hook ?>
23
24 <div class="entry-content">
25
26 <?php the_content(); ?>
27
28 <ul class="xoxo yearly-archives">
29 <?php wp_get_archives( array( 'type' => 'yearly', 'show_post_count' => true ) ); ?>
30 </ul><!-- .xoxo .yearly-archives -->
31
32 <?php wp_link_pages( array( 'before' => '<p class="pages">' . __( 'Pages:', 'hybrid' ), 'after' => '</p>' ) ); ?>
33
34 </div><!-- .entry-content -->
35
36 <?php hybrid_after_entry(); // After entry hook ?>
37
38 </div><!-- .hentry -->
39
40 <?php hybrid_after_singular(); // After singular hook ?>
41
42 <?php comments_template( '/comments.php', true ); ?>
43
44 <?php endwhile; ?>
45
46 <?php else: ?>
47
48 <p class="no-data">
49 <?php _e( 'Sorry, no page matched your criteria.', 'hybrid' ); ?>
50 </p><!-- .no-data -->
51
52 <?php endif; ?>
53
54 <?php hybrid_after_content(); // After content hook ?>
55
56 </div><!-- .content .hfeed -->
57
58 <?php get_footer(); ?>
Something went wrong with that request. Please try again.