-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
54 lines (46 loc) · 2.03 KB
/
single.php
File metadata and controls
54 lines (46 loc) · 2.03 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* Single post template template.
*
* @package SuitePress
*/
get_header();
?>
<div id="primary" class="sp-blog-single">
<main id="main" class="site-main" role="main">
<div class="container">
<div class="sp-blog-container">
<!-- Main Content Area -->
<div class="sp-blog-main">
<?php if ( have_posts() ) : ?>
<div class="sp-posts-wrap">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/content-single' ); ?>
<?php endwhile; ?>
</div>
<!-- Navigation -->
<div class="sp-article-navigation">
<div class="sp-nav-links">
<div class="sp-prev-link"><?php previous_post_link('%link', 'Previous Post'); ?></div>
<div class="sp-next-link"><?php next_post_link('%link', 'Next Post'); ?></div>
</div>
</div>
<?php else : ?>
<?php get_template_part( 'template-parts/content-none' ); ?>
<?php endif; ?>
</div>
<!-- Comments & Sidebar Section -->
<div class="sp-blog-sidebar">
<div class="sp-sidebar-widgets">
<?php if ( is_active_sidebar( 'single_blog_sidebar' ) ) : ?>
<aside class="sp-blog-sidebar-inner">
<?php dynamic_sidebar( 'single_blog_sidebar' ); ?>
</aside>
<?php endif; ?>
</div>
</div>
</div>
</div>
</main>
</div>
<?php get_footer(); ?>