-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
28 lines (27 loc) · 1.43 KB
/
index.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
<?php
/**
* The default template file.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*/
//LOADING header.php + actions
get_header();
?>
<div id="middleWrapper" class="<?php echo apply_filters( 'middle_wrapper_section_class', ''); ?>" data-role="content">
<div id="middleContainer" class="<?php echo apply_filters('middle_container_row_class', wlfw_grid_row_class(16)); ?>">
<div id="contentColWide" class="<?php echo apply_filters('wlfw_content_col_class', wlfw_grid_col_class(11)); ?> content-primary">
<?php echo wlfw_get_looped_page_title($wp_query); ?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php
if($wp_query->found_posts > 1){ get_template_part( 'loop', get_post_type() ); }
else { get_template_part( 'content', get_post_format() ); }
?>
<?php endwhile; ?>
<?php if(posts_nav_link()){} else wp_link_pages(); ?>
</div><!-- ./contentColWide -->
<div id="middleSidebar" class="<?php echo apply_filters('wlfw_sidebar_col_class', wlfw_grid_col_class(5)); ?> content-secondary">
<?php get_sidebar('middle'); ?>
</div><!-- ./middleSidebar -->
<div class="clear"></div>
</div><!-- #middleContainer -->
</div><!-- #middleWrapper -->
<?php get_footer(); ?>