-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
53 lines (38 loc) · 1.17 KB
/
single.php
File metadata and controls
53 lines (38 loc) · 1.17 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
<?php
/**
* The template for displaying all single posts
*
* @package Luminary
* @since 1.0.0
*/
get_header();
?>
<div class="site-content-area container">
<div class="content-sidebar-wrap">
<main id="primary" class="site-main">
<?php luminary_breadcrumbs(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/content/content', 'single' ); ?>
<?php luminary_author_bio(); ?>
<?php luminary_related_posts(); ?>
<?php
if ( get_theme_mod( 'luminary_show_post_nav', true ) ) :
the_post_navigation(
array(
'prev_text' => '<span class="nav-direction">' . esc_html__( 'Previous Post', 'luminary' ) . '</span><span class="nav-title">%title</span>',
'next_text' => '<span class="nav-direction">' . esc_html__( 'Next Post', 'luminary' ) . '</span><span class="nav-title">%title</span>',
)
);
endif;
?>
<?php
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
<?php endwhile; ?>
</main><!-- #primary -->
<?php get_sidebar(); ?>
</div><!-- .content-sidebar-wrap -->
</div><!-- .container -->
<?php get_footer(); ?>