-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
executable file
·79 lines (61 loc) · 2.04 KB
/
single.php
File metadata and controls
executable file
·79 lines (61 loc) · 2.04 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
/**
* Single Post Template
*
* …
*
* @package Deciduous
* @subpackage Templates
*/
get_header();
?>
<?php
// Load action hook: deciduous_a_before_container
deciduous_do_before_container();
?>
<div id="container" class="content-wrapper">
<?php
// Load action hook: deciduous_a_before_content
deciduous_do_before_content();
?>
<div id="content" class="site-content" role="main">
<?php
while ( have_posts() ) : the_post();
if ( current_theme_supports( 'deciduous_s_nav_before_content' ) ) {
locate_template( array( 'template-parts/navigation/nav-content-before.php' ), true );
}
if ( is_attachment() ) {
locate_template( array( 'template-parts/content/content-attachment.php') , true );
} else {
locate_template( array( 'template-parts/content/content-single.php') , true );
}
if ( current_theme_supports( 'deciduous_s_nav_after_content' ) ) {
locate_template( array( 'template-parts/navigation/nav-content-after.php' ) , true );
}
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) {
comments_template( '', true );
}
// end the loop
endwhile;
?>
<?php
// calling the widget area 'single-bottom'
?>
</div><!-- #content -->
<?php
// Load action hook: deciduous_a_after_content
deciduous_do_after_content();
?>
</div><!-- #container -->
<?php
// Load action hook: deciduous_a_after_container
deciduous_do_after_container();
// Show Main Asides sidebars only if the layout calls for them to be displayed
// for example: full-width layout should not have main asides
if ( deciduous_main_asides_switch() ) {
deciduous_get_sidebar('primary');
deciduous_get_sidebar('secondary');
}
get_footer();
?>