<?php
/**
 * @package WordPress
 * @subpackage Classic_Theme
 */
get_header();
?>
<div id="container-wrap"><div id="container-bottom" class="clearfix">
		<div id="content">
	<div class="post_wrapper">
	<span class="archive_header"><span class="small"></span>&raquo; <?php /* If this is a category archive */ if (is_category()) { ?>
						Archive for the &#8216;<span class="key"><?php single_cat_title(); ?></span>&#8217; Category
					  <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
						Posts Tagged &#8216;<span class="key"><?php single_tag_title(); ?></span>&#8217;
					  <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
						Archive for <span class="key"><?php the_time('F jS, Y'); ?></span>
					  <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
						Archive for <span class="key"><?php the_time('F, Y'); ?></span>
					  <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
						Archive for <span class="key"><?php the_time('Y'); ?></span>
					  <?php /* If this is an author archive */ } elseif (is_author()) { ?>
						Author Archive
					  <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
						Blog Archives
					  <?php } ?></span>
					<?php if (have_posts()) : ?>
						<?php while (have_posts()) : the_post(); ?>
                        	<?php if ( version_compare( $wp_version, '2.7', '>=' ) ) { ?>
								<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
								<?php } else { ?>
								<div id="post-<?php the_ID(); ?>" class="post post-<?php the_ID(); ?>">
							<?php } ?>
							<div class="post-top">
								<h2 class="title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
								<div class="post-data">
                                    <span class="post-date"><span class="num"><?php the_time(d); ?></span><br /><?php the_time(M); ?> </span> Author: <a href="<?php the_author() ?>" title="<?php the_author() ?>"><?php the_author() ?></a>&nbsp;&nbsp;&nbsp;&nbsp;Category: <?php the_category(', ') ?>&nbsp;&nbsp;&nbsp;&nbsp;<?php if(get_the_tags()) { ?><?php  the_tags('Tags: ', ', '); } ?>&nbsp;&nbsp;&nbsp;&nbsp;Comments: <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
									</div>
								<?php include(TEMPLATEPATH . '/thumbnail.php'); ?>
								<?php the_excerpt() ?>
								<div class="clear"></div>
								<div class="more-link"><a href="<?php the_permalink() ?>">Read more</a></div>
							</div>
						</div>
				
				<?php endwhile; ?>

				<?php else : ?>
					<div class="notfound"><p>Content Not Found!</p><p>Please try again.</p></div>
				<?php endif; ?>
                <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
					<div class="wp-pagenavi">
					<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
					<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
					</div>
				<?php } ?>
				</div>
				</div>
				<?php get_sidebar(); ?>
				<div class="clear"></div>
		  </div>
		</div>
<?php get_footer(); ?>
