<?php get_header();

$sidebar = weblusive_get_option('sidebar_archive');
$sidebarPos =  weblusive_get_option('sidebar_pos');
?>
<div class="banner">
    <div class="inner-banner">
        <?php if (!weblusive_get_option('hide_titles')):?>
            <div class="note">
                <?php if ( is_day() ) : ?>
                    <?php printf( __( 'Daily Archives: %s', 'Wecare' ), get_the_date() ); ?>
		<?php elseif ( is_month() ) : ?>
                    <?php printf( __( 'Monthly Archives: %s', 'Wecare' ), get_the_date('F Y') ); ?>
		<?php elseif ( is_year() ) : ?>
                    <?php printf( __( 'Yearly Archives: %s', 'Wecare' ), get_the_date('Y') ); ?>
		<?php elseif ( is_category() ) : ?>
                    <?php single_cat_title();?>
		<?php else : ?>
                    <?php _e( 'Blog Archives', 'Wecare' ); ?>
		<?php endif; ?>
            </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>
<div class="wrapper dark">
<?php if (!empty($sidebar) && $sidebarPos==='left') get_sidebar($sidebar); ?>
<div class="main-blog<?php echo empty($sidebar) ? 'column12' : 'column9';?>">
    <?php
        if ( have_posts() ) the_post();
            rewind_posts();       
            get_template_part( 'loop', 'archive' );
    ?>
</div>
<?php if (!empty($sidebar) && $sidebarPos==='right') get_sidebar($sidebar); ?>
    <div class="clear"></div>
</div>
<?php get_footer(); ?>