<?php get_header(); ?>&#13;
<?php global $asteria;?>&#13;
<?php if ( is_home() ) { ?>&#13;
<div class="fixed_site">&#13;
	<div class="fixed_wrap fixindex">&#13;
<!--Slider Area-->&#13;
<div id="slidera">&#13;
<?php if( get_option( 'asteria' )){ ?>&#13;
			<?php if ( asteria_is_mobile() && (!empty($asteria['hide_mob_slide'])) ) { ?>&#13;
            <?php }else{ ?>&#13;
            <?php $slidertype = $asteria['slider_type_id']; ?>&#13;
            <?php get_template_part(''.$slidertype.''); ?>&#13;
            <?php } ?>&#13;
<?php }else{ ?>&#13;
    <?php get_template_part('dummy/dummy','nivo'); ?>&#13;
<?php } ?>&#13;
</div>&#13;
&#13;
<?php $home_blocks = $asteria['home_sort_id'];
if ($home_blocks):
foreach ($home_blocks as $key=>$value) {&#13;
&#13;
    switch($key) {&#13;
	//Blocks&#13;
    case 'blocks': ?&gt;&#13;
	<div class="home_blocks ast_blocks"><?php get_template_part('frontpage/content','blocks'); ?></div>&#13;
    <?php //Welcome Text
	break;
    case 'welcome-text': ?>&#13;
    <div class="home_blocks"><?php get_template_part('frontpage/content','welcome-text'); ?></div>&#13;
    &#13;
    <?php //Front Page Posts
    break;
    case 'posts': ?>&#13;
    <div class="home_blocks">&#13;
	<?php if ( asteria_is_mobile() && (!empty($asteria['hide_mob_frontposts'])) ) { ?>&#13;
    <?php }else{ ?>&#13;
	<?php get_template_part('layout'.$asteria['front_layout_id'].''); ?>&#13;
    <?php } ?>&#13;
    </div>&#13;
 &#13;
    <?php break;

    }
}

endif;
?>&#13;
&#13;
<?php if( !get_option( 'asteria' )){ ?>&#13;
    <?php get_template_part('dummy/dummy','blocks'); ?>&#13;
     <?php get_template_part('layout1'); ?>   &#13;
    &#13;
<?php } ?>&#13;
<?php }else{ ?>&#13;
<div class="fixed_site">&#13;
	<div class="fixed_wrap fixindex">&#13;
<?php get_template_part('layout1'); ?> &#13;
	</div>&#13;
</div>&#13;
<?php } ?>&#13;
&#13;
</div>&#13;
</div>&#13;
<?php get_footer(); ?>