-
Notifications
You must be signed in to change notification settings - Fork 6
/
page-archives.php
81 lines (51 loc) · 2.43 KB
/
page-archives.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
/**
* Template Name: Archives
*
* This will list your categories and monthly archives by default.
* @link http://themehybrid.com/themes/hybrid/page-templates/archives
*
* Alternately, you can activate an archives plugin.
* @link http://justinblanton.com/projects/smartarchives
* @link http://wordpress.org/extend/plugins/clean-archives-reloaded
* @link http://www.geekwithlaptop.com/projects/clean-archives
*
* @package Hybrid
* @subpackage Template
*/
get_header(); ?>
<div id="content" class="hfeed content">
<?php do_atomic( 'before_content' ); // Before content hook ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
<?php do_atomic( 'before_entry' ); // Before entry hook ?>
<div class="entry-content">
<?php the_content(); ?>
<?php if ( function_exists( 'smartArchives' ) ) : smartArchives( 'both', '' ); ?>
<?php elseif ( function_exists( 'wp_smart_archives' ) ) : wp_smart_archives(); ?>
<?php elseif ( function_exists( 'srg_clean_archives' ) ) : srg_clean_archives(); ?>
<?php else : ?>
<h2><?php _e( 'Archives by category', 'hybrid' ); ?></h2>
<ul class="xoxo category-archives">
<?php wp_list_categories( array( 'feed' => __( 'RSS', 'hybrid' ), 'show_count' => true, 'use_desc_for_title' => false, 'title_li' => false ) ); ?>
</ul><!-- .xoxo .category-archives -->
<h2><?php _e( 'Archives by month', 'hybrid' ); ?></h2>
<ul class="xoxo monthly-archives">
<?php wp_get_archives( array( 'show_post_count' => true, 'type' => 'monthly' ) ); ?>
</ul><!-- .xoxo .monthly-archives -->
<?php endif; ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links pages">' . __( 'Pages:', 'hybrid' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
<?php do_atomic( 'after_entry' ); // After entry hook ?>
</div><!-- .hentry -->
<?php do_atomic( 'after_singular' ); // After singular hook ?>
<?php comments_template( '/comments.php', true ); ?>
<?php endwhile; ?>
<?php else: ?>
<p class="no-data">
<?php _e( 'Apologies, but no results were found.', 'hybrid' ); ?>
</p><!-- .no-data -->
<?php endif; ?>
<?php do_atomic( 'after_content' ); // After content hook ?>
</div><!-- .content .hfeed -->
<?php get_footer(); ?>