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