-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathsingle.php
More file actions
39 lines (25 loc) · 986 Bytes
/
single.php
File metadata and controls
39 lines (25 loc) · 986 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
29
30
31
32
33
34
35
36
37
38
39
<?php get_header(); ?>
<div id="content" class="row justify-content-center">
<div id="main" class="<?php simple_boostrap_main_classes(); ?>" role="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php simple_boostrap_display_post(false); ?>
<?php comments_template('',true); ?>
<?php if (get_next_post() || get_previous_post()) { ?>
<nav class="block">
<ul class="pager">
<li class="previous"><?php previous_post_link('%link', "« " . __( 'Previous Post', "simple-bootstrap")); ?></li>
<li class="next"><?php next_post_link('%link', __( 'Next Post', "simple-bootstrap") . " »"); ?></li>
</ul>
</nav>
<?php } ?>
<?php endwhile; ?>
<?php else : ?>
<article id="post-not-found" class="block">
<p><?php _e("No posts found.", "simple-bootstrap"); ?></p>
</article>
<?php endif; ?>
</div>
<?php get_sidebar("left"); ?>
<?php get_sidebar("right"); ?>
</div>
<?php get_footer(); ?>