

<?php
/**
 * Template Name: Home Page
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 */
$enabled_sections = spiral_lite_one_page_get_sections();
$enable_about_section      = get_theme_mod( 'spiral-lite-one-page_ed_about_section', true );
$enable_calltoaction       = get_theme_mod( 'spiral-lite-one-page_ed_calltoaction_section', true );
$enable_services_section   = get_theme_mod( 'spiral-lite-one-page_ed_services_section', true );
$enable_cta2_section       = get_theme_mod( 'spiral-lite-one-page_ed_cta2_section', true );
$enable_blog_section       = get_theme_mod( 'spiral-lite-one-page_ed_blog_section', true );
$enable_contact_section       = get_theme_mod( 'spiral-lite-one-page_ed_contact_section', true );
get_header(); 
?>

 <?php get_template_part( 'sections/section-hero' );  ?>

   <?php if ( $enable_about_section ) : ?>
<section id="about" class="section">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <?php get_template_part( 'sections/section', 'about' ); ?>
            </div>
        </div>
    </div>
</section>
<?php endif; ?>

<?php if ( $enable_calltoaction ) : ?>
<section id="calltoaction" class="action">
   <div class="container">
    <div class="col-lg-12">
        <div class="row">
                <?php get_template_part( 'sections/section', 'calltoaction' ); ?>
            </div><!-- End Row -->
        </div><!-- End Column -->
    </div><!-- End Container -->
</section>
<?php endif; ?>

<?php if ( $enable_services_section ) : ?>
<section id="services" class="section">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <?php get_template_part( 'sections/section', 'services' ); ?>
            </div>
        </div>
    </div>
</section>
<?php endif; ?>

<?php if ( $enable_cta2_section ) : ?>
<section id="cta2" class="action">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <?php get_template_part( 'sections/section', 'cta2' ); ?>
            </div>
        </div>
    </div>
</section>
<?php endif; ?>

<?php if ( $enable_blog_section ) : ?>
<section id="blog" class="blog-section">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <?php get_template_part( 'sections/section', 'blog' ); ?>
            </div>
        </div>
    </div>
</section>
<?php endif; ?>

<?php if ( $enable_contact_section ) : ?>
<section id="contact" class="section">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <?php get_template_part( 'sections/section', 'contact' ); ?>
            </div>
        </div>
    </div>
</section>
<?php endif; ?>
  
		<?php the_content(); ?>
     <?php get_footer();
