<?php /* Template Name: VC Page */
get_header() ;
$options = _WSH()->option();
$meta = _WSH()->get_meta('_bunch_header_settings');
$title = tycheproperty_set($meta, 'page_title');
$bg = tycheproperty_set($meta, 'page_bg');
?>
<?php if(tycheproperty_set($meta, 'breadcrumb')):?>

<!--Page Title-->
<section class="page-title" <?php if($bg):?>style="background-image:url('<?php echo esc_url($bg);?>');"<?php endif;?>>
    <div class="auto-container">
        <div class="row clearfix">
            <!--Title -->
            <div class="title-column col-md-7 col-sm-6 col-xs-12">
                <h1><?php if($title) echo balanceTags($title); else wp_title('');?></h1>
            </div>
            <!--Bread Crumb -->
            <div class="breadcrumb-column col-md-5 col-sm-6 col-xs-12">
                <?php echo balanceTags(tycheproperty_get_the_breadcrumb());?>
            </div>
        </div>
    </div>
</section>

<?php endif;?>
<?php while( have_posts() ): the_post(); ?>
     <?php the_content(); ?>
<?php endwhile;  ?>
<?php get_footer() ; ?>