forked from inevernu/lighter-bones
-
Notifications
You must be signed in to change notification settings - Fork 0
/
single_post-content.php
26 lines (22 loc) · 1.17 KB
/
single_post-content.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
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> role="article">
<header>
<?php if(is_single()): ?>
<h2 class="single-title"><?php the_title(); ?></h2>
<?php else: ?>
<h2 class="single-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php endif; ?>
<p class="meta"><?php _e("Posted", "bonestheme"); ?> <time datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_time('F jS, Y'); ?></time> <?php _e("by", "bonestheme"); ?> <?php the_author_posts_link(); ?> <span class="amp">&</span> <?php _e("filed under", "bonestheme"); ?> <?php the_category(', '); ?>.</p>
</header><!-- end article header -->
<section class="post_content">
<?php
if(isset($contentlength) && $contentlength != 'archive'):
the_content();
else:
the_post_thumbnail( 'bones-thumb-300' );
the_excerpt();
endif; ?>
</section><!-- end article section -->
<footer>
<?php the_tags('<p class="tags"><span class="tags-title">Tags:</span> ', ', ', '</p>'); ?>
</footer><!-- end article footer -->
</article><!-- end article -->