-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingle.php
35 lines (23 loc) · 1.05 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
<?php
get_header(); ?>
<main id="main" role="main" class="main cf postpage<?php if ( is_active_sidebar( 'rightside' ) ): ?> hasside<?php endif; ?>">
<?php while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php get_template_part( 'content', get_post_format() ); ?>
</article>
<div class="post-tags" aria-label="<?php _e( 'Post tags', 'minart' ); ?>">
<?php the_tags( '', '', ''); ?>
</div>
<nav id="nav-single" class="navs" role="navigation" aria-label="<?php _e( 'Posts navigation', 'minart' ); ?>">
<span class="nav-previous"><?php previous_post_link( '%link', __('previous', 'minart') ); ?></span>
<span class="nav-next"><?php next_post_link( '%link', __('next', 'minart') ); ?></span>
</nav><!-- #nav-single -->
<?php
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ):
comments_template();
endif;
endwhile; ?>
</main> <!-- end main -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>