<?php
/*
Template Name: Archives
*/
?>
<?php get_header(); ?>
	<div id="content" class="container">
		
		<div class="primary_col">
		
			<h5 class="recentnews">Last <?php echo stripslashes(get_option('gp_archives_articles')); ?> Articles</h5>

			<ul >
				<?php query_posts('showposts='.get_option('gp_archives_articles')); ?>
				<?php while (have_posts()) : the_post(); ?>
				<li class="archives">
					<div class="thumbnail-medium"><?php the_post_thumbnail(); ?></div>
					<span class="title"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></span><br />
					<span class="meta"><?php the_time('l, F j, Y G:i'); ?> - <a href="<?php the_permalink() ?>#comments" title="Jump to the comments"><?php comments_number('0 Comments','1 Comment','% Comments'); ?></a></span>
				</li>
				<?php endwhile; ?>
			</ul>
						
		</div>

		<div class="right_col">

			<h5 class="allarchives">Monthly Archives</h5>
			<?php wp_get_archives('type=monthly&show_post_count=1&limit=15'); ?>
			 
		</div>

		<div class="right_col">

			<h5 class="allarchives">Yearly Archives</h5>
			<?php wp_get_archives('type=yearly&show_post_count=1&limit=12'); ?>
			 
		</div>

		<div class="right_col">

			<h5 class="feeds">Feeds</h5>
			<ul>
				<li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
				<li><a href="<?php bloginfo('atom_url'); ?>" title="<?php _e('Syndicate this site using Atom'); ?>"><?php _e('Atom'); ?></a> </li>
				<li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a>
				</li>
			</ul>
			 
		</div> 
		
		<div class="clear"></div>

	</div>
<?php get_footer(); ?>