forked from argoproject/Argo
-
-
Notifications
You must be signed in to change notification settings - Fork 83
/
single-two-column.php
51 lines (33 loc) · 988 Bytes
/
single-two-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
50
51
<?php
/**
* Single Post Template: Two Column (Classic Layout)
* Template Name: Two Column (Classic Layout)
* Description: Shows the post and sidebar if specified.
*/
global $shown_ids;
add_filter('body_class', function($classes) {
$classes[] = 'classic';
return $classes;
});
get_header();
?>
<div id="content" class="span8" role="main">
<?php
while ( have_posts() ) : the_post();
$shown_ids[] = get_the_ID();
$partial = ( is_page() ) ? 'page' : 'single-classic';
get_template_part( 'partials/content', $partial );
if ( $partial == 'single-classic' ) {
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_sidebar(); ?>
<?php get_footer();