-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingular.php
More file actions
42 lines (41 loc) · 1.41 KB
/
Copy pathsingular.php
File metadata and controls
42 lines (41 loc) · 1.41 KB
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
<?php 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 id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( has_post_format('quote') ) { ?>
<?php get_template_part( 'template-parts/post/content-quote' ); ?>
<?php } else { ?>
<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 <?php echo get_post_format() ?>'>
<?php if ( comments_open() || get_comments_number() ) : comments_template(); endif; ?>
</aside>
</div>
</div>
</div>
<?php } ?>
</div>
<?php get_footer(); ?>
</div>
</body>
</html>
<?php endwhile; ?>