-
Notifications
You must be signed in to change notification settings - Fork 1
/
content.php
33 lines (19 loc) · 914 Bytes
/
content.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
<?php defined( 'ABSPATH' ) or die( header( 'HTTP/1.0 403 Forbidden' ) );
if ( is_single() ) { // any posttype except attachment/page
gThemeContent::wrapOpen( 'singular' );
if ( gThemeTerms::has( 'poster' ) )
get_template_part( 'partials/poster', get_post_type() );
else
get_template_part( 'partials/entry', get_post_type() );
gThemeSideBar::sidebar( 'after-singular', '<div class="wrap-side sidebar-after-singular">', '</div>' );
gThemeComments::template( '<div class="entry-comments">', '</div>' );
gThemeContent::wrapClose( 'singular' );
} else if ( gThemeUtilities::isSystemPage() || is_page() ) {
gThemeContent::wrapOpen( 'page' );
get_template_part( 'partials/page', gtheme_template_base() );
gThemeContent::wrapClose( 'page' );
} else {
gThemeContent::wrapOpen( 'index' );
get_template_part( 'partials/summary', get_post_type() );
gThemeContent::wrapClose( 'index' );
}