<?php
/*
Template Name: Static Front Page
*/
?>
<?php get_header(); ?>

	<?php if ( 'posts' == get_option( 'show_on_front' )): ?>
		
		<?php get_template_part( 'index' ); ?>

	<?php else: ?>
	
	<?php while ( have_posts() ) : the_post(); ?>
    
        <header class="content-header">
            <h1><?php the_title(); ?></h1>
        </header><?php //close .entry-header ?>
        
        <div class="row section post">
            
            <?php if ( has_post_thumbnail() ): ?>
            
                <section class="col grid-6 content-full">
                    <?php the_content(); ?>
                    <p><?php
					wp_link_pages( array(
						'before' => '<div class="page-links">' . __( 'Sections:', 'tweaker5' ),
						'after'  => '</div>',
					) );
				?></p>
                </section><?php // close .content-full ?>
                
                <section class="col grid-6 home-thumb">
                        <?php the_post_thumbnail('large', array('title' => '', 'alt' => '' )); ?>
                </section><?php // close .home-thumb ?>
                
          <?php else: ?>
          	
           	 <section class="col grid-12 content-full">
                    
					<?php the_content(); ?>
                    <p><?php
					wp_link_pages( array(
						'before' => '<div class="page-links">' . __( 'Sections:', 'tweaker5' ),
						'after'  => '</div>',
					) );
				?></p>
             
             </section><?php // close .content-full ?>
          
          <?php endif; ?>
          <?php endwhile; ?>
    <?php endif; ?>
    
    </div><?php // close .row ?>
    
    <?php if ( tweaker5_get_featured_content() ) : ?>
		<?php get_template_part( 'inc/featured' ); ?>
    <?php endif; ?>

<?php get_footer(); ?>