Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 101 lines (71 sloc) 3.025 kB
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
1 <?php
2 /**
3 * Template Name: Bookmarks
4 *
5 * A custom page template for displaying the site's bookmarks/links.
6 *
3fb3ddb @jayj Inline documentation improvements
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 improvem…
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
15 <div id="main">
16
17 <?php do_atomic( 'open_main' ); // cakifo_open_main ?>
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 improvem…
authored
22
55ab7d5 @jayj Better attachment page
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 improvem…
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 improvem…
authored
26
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
27 <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvem…
authored
28
29 <?php
3fb3ddb @jayj Inline documentation improvements
authored
30 // Get the thumbnail
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvem…
authored
31 if ( current_theme_supports( 'get-the-image' ) )
32 get_the_image( array(
33 'meta_key' => 'Thumbnail',
34 'size' => 'thumbnail',
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 improvem…
authored
41
42 <?php do_atomic( 'before_bookmarks' ); //cakifo_before_bookmarks ?>
43
44 <?php
45 $args = array(
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
46 'title_li' => false,
47 'title_before' => '<h2>',
48 'title_after' => '</h2>',
49 'category_before' => false,
50 'category_after' => false,
51 'categorize' => true,
52 'show_description' => true,
53 'between' => '<br />',
54 'show_images' => false,
55 'show_rating' => false,
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvem…
authored
56 );
57
3fb3ddb @jayj Inline documentation improvements
authored
58 wp_list_bookmarks( $args );
59 ?>
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvem…
authored
60
61 <?php do_atomic( 'after_bookmarks' ); //cakifo_after_bookmarks ?>
62
d5b6def @jayj Make the Cakifo textdomain static due to changes in Hybrid Core
authored
63 <?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 improvem…
authored
64 </div> <!-- .entry-content -->
65
d5b6def @jayj Make the Cakifo textdomain static due to changes in Hybrid Core
authored
66 <?php edit_post_link( __( 'Edit', 'cakifo' ), '<div class="entry-meta">', '</div>' ); ?>
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
67
68 <div class="clear"></div>
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvem…
authored
69
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
70 <?php do_atomic( 'close_entry' ); //cakifo_close_entry ?>
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvem…
authored
71
55ab7d5 @jayj Better attachment page
authored
72 </article> <!-- #post-<?php the_ID(); ?> -->
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvem…
authored
73
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
74 <?php do_atomic( 'after_entry' ); //cakifo_after_entry ?>
75
76 <?php do_atomic( 'after_singular' ); // cakifo_after_singular ?>
77
78 <?php
3fb3ddb @jayj Inline documentation improvements
authored
79 /**
80 * Show comments on singular pages? (not single posts)
81 *
82 * On by default. Disable in child theme with
83 * add_filter( 'show_singular_comments', '__return_false' );
84 */
85 $display = apply_filters( 'show_singular_comments', true );
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvem…
authored
86
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
87 if ( $display )
88 comments_template( '/comments.php', true ); // Loads the comments.php template
89 ?>
90
91 <?php endwhile; ?>
92
93 <?php do_atomic( 'close_main' ); // cakifo_close_main ?>
94
95 <?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template ?>
96
97 </div> <!-- #main -->
98
99 <?php do_atomic( 'after_main' ); // cakifo_after_main ?>
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvem…
authored
100
999c5d4 @jayj 404 page, archives template, bookmarks template
authored
101 <?php get_footer(); // Loads the footer.php template ?>
Something went wrong with that request. Please try again.