<?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 Initio
 */
$initio_theme_options = initio_get_options( 'initio_theme_options' );
get_header(); ?>
	<div id="main" class="<?php echo esc_attr($initio_theme_options['layout_settings']); ?>">
	<?php 
		if ( is_front_page() && ! is_home() ) {
		

				get_template_part( 'content-posts', 'home' );
					
		
		} else {
		
			get_template_part( 'content', 'posts' );
		
		} ?>
	</div><!--main-->
	<?php if ($initio_theme_options['social_section_on'] == '1') {
			get_template_part( 'social', 'section' );	
		}
get_footer(); ?>