<?php 
/**
 * The index page of SKT Education Lite
 *
 * Displays the home page elements.
 *
 * @package SKT Education Lite
 * 
 * @since SKT Education Lite 1.0
 */
global $complete;
?>
<?php get_header(); ?>
<?php if ( is_front_page() ) { ?>
<div class="fixed_site layer_wrapper">
   <div class="fixed_wrap fixindex"> 
    <section class="home1_section_area <?php if($complete['section1_bg_image']){ ?>home1_section_area_bg<?php } ?>" <?php if(!empty($complete['section1_bg_video'])){ ?>data-vidbg-bg="mp4: <?php $sec1bgvideo = $complete['section1_bg_video']; echo do_shortcode($sec1bgvideo); ?>" data-vidbg-options="loop: true, muted: true, overlay: false"<?php } ?>>
    	<div class="center">
            <div class="home_section1_content">
             	  <?php 
				  	$pagesetting1 = get_theme_mod( 'page-setting1');
					if ($pagesetting1 == '0'){
						echo do_shortcode('
[sliderinbox icon="file-text" title="Highly qualified faculty" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent at velit velit dignissim varius. Aenean consectetur odio quam." url="#" target="self" bgcolor="#0f92ea" color="#ffffff"]

[sliderinbox icon="university " title="Largest Campus" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent at velit velit dignissim varius. Aenean consectetur odio quam." url="#" target="self" bgcolor="#ff5253" color="#ffffff"]

[sliderinbox icon="diamond" title="international syllabus" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent at velit velit dignissim varius. Aenean consectetur odio quam." url="#" target="self" bgcolor="#ffbb00" color="#ffffff"]

');	
					}
					else
					{
					$secone = new WP_Query('page_id='.$pagesetting1.'');
					while ($secone->have_posts()) : $secone->the_post();
					?>
					<?php the_content(); ?>
					<?php endwhile; wp_reset_postdata(); ?>
					<?php 
					}
					?> 
            </div>
        </div>
    </section>
    <?php wp_reset_postdata(); ?>

    <section class="home2_section_area <?php if($complete['section2_bg_image']){ ?>home2_section_area_bg<?php } ?>" <?php if(!empty($complete['section2_bg_video'])){ ?>data-vidbg-bg="mp4: <?php $sec2bgvideo = $complete['section2_bg_video']; echo do_shortcode($sec2bgvideo); ?>" data-vidbg-options="loop: true, muted: true, overlay: false"<?php } ?>>
    	<div class="center">
            <div class="home_section2_content">
                    <?php 
				  	$pagesetting2 = get_theme_mod( 'page-setting2');
					if ($pagesetting2 == '0'){
						echo do_shortcode('
						
						[centertitle text="AVAILABLE" lastword="COURSES" titlecolor="#282828" titlelastcolor="#0f92ea" seperatorcolor=""]<p style="text-align:center; margin-bottom:0;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nulla ante, ornare id facilisis nec,</p><p style="text-align:center;">condimentum sed velit. Praesent id imperdiet sem</p>
						
[ourcourses image="'.get_template_directory_uri().'/images/ourcourses1.jpg" title="Diploma in Software" description="Maecenas id nunc ut lectus faucibus varius ut eget metus. Aliquam finibus ipsum velit, id egestas nisi tempus quis. Fusce pellentesque" link="#" applynow="APPLY NOW" bgcolor="#f9f9f9" color="#6b6b6b"]
						
[ourcourses image="'.get_template_directory_uri().'/images/ourcourses2.jpg" title="Diploma in Architecture" description="Maecenas id nunc ut lectus faucibus varius ut eget metus. Aliquam finibus ipsum velit, id egestas nisi tempus quis. Fusce pellentesque" link="#" applynow="APPLY NOW" bgcolor="#f9f9f9" color="#6b6b6b"]

[ourcourses image="'.get_template_directory_uri().'/images/ourcourses3.jpg" title="Diploma in Fashion Designing" description="Maecenas id nunc ut lectus faucibus varius ut eget metus. Aliquam finibus ipsum velit, id egestas nisi tempus quis. Fusce pellentesque" link="#" applynow="APPLY NOW" bgcolor="#f9f9f9" color="#6b6b6b"]')
						;	
					}
					else
					{
					$sectwo = new WP_Query('page_id='.$pagesetting2.'');
					while ($sectwo->have_posts()) : $sectwo->the_post();
					?>
					<?php the_content(); ?>
					<?php endwhile; wp_reset_postdata(); ?>
					<?php 
					}
					?> 
            </div>
        </div>
    </section>
    <?php get_template_part('templates/post','layout4'); ?>    
 
    <?php wp_reset_postdata(); ?>
 
  </div>
</div>
<?php }else{ ?>
<div class="fixed_site">
  <div class="fixed_wrap fixindex">
    <!--CUSTOM PAGE HEADER STARTS-->
        <?php get_template_part('sktframe/core','pageheader'); ?>
    <!--CUSTOM PAGE HEADER ENDS-->  
      
    <?php get_template_part('templates/post','layout4'); ?>
  </div>
</div>
<?php } //is_front_page ENDS ?>
<?php get_footer(); ?>