-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
108 lines (87 loc) · 2.66 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?php
/**
* The template for displaying all single posts
*
* @package blogbasico
*/
get_header(); ?>
<div id="content" class="site-content">
<?php
$blog_layout = get_theme_mod('blog_layout', 'right_sidebar');
if ($blog_layout == 'right_sidebar') {
?>
<div class="row">
<div class="col-md-8 sidebar-right">
<?php
}
if ($blog_layout == 'left_sidebar') {
?>
<div class="row">
<div class="col-md-8 col-md-push-4 sidebar-left">
<?php
}
?>
<div id="primary" class="content-area">
<main id="main" class="site-main">
<?php
while ( have_posts() ) : the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<!---<?php if (has_post_thumbnail()) {?>
<div class="post-media">
<?php the_post_thumbnail();?>
</div>
<?php }?>-->
<div class="post-content">
<?php blogbasico_entry_header(); ?>
<div class="entry-content clearfix">
<?php
the_content();
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'blogbasico' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<?php blogbasico_entry_footer(); ?>
</div>
</article><!-- #post-<?php the_ID(); ?> -->
<?php
$show_about_author = get_theme_mod('single_show_about_author', 0);
if (!post_password_required() && $show_about_author) {
blogbasico_about_the_author();
}
$show_post_nav = get_theme_mod('single_show_post_nav', 1);
if ($show_post_nav) {
blogbasico_post_navigation();
}
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile; // End of the loop.
?>
</main><!-- #main -->
</div><!-- #primary -->
<?php
if ($blog_layout == 'right_sidebar') {
?>
</div>
<div class="col-md-4 sidebar-right">
<?php get_sidebar();?>
</div>
</div>
<?php
}
if ($blog_layout == 'left_sidebar') {
?>
</div>
<div class="col-md-4 col-md-pull-8 sidebar-left">
<?php get_sidebar();?>
</div>
</div>
<?php
}
?>
</div><!-- #content -->
<?php
get_footer();