-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
99 lines (83 loc) · 2.54 KB
/
page.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
<?php
/**
* The template for displaying all pages
*
* @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">
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .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 -->
</div>
</article><!-- #post-<?php the_ID(); ?> -->
<?php
if (!get_theme_mod('page_comments')) :
// 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.
?>
</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();