-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
78 lines (48 loc) · 1.88 KB
/
single.php
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package GTL_Multipurpose
*/
get_header();
$sidebar = gtl_multipurpose_post_single_sidebar_pos();
if( ! $sidebar ){
$row = 'aGrid';
}else if($sidebar=='left'){
$row = 'col_2-30-70';
}else{
$row = 'col_2-70-30';
}
?>
<?php get_template_part( 'template-parts/banner' );?>
<section id="postSingle" class="standard-view pd-t-100 pd-b-100">
<div class="<?php echo gtl_multipurpose_site_container();?> content-all">
<div class="<?php echo $row;?>">
<?php if( $sidebar == 'left' ): get_sidebar(); endif; ?>
<div class="cols" >
<div class="post-details">
<?php
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', 'single' );
if( 'post' == get_post_type() ):
gtl_multipurpose_author();
endif;
if( get_post_type() == 'post' ):
the_post_navigation( array( 'screen_reader_text' => '','prev_text'=> __('Previous' , 'gtl-multipurpose') , 'next_text'=>__('Next' , 'gtl-multipurpose' )) );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endif;
endwhile; // End of the loop.
?>
</div>
</div>
<?php if( $sidebar == 'right' ): get_sidebar(); endif; ?>
</div>
</div>
</section>
<?php
get_footer();