-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
83 lines (68 loc) · 2.65 KB
/
single.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
/**
* Page for displaying a single post.
*/
?>
<?php get_header(); ?>
<article id="content" class="grid_8" role="main">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class('clearfix post-content'); ?>>
<header>
<?php if (get_post_type($post) == 'jiffypost'): ?>
<h1 class="entry-title"><a href="<?php sw_headline_link(); ?>"><?php the_title(); ?></a></h1>
<?php else: ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php endif; ?>
<ul class="labels">
<?php argo_the_post_labels( get_the_ID() ); ?>
</ul>
<div class="post-metadata clearfix">
<div class="grid_3 alpha">
<h6 class="entry-date"><?php argo_posted_on(); ?> </h6>
<?php if (get_post_type($post) != 'jiffypost'): ?>
<h6>By
<?php
if (function_exists('coauthors_posts_links')):
coauthors_posts_links();
else:
the_author_posts_link();
endif; ?>
</h6>
<?php endif; ?>
</div>
<?php if (get_post_type($post) != 'jiffypost'): ?>
<div class="grid_5 omega">
<?php get_template_part( 'post', 'meta' ); ?>
</div>
<?php endif; ?>
<div class="clearfix"></div>
</div> <!-- /.post-metadata-->
<div class="clearfix"></div>
<?php if (function_exists('the_subheading')) { the_subheading('<p>', '</p>'); } ?>
</header><!-- / entry header -->
<?php the_content(); ?>
<?php /* Widget Area for adding state-specific content to bottom of posts, i.e. fundraising/donation text */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Post Bottom') ) : ?><?php endif; ?>
</div> <!-- #post-## -->
<?php do_action('after_the_content'); ?>
<?php if (get_post_type($post) != 'jiffypost'): ?>
<article id="comments" class="article-comments clearfix">
<h2 id="respond">Comments</h2>
<?php comments_template( '', true ); ?>
</article><!-- / comments -->
<?php endif; ?>
<nav>
<ul class="post-nav clearfix">
<?php if ( get_next_post() ): ?>
<li class="n-post"><h5>Next Post</h5><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link' ) . '</span>' ); ?></li>
<?php endif; ?>
<?php if ( get_previous_post() ): ?>
<li class="p-post"><h5>Previous Post</h5><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link' ) . '</span> %title' ); ?></li>
<?php endif; ?>
</ul></nav><!-- .post-nav -->
<?php endwhile; // end of the loop. ?>
</article><!-- / #content .grid8 -->
<aside id="sidebar" class="grid_4">
<?php get_sidebar('post'); ?>
</aside> <!-- /.grid_4 -->
<?php get_footer(); ?>