-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
55 lines (46 loc) · 1.51 KB
/
single.php
File metadata and controls
55 lines (46 loc) · 1.51 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
55
<?php
/**
* The template use for singular post or custom post type.
*
* @package CodeAndBeauty
*/
get_header(); ?>
<section class="single-section">
<div class="container">
<div class="with-right-sidebar">
<div class="main-container">
<?php if ( have_posts() ) : ?>
<?php
while ( have_posts() ) :
the_post();
/**
* To override this template in a child-theme, create a template called
* `templates/content/content-{post_type}.php` and it will be use instead.
*/
get_template_part( 'templates/content/content', get_post_type() );
/**
* Include comments template if comment is enabled and/or there are previous comments
* submitted for this post.
*/
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
the_post_navigation( array(
'prev_text' => '<span class="screen-reader-text">' . __( 'Previous Post', 'TEXTDOMAIN' ) . '</span><span class="nav-subtitle"><i class="fa fa-long-arrow-left"></i></span> <span class="nav-title">%title</span>',
'next_text' => '<span class="screen-reader-text">' . __( 'Next Post', 'TEXTDOMAIN' ) . '</span><span class="nav-subtitle"><i class="fa fa-long-arrow-right"></i></span> <span class="nav-title">%title</span>',
) );
endwhile;
?>
<?php else : ?>
<?php endif; ?>
</div>
<div class="right-container">
<?php
get_sidebar( 'right', get_post_type() );
?>
</div>
</div>
</div>
</section>
<?php
get_footer();