-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathblog-left-sidebar.php
49 lines (39 loc) · 1.49 KB
/
blog-left-sidebar.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
/**
* Template Name: Blog Left Sidebar
*/
get_header();?>
<section id="main">
<?php get_template_part('lib/sub-header')?>
<div class="container">
<div class="row">
<div id="sidebar" class="col-md-4" role="complementary">
<div class="sidebar-inner">
<aside class="widget-area">
<?php dynamic_sidebar( 'sidebar' ); ?>
</aside>
</div>
</div> <!-- #sidebar -->
<div id="content" class="site-content col-md-8" role="main">
<?php
# Query for FontPage and default template.
if (is_front_page()) {
$paged = (get_query_var('page')) ? get_query_var('page') : 1;
}else{
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
}
$args = array('post_type' => 'post','paged' => $paged);
query_posts($args);
if ( have_posts() ) :
while ( have_posts() ) : the_post();
get_template_part( 'post-format/content', get_post_format() );
endwhile;
else:
get_template_part( 'post-format/content', 'none' );
endif; ?>
<?php themeum_pagination(); ?>
</div>
</div> <!-- .row -->
</div><!-- .container -->
</section>
<?php get_footer();