-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent-single.php
More file actions
38 lines (38 loc) · 986 Bytes
/
content-single.php
File metadata and controls
38 lines (38 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
<div class="container-fluid">
<div class="row-fluid">
<div class="span9" id="main-content">
<?php
the_post();
get_template_part( 'breadcrumb', getTemplateName() );
get_template_part( 'post', getTemplateName() );
?>
<ul class="pager">
<?php
$prev_post = get_next_post();
if (!empty( $prev_post )) { ?>
<li class="previous">
<a href="<?php echo get_permalink( $prev_post->ID ); ?>">← Previous</a>
</li>
<?php } else { ?>
<li class="previous disabled">
<a href="#">← Previous</a>
</li>
<?php } ?>
<?php
$next_post = get_previous_post();
if (!empty( $next_post )) { ?>
<li class="next">
<a href="<?php echo get_permalink( $next_post->ID ); ?>">Next →</a>
</li>
<?php } else { ?>
<li class="next disabled">
<a href="#">Next →</a>
</li>
<?php } ?>
</ul>
<?php
?>
</div>
<?php get_sidebar(); ?>
</div>
</div>