Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 99 lines (79 sloc) 5.235 kb
7c61a6d initial checkin
sjwilliams authored
1 <?php
2 /*
3 Most article pages will load the default page template below.
4 Howerver, there are times we want to load special templates.
5 loadSpecialSingle() is wrapper function to the
6 calPressSpecialSingle hook.
7 */
8 if(!loadSpecialSingle()){
9 get_header() ?>
10
11 <div id="content" class="grid_8 alpha">
12
13 <?php the_post() ?>
14
15 <div id="nav-above" class="navigation">
16 <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&laquo;</span> %title' ) ?></div>
17 <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&raquo;</span>' ) ?></div>
18 </div>
19
599eab9 moved comments and twitter search from single.php to hook used in single...
sjwilliams authored
20 <?php calpress_hook_post_above(); ?>
21
86c1c91 changed all sandbox_post_class to calpress_post_class wrapper
sjwilliams authored
22 <div id="post-<?php the_ID() ?>" class="<?php calpress_post_class() ?>">
7c61a6d initial checkin
sjwilliams authored
23 <h2 class="entry-title"><?php the_title() ?></h2>
24
25 <?php calpress_leadart(); ?>
26
27 <div class="entry-shortmeta">
28 <?php edit_post_link( __( 'Edit', 'sandbox' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?>
29 <?php calpress_bylines($authordata); ?>
30 <span class="meta-sep">|</span>
31 <span class="entry-date">
32 <abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php unset($previousday); printf( __( '%1$s &#8211; %2$s', 'sandbox' ), the_date( '', '', '', false ), get_the_time() ) ?></abbr>
33 </span>
34 <span class="meta-sep">|</span>
35 <span class="entry-categories">Filed Under: <?php the_category(', '); ?></span>
36 </div>
37
38 <?php calpress_sharethis(); ?>
39
40 <div class="entry-content">
599eab9 moved comments and twitter search from single.php to hook used in single...
sjwilliams authored
41 <?php calpress_hook_postcontent_above(); ?>
4868f7b added single.php content hooks
sjwilliams authored
42
7c61a6d initial checkin
sjwilliams authored
43 <?php the_content(); ?>
4868f7b added single.php content hooks
sjwilliams authored
44
599eab9 moved comments and twitter search from single.php to hook used in single...
sjwilliams authored
45 <?php calpress_hook_postcontent_below(); ?>
4868f7b added single.php content hooks
sjwilliams authored
46
7c61a6d initial checkin
sjwilliams authored
47 <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'sandbox' ) . '&after=</div>') ?>
48 </div>
49
50 <div class="clear"></div>
51 <div class="entry-categories"><p>Filed Under: <?php the_category(', '); ?></p></div>
52 <div class="entry-tags"><p><?php the_tags('Tagged: ',' , ',''); ?></p></div>
53 <div class="entry-meta">
54 <?php printf( __( 'This entry was written by %1$s, posted on <abbr class="published" title="%2$sT%3$s">%4$s at %5$s</abbr>, filed under %6$s%7$s. Bookmark the <a href="%8$s" title="Permalink to %9$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%10$s" title="Comments RSS to %9$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'sandbox' ),
55 '<span class="author vcard"><a class="url fn n" href="' . get_author_link( false, $authordata->ID, $authordata->user_nicename ) . '" title="' . sprintf( __( 'View all posts by %s', 'sandbox' ), $authordata->display_name ) . '">' . get_the_author() . '</a></span>',
56 get_the_time('Y-m-d'),
57 get_the_time('H:i:sO'),
58 the_date( '', '', '', false ),
59 get_the_time(),
60 get_the_category_list(', '),
61 get_the_tag_list( __( ' and tagged ', 'sandbox' ), ', ', '' ),
62 get_permalink(),
63 the_title_attribute('echo=0'),
64 comments_rss() ) ?>
65
66 <?php if ( ('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Comments and trackbacks open ?>
67 <?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'sandbox' ), get_trackback_url() ) ?>
68 <?php elseif ( !('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Only trackbacks open ?>
69 <?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'sandbox' ), get_trackback_url() ) ?>
70 <?php elseif ( ('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Only comments open ?>
71 <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'sandbox' ) ?>
72 <?php elseif ( !('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Comments and trackbacks closed ?>
73 <?php _e( 'Both comments and trackbacks are currently closed.', 'sandbox' ) ?>
74 <?php endif; ?>
75 <?php edit_post_link( __( 'Edit', 'sandbox' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?>
76
77 </div>
78
79 </div><!-- .post -->
80
81 <div id="nav-below" class="navigation">
3cc5479 ie fixes, new lead art layout
sjwilliams authored
82 <div class="nav-previous"><?php next_posts_link(__( 'Older posts <span class="meta-nav">&raquo;</span>', 'sandbox' )) ?></div>
83 <div class="nav-next"><?php previous_posts_link(__( '<span class="meta-nav">&laquo;</span>Newer posts', 'sandbox' )) ?></div>
7c61a6d initial checkin
sjwilliams authored
84 <div class="clear"></div>
85 </div>
86
599eab9 moved comments and twitter search from single.php to hook used in single...
sjwilliams authored
87 <?php
88 // Includes by default calpress_twittersearch() and comments_template()
89 // see template-builder.php for default list
90 calpress_hook_post_below();
91 ?>
7c61a6d initial checkin
sjwilliams authored
92
93 </div><!-- #content -->
94 <?php get_sidebar() ?>
95
96 <?php
97 get_footer();
98 }
99 ?>
Something went wrong with that request. Please try again.