<?php
global $options;
foreach ($options as $value) {
    if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
?>

<?php
/*
Template Name: Archives Page
*/
?>
<?php get_header(); ?>
</div>
</div>

<div id="main">
	<div class="wrap">
		<div class="post">
			<h1 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
			<?php edit_post_link( __('Edit', 'wpzoom'), ' ', ''); ?>
			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
			
			<div class="entry">
		
				<div class="col_arch">
					
					<div class="left">
					<?php _e('By Months:', 'wpzoom'); ?>	 
					</div>
					<div class="right"> 
						<ul>											  
							<?php wp_get_archives('type=monthly&show_post_count=1') ?>	
						</ul>	
					</div>
					
				</div>
				
 				
				<div class="col_arch">
					
					<div class="left">
					<?php _e('By Categories:', 'wpzoom'); ?>	 
					</div>
					<div class="right"> 
						<ul>											  
							<?php wp_list_categories('title_li=&hierarchical=0&show_count=1') ?>	
						</ul>	
					</div>
					
				</div>
 				
				
				<div class="col_arch">
					
					<div class="left">
					<?php _e('By Tags:', 'wpzoom'); ?>	 
					</div>
					<div class="right"> 
						<ul>	
							<?php wp_tag_cloud('format=list&smallest=12&largest=12&unit=px'); ?>
						</ul>	
					</div>
					
				</div>
			
			</div><!-- / .entry --><?php endwhile; else: ?>
			<p><?php _e('Sorry, no posts matched your criteria', 'wpzoom');?>.</p>
			<?php endif; ?>

			<div class="clear"></div>          
		</div><!-- / .post -->

		<?php get_sidebar(); ?>
 		 
<?php get_footer(); ?>