forked from AndorChen/V2Press
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-single.php
36 lines (31 loc) · 1.18 KB
/
content-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
<?php
/**
* Single topic template.
*
* @since 0.0.1
*/
get_header(); ?>
<div id="main">
<section id="single-topic-box" class="box">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article id="topic-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="heading">
<p class="xlarge"><?php vp_breadcrumb(); ?></p>
<h1 class="topic-title"><?php the_title(); ?></h1>
<?php vp_the_author_avatar_link( 72 ); ?>
<p><span class="topic-meta"><?php printf( __( 'By %1$s at %2$s', 'v2press' ), vp_get_the_author_profile_link(), vp_time_ago( false ) ); ?></span> <?php vp_edit_topic_links(); ?></p>
</div>
<div class="inner topic-content">
<?php the_content(); ?>
<?php vp_bookmark(); ?>
</div>
</article>
<?php endwhile; ?>
<?php else : // No topics yet ?>
<?php get_template_part( 'content', 'zero' ); ?>
<?php endif; // END if have_posts() ?>
</section>
<?php comments_template(); ?>
</div><!--END #main-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>