forked from argoproject/Argo
-
-
Notifications
You must be signed in to change notification settings - Fork 83
/
single-two-column.php
48 lines (33 loc) · 982 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
<?php
/**
* Single Post Template: Two Column (Classic Layout)
* Template Name: Two Column (Classic Layout)
* Description: Shows the post and sidebar if specified.
*/
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();
$partial = (is_page())? 'page':'single-classic';
get_template_part( 'partials/content', $partial );
if ( is_active_sidebar( 'article-bottom' ) ) {
do_action( 'largo_before_post_bottom_widget_area' );
echo '<div class="article-bottom">';
dynamic_sidebar( 'article-bottom' );
echo '</div>';
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();