forked from rotarytheme/rotary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
loop-single.php
41 lines (39 loc) · 1.61 KB
/
loop-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
<?php
/**
* The loop that displays a single post.
*
* @package WordPress
* @subpackage Rotary
* @since Rotary HTML5 3.2
*/
?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<nav class="prevnext <?php echo $sidebar;?>">
<div class="nav-previous"><?php previous_post_link( '%link', '' . _x( '<', 'Previous post link', 'Rotary' ) . ' %title' ); ?></div>
<div class="nav-next"><?php next_post_link( '%link', '%title ' . _x( '>', 'Next post link', 'Rotary' ) . '' ); ?></div>
</nav>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="sectioncontainer">
<div class="sectionheader" id="blog">
<div class="sectioncontent">
<?php the_title('<h2>', '</h2>'); ?>
<p id="posted-by">Posted By <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ))?>"><?php echo get_the_author(); ?></a></p>
<div class="postdate">
<?php Rotary_posted_on(); ?>
</div>
<hr/>
<div class="blogcontent">
<?php the_content(); ?>
</div>
<?php Rotary_posted_in(); ?>
<hr/>
<?php comments_template( '', true ); ?>
</div><!--.sectioncontent-->
</div> <!--.sectionheader-->
</div><!--.sectioncontainer-->
<footer>
<?php //Rotary_posted_in(); ?>
<?php edit_post_link( __( 'Edit', 'Rotary' ), '', '' ); ?>
</footer>
</article>
<?php endwhile; // end of the loop ?>