-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsingle.php
28 lines (28 loc) · 878 Bytes
/
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
<?php
get_header();
if ( have_posts() ) : while ( have_posts() ) : the_post();
$format = get_post_format();
?>
<section class="main-content hentry">
<div class="grid-container">
<div class="grid-x align-center">
<div class="cell large-8">
<?php
if ( !empty( $format ) ) {
get_template_part('inc/partials/post',$format);
} else {
get_template_part('inc/partials/post','default');
}
?>
<section class="entry-content">
<div class="content-format">
<?php the_content(); ?>
</div>
</section>
</div>
</div>
</div>
</section>
<?php endwhile; ?>
<?php endif; ?>
<?php get_footer(); ?>