-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
30 lines (25 loc) · 979 Bytes
/
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
<?php
/**
* The Template for displaying all single posts.
*
* @since 3.0.0
*/
get_header(); ?>
<div id="primary" <?php mb_primary_attr(); ?> role="main">
<?php while ( have_posts() ) : the_post();
global $mb_content_area;
$mb_content_area = 'main';
get_template_part( 'content', get_post_format() );
?>
<div id="posts-pagination">
<h3 class="assistive-text"><?php _e( 'Post navigation', 'magazine-basic' ); ?></h3>
<div class="previous fl"><?php previous_post_link( '%link', __( '<span class="meta-nav">←</span> %title', 'magazine-basic' ) ); ?></div>
<div class="next fr"><?php next_post_link( '%link', __( '%title <span class="meta-nav">→</span>', 'magazine-basic' ) ); ?></div>
</div><!-- #posts-pagination -->
<?php
if ( 'attachment' != get_post_type( get_the_ID() ) )
comments_template( '', true );
?>
<?php endwhile; // end of the loop. ?>
</div><!-- #primary.c8 -->
<?php get_footer(); ?>