<?php
/**
 * The template for displaying home page.
 * @package Sophi Blog
 */

if ( 'posts' == get_option( 'show_on_front' )  || 'posts' != get_option( 'show_on_front' )){ 
    get_header(); ?>
    <?php 
    $enabled_sections = sophi_blog_get_sections();
    $homepage_design_layout     = sophi_blog_get_option( 'homepage_design_layout_options' );
    $decoration_image     = sophi_blog_get_option( 'decoration_side_enable' ); 
    ?>
    <?php if ($homepage_design_layout == 'home-main'){ ?>
       <?php include get_template_directory() . '/inc/homepage/home-main.php'; ?>
    <?php } elseif ($homepage_design_layout == 'home-two'){ ?>
        <?php include get_template_directory() . '/inc/homepage/home-two.php'; ?>
    <?php } elseif ($homepage_design_layout == 'home-three'){ ?>
        <?php include get_template_directory() . '/inc/homepage/home-three.php'; ?>
    <?php } elseif ($homepage_design_layout == 'home-four'){ ?>
        <?php include get_template_directory() . '/inc/homepage/home-four.php'; ?>
    <?php } elseif ($homepage_design_layout == 'home-five'){ ?>
        <?php include get_template_directory() . '/inc/homepage/home-five.php'; ?>
    <?php } elseif ($homepage_design_layout == 'home-six'){ ?>
        <?php include get_template_directory() . '/inc/homepage/home-six.php'; ?>
    <?php } elseif ($homepage_design_layout == 'home-seven'){ ?>
        <?php include get_template_directory() . '/inc/homepage/home-seven.php'; ?>
    <?php } ?>
    <?php $disable_homepage_content_section = sophi_blog_get_option( 'disable_homepage_content_section' );
    if('posts' == get_option( 'show_on_front' )){ ?>
       <?php include( get_home_template() ); ?>
    <?php } elseif(($disable_homepage_content_section == true ) && ('posts' != get_option( 'show_on_front' ))) { ?>
        <div class="wrapper">
           <?php include( get_page_template() ); ?>
        </div>
     <?php  }
    get_footer();
} ?>