Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 107 lines (75 sloc) 3.072 kb
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
1 <?php
2 /**
3 * Template Name: Archives
4 *
5 * A custom page template for displaying blog archives.
6 *
bda9730 @jayj PHPDoc changes. You can browse the documentation on http://wpthemes.jayj...
authored
7 * @package Cakifo
8 * @subpackage Template
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
9 */
10
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvement...
authored
11 get_header(); // Loads the header.php template ?>
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
12
13 <?php do_atomic( 'before_main' ); // cakifo_before_main ?>
14
0116328 @jayj Spacing clean ups
authored
15 <div id="main">
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
16
0116328 @jayj Spacing clean ups
authored
17 <?php do_atomic( 'open_main' ); // cakifo_open_main ?>
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
18
19 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
20
21 <?php do_atomic( 'before_entry' ); //cakifo_before_entry ?>
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvement...
authored
22
0116328 @jayj Spacing clean ups
authored
23 <article id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvement...
authored
24
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
25 <?php do_atomic( 'open_entry' ); //cakifo_open_entry ?>
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvement...
authored
26
0116328 @jayj Spacing clean ups
authored
27 <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvement...
authored
28
0116328 @jayj Spacing clean ups
authored
29 <?php
3fb3ddb @jayj Inline documentation improvements
authored
30 // Get the thumbnail
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvement...
authored
31 if ( current_theme_supports( 'get-the-image' ) )
32 get_the_image( array(
0116328 @jayj Spacing clean ups
authored
33 'meta_key' => 'Thumbnail',
34 'size' => 'thumbnail',
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvement...
authored
35 'attachment' => false
36 ) );
37 ?>
38
39 <div class="entry-content">
d5b6def @jayj Make the Cakifo textdomain static due to changes in Hybrid Core
authored
40 <?php the_content( __( 'Continue reading <span class="meta-nav">&raquo;</span>', 'cakifo' ) ); ?>
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvement...
authored
41
42 <?php do_atomic( 'before_archives' ); //cakifo_before_archives ?>
43
d5b6def @jayj Make the Cakifo textdomain static due to changes in Hybrid Core
authored
44 <h2><?php _e( 'Archives by category', 'cakifo' ); ?></h2>
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvement...
authored
45
46 <ul class="xoxo category-archives">
47 <?php
48 wp_list_categories( array(
0116328 @jayj Spacing clean ups
authored
49 'show_count' => true,
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvement...
authored
50 'use_desc_for_title' => false,
0116328 @jayj Spacing clean ups
authored
51 'title_li' => false
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvement...
authored
52 ) );
53 ?>
54 </ul> <!-- .xoxo .category-archives -->
55
d5b6def @jayj Make the Cakifo textdomain static due to changes in Hybrid Core
authored
56 <h2><?php _e( 'Archives by month', 'cakifo' ); ?></h2>
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvement...
authored
57
58 <ul class="xoxo monthly-archives">
59 <?php
60 wp_get_archives( array(
61 'show_post_count' => true,
0116328 @jayj Spacing clean ups
authored
62 'type' => 'monthly'
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvement...
authored
63 ) );
64 ?>
65 </ul> <!-- .xoxo .monthly-archives -->
66
67 <?php do_atomic( 'after_archives' ); //cakifo_after_archives ?>
68
d5b6def @jayj Make the Cakifo textdomain static due to changes in Hybrid Core
authored
69 <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'cakifo' ), 'after' => '</p>' ) ); ?>
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvement...
authored
70 </div> <!-- .entry-content -->
71
0116328 @jayj Spacing clean ups
authored
72 <?php edit_post_link( __( 'Edit', 'cakifo' ), '<div class="entry-meta">', '</div>' ); ?>
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
73
0116328 @jayj Spacing clean ups
authored
74 <div class="clear"></div>
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvement...
authored
75
0116328 @jayj Spacing clean ups
authored
76 <?php do_atomic( 'close_entry' ); //cakifo_close_entry ?>
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvement...
authored
77
0116328 @jayj Spacing clean ups
authored
78 </article> <!-- #post-<?php the_ID(); ?> -->
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvement...
authored
79
0116328 @jayj Spacing clean ups
authored
80 <?php do_atomic( 'after_entry' ); //cakifo_after_entry ?>
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
81
0116328 @jayj Spacing clean ups
authored
82 <?php do_atomic( 'after_singular' ); // cakifo_after_singular ?>
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
83
84 <?php
3fb3ddb @jayj Inline documentation improvements
authored
85 /**
86 * Show comments on singular pages? (not single posts)
87 *
88 * On by default. Disable in child theme with
89 * add_filter( 'show_singular_comments', '__return_false' );
90 */
91 $display = apply_filters( 'show_singular_comments', true );
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvement...
authored
92
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
93 if ( $display )
94 comments_template( '/comments.php', true ); // Loads the comments.php template
0116328 @jayj Spacing clean ups
authored
95 ?>
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
96
0116328 @jayj Spacing clean ups
authored
97 <?php endwhile; ?>
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
98
0116328 @jayj Spacing clean ups
authored
99 <?php do_atomic( 'close_main' ); // cakifo_close_main ?>
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
100
0116328 @jayj Spacing clean ups
authored
101 <?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template ?>
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
102
0116328 @jayj Spacing clean ups
authored
103 </div> <!-- #main -->
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
104
0116328 @jayj Spacing clean ups
authored
105 <?php do_atomic( 'after_main' ); // cakifo_after_main ?>
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvement...
authored
106
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
107 <?php get_footer(); // Loads the footer.php template ?>
Something went wrong with that request. Please try again.