<?php

	/* Template Name: Page for visual layout builder */

?>
<?php 
    $header_disable = vp_metabox('vcr.header_disable');
    $footer_disable = vp_metabox('vcr.footer_disable');
    $content_type = vp_metabox('vcr.content_type');
    if ($content_type =='def') {$content_type = '';}      
?>
<?php if ($header_disable =='1') :?>
<!DOCTYPE html>
<!--[if IE 8]>    <html class="ie8" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 9]>    <html class="ie9" <?php language_attributes(); ?>> <![endif]-->
<!--[if (gt IE 9)|!(IE)] <?php language_attributes(); ?>><![endif]-->
<html <?php language_attributes(); ?>>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<!-- Title -->
<title><?php wp_title("", true, 'right'); ?></title>
<!-- feeds & pingback -->
  <link rel="profile" href="http://gmpg.org/xfn/11" />
  <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<!--[if lt IE 9]><script src="<?php echo get_template_directory_uri(); ?>/js/html5shiv.js"></script><![endif]-->	
<?php wp_head(); ?>
<?php if(rehub_option('rehub_custom_css')) : ?><style><?php echo rehub_option('rehub_custom_css'); ?></style><?php endif; ?>
</head>
<body <?php body_class(); ?>>
<div id="top_ankor"></div>
<?php get_template_part('inc/parts/branded_bg'); ?>
<?php get_template_part('inc/parts/branded_banner'); ?>	
<!-- HEADER -->	
<?php else :?>
<?php get_header(); ?>
<?php endif ;?>

    <!-- CONTENT -->
    <div class="content <?php echo $content_type ?>">     
		<div class="clearfix">
		    <!-- Main Side -->
            <div class="main-side visual_page_builder page_builder clearfix full_width">
					
					<!-- CONTENT -->
					<?php while (have_posts()) : the_post(); ?>
						<?php the_content();?>
					<?php endwhile; ?>

			</div>	
            <!-- /Main Side -->   
        </div>
    </div>
    <!-- /CONTENT -->     
<!-- FOOTER -->
<?php if ($footer_disable =='1') :?>
<?php if(rehub_option('rehub_analytics')) : ?><?php echo rehub_option('rehub_analytics'); ?><?php endif; ?>
<?php if(rehub_option('rehub_disable_totop') !='1')  : ?><span class="rehub_scroll" id="topcontrol" data-scrollto="#top_ankor"><i class="fa fa-chevron-up"></i></span><?php endif; ?>
<?php wp_footer(); ?>
</body>
</html>
<?php else :?>
<?php get_footer(); ?>
<?php endif ;?>