-
Notifications
You must be signed in to change notification settings - Fork 1
/
page.php
49 lines (48 loc) · 1.78 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
<?php
get_header();
?>
<section class="blog_layouts_hero">
<header>
<h1 class="title"><?php the_title(); ?></h1>
</header>
</section>
<main <?php if (get_theme_mod('pages_sidebar', true)) echo 'class="blog_layouts_has_sidebar"' ?>>
<section class="blog_layouts_content_spacer">
<div class="blog_layouts_content" id="blog_layouts_main_content">
<?php
while (have_posts()) {
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('blog_layouts_user_content_container'); ?>>
<?php the_content(); ?>
</article>
<footer class="blog_layouts_post_footer">
<!-- Pagination-->
<?php
wp_link_pages(
array(
'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__('Pages:', 'blog-layouts') . '</span>',
'after' => '</div>',
'link_before' => '<span class="page-number">',
'link_after' => '</span>',
)
);
?>
<!-- Comments -->
<?php
if (comments_open() || get_comments_number()) {
comments_template();
}
?>
</footer>
<?php } ?>
</div>
</section>
</main>
<?php
if(get_theme_mod('pages_sidebar', true)){
echo '<aside id="blog_layouts_sidebar" class="' . 'blog_layouts_sidebar_layout_' . esc_attr(get_theme_mod('pages_sidebar_layout', 'social')) . '">';
get_sidebar();
echo '</aside>';
}
get_footer();