-
Notifications
You must be signed in to change notification settings - Fork 1
/
single.php
42 lines (35 loc) · 984 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package takeoff
*/
get_header(); ?>
<header class="document-header container-fluid">
<div class="row">
<div class="page-title col-md-12">
<h1><?php the_title(); ?></h1>
</div>
</div>
</header>
<div class="main-content container-fluid">
<div class="row">
<div class="content col-sm-9" role="main">
<?php
while (have_posts()) {
the_post();
get_template_part('content');
}
?>
<?php if ('post' == get_post_type()) : ?>
<footer class="article-footer">
<?php get_template_part('nav', 'posts'); ?>
</footer>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>