-
Notifications
You must be signed in to change notification settings - Fork 3
/
single.php
49 lines (30 loc) · 920 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
43
44
45
46
47
48
49
<?php
/**
*
* This is the template that displays single posts
*
* @package MIT_Libraries_Parent
* @since 1.2.1
*/
$pageRoot = getRoot( $post );
$section = get_post( $pageRoot );
$isRoot = $section->ID == $post->ID;
get_header(); ?>
<?php get_template_part( 'inc/breadcrumbs', 'child' ) ?>
<div id="stage" class="inner" role="main">
<?php get_template_part( 'inc/postHead' ); ?>
<div id="content" class="content has-sidebar">
<div class="content-main main-content">
<?php while ( have_posts() ) : the_post(); ?>
<div class="article-head">
<h2><?php the_title(); ?></h2>
</div>
<div class="entry-content">
<?php the_content(); ?>
</div>
<?php endwhile; // end of the loop. ?>
</div>
<?php get_sidebar(); ?>
</div>
</div><!-- end div#stage -->
<?php get_footer(); ?>