2014-12-10 11:36:38 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The main template file.
|
|
|
|
*
|
|
|
|
* This is the most generic template file in a WordPress theme
|
|
|
|
* and one of the two required files for a theme (the other being style.css).
|
|
|
|
* It is used to display a page when nothing more specific matches a query.
|
|
|
|
* E.g., it puts together the home page when no home.php file exists.
|
|
|
|
* Learn more: http://codex.wordpress.org/Template_Hierarchy
|
|
|
|
*
|
|
|
|
* @package understrap
|
|
|
|
*/
|
|
|
|
|
|
|
|
get_header(); ?>
|
|
|
|
|
2016-06-21 17:00:08 +00:00
|
|
|
<?php
|
|
|
|
if ( is_front_page() && is_home() ) {
|
2014-12-11 17:06:34 +00:00
|
|
|
|
2016-06-21 17:00:08 +00:00
|
|
|
get_sidebar('hero');
|
|
|
|
|
|
|
|
get_sidebar('statichero');
|
|
|
|
|
|
|
|
} else {
|
|
|
|
// Do nothing...or?
|
|
|
|
}
|
|
|
|
?>
|
2015-08-13 12:00:24 +00:00
|
|
|
|
2015-03-23 10:33:03 +00:00
|
|
|
<div class="wrapper" id="wrapper-index">
|
2014-12-10 11:36:38 +00:00
|
|
|
|
2016-01-08 08:42:59 +00:00
|
|
|
<div id="content" class="container">
|
2016-03-09 09:16:22 +00:00
|
|
|
|
|
|
|
<div class="row">
|
2014-12-10 11:36:38 +00:00
|
|
|
|
2016-03-09 09:16:22 +00:00
|
|
|
<div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
|
|
|
|
|
|
|
|
<main id="main" class="site-main" role="main">
|
|
|
|
|
|
|
|
<?php if ( have_posts() ) : ?>
|
2015-08-12 11:39:10 +00:00
|
|
|
|
2016-03-09 09:16:22 +00:00
|
|
|
<?php /* Start the Loop */ ?>
|
2015-08-12 11:37:46 +00:00
|
|
|
|
2016-03-09 09:16:22 +00:00
|
|
|
<?php while ( have_posts() ) : the_post(); ?>
|
2014-12-22 07:57:31 +00:00
|
|
|
|
2016-03-09 09:16:22 +00:00
|
|
|
<?php
|
|
|
|
/* Include the Post-Format-specific template for the content.
|
|
|
|
* If you want to override this in a child theme, then include a file
|
|
|
|
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
|
|
|
|
*/
|
|
|
|
get_template_part( 'loop-templates/content', get_post_format() );
|
|
|
|
?>
|
2014-12-22 07:57:31 +00:00
|
|
|
|
2016-03-09 09:16:22 +00:00
|
|
|
<?php endwhile; ?>
|
|
|
|
|
2016-06-21 17:00:08 +00:00
|
|
|
<?php the_posts_navigation(); ?>
|
2016-03-09 09:16:22 +00:00
|
|
|
|
|
|
|
<?php else : ?>
|
2015-08-12 11:37:46 +00:00
|
|
|
|
2016-03-09 09:16:22 +00:00
|
|
|
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
|
|
|
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
</main><!-- #main -->
|
|
|
|
|
|
|
|
</div><!-- #primary -->
|
2014-12-10 11:36:38 +00:00
|
|
|
|
2016-03-09 09:16:22 +00:00
|
|
|
<?php get_sidebar(); ?>
|
|
|
|
|
|
|
|
</div><!-- .row -->
|
2014-12-10 11:36:38 +00:00
|
|
|
|
|
|
|
</div><!-- Container end -->
|
|
|
|
|
|
|
|
</div><!-- Wrapper end -->
|
|
|
|
|
|
|
|
<?php get_footer(); ?>
|