-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-old.php
37 lines (35 loc) · 1.32 KB
/
page-old.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
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<?php get_template_part( 'template-parts/head/site-head' ); ?>
<?php get_template_part( 'template-parts/post/meta' ); ?>
</head>
<body id="body" <?php body_class(); ?>>
<div class='site'>
<?php get_header(); ?>
<div class='app-wrapper'>
<div class='ms-Grid'>
<div class='ms-Grid-row'>
<?php $class_sidebar = is_active_sidebar('right_sidebar') ? "ms-u-sm12 ms-u-xl9" : "ms-u-sm12"; ?>
<main class='ms-Grid-col <?php echo $class_sidebar ?> <?php echo get_post_format() ?>'>
<?php get_template_part( 'template-parts/post/content', get_post_format() ); ?>
</main>
<?php if ( is_active_sidebar( 'right_sidebar' ) ) : ?>
<nav class='sidebar ms-Grid-col ms-u-sm12 ms-u-xl3'>
<?php get_sidebar(); ?>
</nav>
<?php endif; ?>
</div>
<div class='ms-Grid-row'>
<aside class='ms-Grid-col ms-u-sm12 ms-u-xl9 <?php echo get_post_format() ?>'>
<?php if ( comments_open() || get_comments_number() ) : comments_template(); endif; ?>
</aside>
</div>
</div>
</div>
<?php get_footer(); ?>
</div>
</body>
</html>
<?php endwhile; endif; ?>