<?php
/*
Template Name: Archives
*/
?>

<?php get_header(); ?>

		<?php if (have_posts()) : the_post(); ?>
			<div class="post">
				<div class="title">
					<h2><?php the_title(); ?></h2>
					<div class="fixed"></div>
				</div>
				<div class="info">
					<?php edit_post_link(__('Edit', 'elegantbox'), '<span class="edit">', '</span>'); ?>
					<span><?php _e('Update: '); the_modified_time(__('F jS, Y', 'elegantbox')) ?></span>
					<div class="fixed"></div>
				</div>
				<div class="content">
					<?php
						if (function_exists('wp_easyarchives')) {
							wp_easyarchives();
						} else {
							echo '<ul>';
							wp_get_archives('type=monthly&show_post_count=1');
							echo '</ul>';
						}
					?>
				</div>
			</div>

<?php
	// Support comments for WordPress 2.7 or higher
	if (function_exists('wp_list_comments')) {
		comments_template('', true);
	} else {
		comments_template();
	}
?>

		<?php else : ?>
			<div class="messagebox">
				<div class="content small">
					<?php _e('Sorry, no posts matched your criteria.'); ?>
				</div>
			</div>
	
		<?php endif; ?>
	</div>

	<?php get_sidebar(); ?>

	<div class="fixed"></div>

		<div id="bottom">

<?php get_footer(); ?>
