This repository has been archived on 2020-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
understrap/index.php

67 lines
2.3 KiB
PHP
Raw Permalink Normal View History

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-03-09 08:32:44 +00:00
<?php get_template_part('widget-templates/hero'); ?>
2016-03-09 08:32:44 +00:00
<?php get_template_part('widget-templates/statichero'); ?>
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
<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(); ?>
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() );
?>
2016-03-09 09:16:22 +00:00
<?php endwhile; ?>
<?php understrap_paging_nav(); ?>
<?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(); ?>