<?php /* Template Name: Regular page */ 

get_header();?>

<?php
	$get_meta = get_post_custom($post->ID);
	$weblusive_sidebar_pos = isset( $get_meta['_weblusive_sidebar_pos'][0]) ? $get_meta["_weblusive_sidebar_pos"][0] : 'full';
	
	get_template_part( 'library/includes/page-head' ); 
?>
<div class="banner">
    <div class="inner-banner">
        <?php if (!weblusive_get_option('hide_titles')):?>
            <div class="note"><?php the_title(); ?></div>
       <?php endif?>
       <?php if (!weblusive_get_option('hide_breadcrumbs')):?>
            <div class="site-map">
                <?php _e('You are here:', 'Wecare');?>
                <?php if(class_exists('the_breadcrumb')){ $albc = new the_breadcrumb; } ?>
            </div>
        <?php endif?>
	<div class="clear"></div>
    </div>
</div>
<!-- Container -->
<div class="wrapper dark">
    <?php if ($weblusive_sidebar_pos == 'left') get_sidebar(); ?>
    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    <div class="<?php if ($weblusive_sidebar_pos == 'full'):?>column12<?php else:?>column9<?php endif?>">
        <?php the_content(); ?>
        <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'Wecare' ), 'after' => '</div>' ) ); ?>
    </div>
    <?php endwhile; ?>	
    <?php if ($weblusive_sidebar_pos == 'right') get_sidebar(); ?>
    <div class="clear"></div>
</div>

<?php get_footer();?>