<?php
/**
 * @package WordPress
 * @subpackage coe
 */
/*
Template Name: Archives
*/
if ( !defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>

<?php get_header();

$content_position = ( $coe_options['blog_sidebar'] == 'left' ) ? 'grid_16 push_8' : 'grid_16';

?>


<div id="content-container" class="container_24">
    <div id="main-content" class="<?php echo $content_position; ?>">
	<div class="main-content-padding">
<?php       coe_main_content_top( is_front_page() ); ?>
<?php	    if (have_posts()) :
		while (have_posts()) : the_post(); ?>
		    <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<?php                   coe_entry_before(); ?>
                        <div class="entry">
<?php                       coe_entry_top(); ?>
<?php			    the_content(__('<p class="serif">Read the rest of this entry &raquo;</p>', 'coe')); ?>
<?php                       coe_entry_bottom(); ?>
                        </div>
<?php                   coe_entry_after(); ?>
		    </div>
<?php		endwhile; ?>
<?php	    endif; ?>

	    <div class="clear"></div>

	    <h2><?php esc_html_e('Archives by Year:', 'coe'); ?></h2>
	    <ul class="list-10">
		<?php wp_get_archives('type=yearly'); ?>
	    </ul>

	    <h2><?php esc_html_e('Archives by Month:', 'coe'); ?></h2>
	    <ul class="list-10">
		<?php wp_get_archives('type=monthly'); ?>
	    </ul>

	    <h2><?php esc_html_e('Archives by Subject:', 'coe'); ?></h2>
	    <ul class="list-10">
		<?php wp_list_categories(); ?>
	    </ul>

<?php       coe_main_content_bottom(); ?>
	</div><!-- end main-content-padding -->
    </div><!-- end main-content -->

<?php	if( sidebar_exist('BlogSidebar') ) { get_sidebar('BlogSidebar'); } ?>

</div><!-- end content-container -->

<?php

get_footer();



