forked from nicolas-van/wordpress-simple-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
28 lines (18 loc) · 900 Bytes
/
single.php
File metadata and controls
28 lines (18 loc) · 900 Bytes
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
<?php get_template_part( 'content', 'standard-top' ); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php simple_boostrap_display_post(['show_meta' => true]); ?>
<?php comments_template('',true); ?>
<?php if (get_next_post() || get_previous_post()) { ?>
<nav class="section">
<ul class="pager pager-unspaced">
<li class="previous"><?php previous_post_link('%link', '<span class="glyphicon glyphicon-chevron-left"></span> ' . __( 'Previous Post', "default")); ?></li>
<li class="next"><?php next_post_link('%link', __( 'Next Post', "default") . ' <span class="glyphicon glyphicon-chevron-right"></span>'); ?></li>
</ul>
</nav>
<?php } ?>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'content', 'not-found' ); ?>
<?php endif; ?>
<?php get_template_part( 'content', 'standard-bottom' ); ?>