<?php /*** Portfolio Single Posts template. */ 

get_header(); 
$pageId = isset ($_SESSION['Wecare_page_id']) ? $_SESSION['Wecare_page_id'] : get_page_ID_by_page_template('portfolio-template.php');
$get_meta = get_post_custom($pageId);
get_template_part( 'library/includes/page-head' ); 

$portfolio_type = get_post_meta($pageId, "_portfolio_type", $single = false);
$paginationEnabled = (isset($portfolio_type) && !(empty ($portfolio_type))) ? $portfolio_type[0] : 0;
$page_template_name = get_post_meta($pageId,'_wp_page_template',true); 

$sidebar = weblusive_get_option('sidebar_portfolio');
$sidebarPos =  weblusive_get_option('sidebar_pos');

?>
<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 (!empty($sidebar) && $sidebarPos=='left') get_sidebar($sidebar); ?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    <div class="<?php if (empty($sidebar)):?>column12<?php else:?>column9<?php endif?> port-single">
        <?php the_content(); ?>
        <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'Wecare' ), 'after' => '</div>' ) ); ?>
    </div>
<?php endwhile; ?>	
<?php if (!empty($sidebar) && $sidebarPos=='right') get_sidebar($sidebar); ?>
<div class="clear"></div>
</div>
<?php get_footer(); ?>