forked from argoproject/Argo
-
-
Notifications
You must be signed in to change notification settings - Fork 83
/
single-one-column.php
49 lines (32 loc) · 943 Bytes
/
single-one-column.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
/**
* Single Post Template: One Column (Standard Layout)
* Template Name: One Column (Standard Layout)
* Description: Shows the post with a small right sidebar
*/
global $shown_ids;
add_filter( 'body_class', function( $classes ) {
$classes[] = 'normal';
return $classes;
} );
get_header();
?>
<div id="content" role="main">
<?php
while ( have_posts() ) : the_post();
$shown_ids[] = get_the_ID();
$partial = ( is_page() ) ? 'page' : 'single';
get_template_part( 'partials/content', $partial );
if ( $partial === 'single' ) {
do_action( 'largo_before_post_bottom_widget_area' );
do_action( 'largo_post_bottom_widget_area' );
do_action( 'largo_after_post_bottom_widget_area' );
do_action( 'largo_before_comments' );
comments_template( '', true );
do_action( 'largo_after_comments' );
}
endwhile;
?>
</div>
<?php do_action( 'largo_after_content' ); ?>
<?php get_footer();