Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 99 lines (79 sloc) 5.11 KB
<?php
/*
Most article pages will load the default page template below.
Howerver, there are times we want to load special templates.
loadSpecialSingle() is wrapper function to the
calPressSpecialSingle hook.
*/
if(!loadSpecialSingle()){
get_header() ?>
<div id="content" class="grid_8 alpha">
<?php the_post() ?>
<div id="nav-above" class="navigation">
<div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&laquo;</span> %title' ) ?></div>
<div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&raquo;</span>' ) ?></div>
</div>
<?php calpress_hook_post_above(); ?>
<div id="post-<?php the_ID() ?>" class="<?php calpress_post_class() ?>">
<h2 class="entry-title"><?php the_title() ?></h2>
<?php calpress_leadart(); ?>
<div class="entry-shortmeta">
<?php edit_post_link( __( 'Edit', 'sandbox' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?>
<?php calpress_bylines($authordata); ?>
<span class="meta-sep">|</span>
<span class="entry-date">
<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>
</span>
<span class="meta-sep">|</span>
<span class="entry-categories">Filed Under: <?php the_category(', '); ?></span>
</div>
<?php calpress_sharethis(); ?>
<div class="entry-content">
<?php calpress_hook_postcontent_above(); ?>
<?php the_content(); ?>
<?php calpress_hook_postcontent_below(); ?>
<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'sandbox' ) . '&after=</div>') ?>
</div>
<div class="clear"></div>
<div class="entry-categories"><p>Filed Under: <?php the_category(', '); ?></p></div>
<div class="entry-tags"><p><?php the_tags('Tagged: ',' , ',''); ?></p></div>
<div class="entry-meta">
<?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' ),
'<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>',
get_the_time('Y-m-d'),
get_the_time('H:i:sO'),
the_date( '', '', '', false ),
get_the_time(),
get_the_category_list(', '),
get_the_tag_list( __( ' and tagged ', 'sandbox' ), ', ', '' ),
get_permalink(),
the_title_attribute('echo=0'),
comments_rss() ) ?>
<?php if ( ('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Comments and trackbacks open ?>
<?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() ) ?>
<?php elseif ( !('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Only trackbacks open ?>
<?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() ) ?>
<?php elseif ( ('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Only comments open ?>
<?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'sandbox' ) ?>
<?php elseif ( !('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Comments and trackbacks closed ?>
<?php _e( 'Both comments and trackbacks are currently closed.', 'sandbox' ) ?>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'sandbox' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?>
</div>
</div><!-- .post -->
<div id="nav-below" class="navigation">
<div class="nav-previous"><?php next_posts_link(__( 'Older posts <span class="meta-nav">&raquo;</span>', 'sandbox' )) ?></div>
<div class="nav-next"><?php previous_posts_link(__( '<span class="meta-nav">&laquo;</span>Newer posts', 'sandbox' )) ?></div>
<div class="clear"></div>
</div>
<?php
// Includes by default calpress_twittersearch() and comments_template()
// see template-builder.php for default list
calpress_hook_post_below();
?>
</div><!-- #content -->
<?php get_sidebar() ?>
<?php
get_footer();
}
?>