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

<?php get_header(); ?>

<div id="single_content">
	
		<div id="left_single">
			
			<div class="post">
			
				<h2 class="title"><?php the_title(); ?></h2>
				
				<div class="entry archives">
					
					<div id="archive_posts" class="post">
			
						<h2 class="title"><?php _e('The Last 30 Posts',woothemes); ?></h2>
				
							<ul>
								<?php query_posts('showposts=30'); ?>
								<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
								<?php $wp_query->is_home = false; ?>
								<li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a> &gt; <?php the_time('j F Y') ?> <span class="comments">( <?php echo $post->comment_count ?> <?php _e('comments',woothemes); ?> )</span></li>
								<?php endwhile; endif; ?>	
							</ul>				
			
					</div>
						
					<div id="archive_categories"class="post">
					
						<h2 class="title"><?php _e('Categories',woothemes); ?></h2>
				
							<ul>
								<?php wp_list_categories('title_li=&hierarchical=0&show_count=1') ?>	
							</ul>	
			
					</div>                    

					<div id="archive_monthly" class="post">
				
						<h2 class="title"><?php _e('Monthly Archives',woothemes); ?></h2>
				
							<ul>
								<?php wp_get_archives('type=monthly&show_post_count=1') ?>	
							</ul>				
			
					</div>
				
				
				</div><!-- /entry -->	
			
			</div><!-- /post -->
			
		</div><!-- /left_single -->

		<?php get_sidebar(); ?>

	</div><!-- /single_content -->
	
	<div class="clear"></div>	

<?php get_footer(); ?>