<?php get_header(); ?>
			<?php if(get_option('reedwan_sidebar_position') == 'left'): ?>
			<!-- Begin Left Sidebar -->
			<div class="left-sidebar grid_4">	
				<?php get_sidebar(); ?>
			</div>
			<!-- End Left Sidebar -->
			<?php endif; ?>
			<!-- Begin Content -->
			<div class="content grid_8" >	
				<div class="content-title">
					<h1><?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); echo $term->name; ?> Reviews</h1>
				</div>
				<div class="clear"></div>		
				<?php if (have_posts()) : while (have_posts()) : the_post();  ?>
				<div class="block-post" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
					<a class="reviews-post-icon" href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'></a>
					<h3 class="post-title"><a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><?php the_title(); ?></a></h3>
					<div class="clear"></div>
					<?php if(has_post_thumbnail()): ?>
					<?php $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'blog1-thumb'); ?>
					<div class="post-image alignleft">
						<?php $fullFeatured= wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full-featured-thumb'); ?>
						<a class='lightbox preview-icon' href='<?php echo $fullFeatured[0]; ?>'><img class="fadeover" src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>" width='285' height='160' /></a>
						<?php if( get_post_meta(get_the_ID(), 'reedwan_overall_score', true)): ?>
								<div class="blog_reviews"><img src="<?php echo get_template_directory_uri(); ?>/images/stars/<?php echo get_post_meta(get_the_ID(), 'reedwan_overall_score', true); ?>.png" alt="" /></div>
						<?php endif; ?>
					</div>	
					<?php else: ?>
					<div class="post-image alignleft">
						<a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><img class="fadeover" src="<?php echo get_template_directory_uri(); ?>/timthumb.php?src=<?php echo get_template_directory_uri(); ?>/images/thumbnail.png&w=285&h=160" alt="<?php the_title(); ?>" width='285' height='160' /></a>
						<?php if( get_post_meta(get_the_ID(), 'reedwan_overall_score', true)): ?>
								<div class="blog_reviews"><img src="<?php echo get_template_directory_uri(); ?>/images/stars/<?php echo get_post_meta(get_the_ID(), 'reedwan_overall_score', true); ?>.png" alt="" /></div>
						<?php endif; ?>
					</div>
					<?php endif; ?>
					<div class="post-content">
						<p><?php echo string_limit_words(get_the_excerpt(), 55); ?><a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>' class="readmore"> [...]</a></p>	
					</div>
					<div class="clear"></div>
					<div class="post-head">
						<span class="info-date"><?php the_time('F j, Y'); ?></span>
						<span class="info-author"><?php the_author(); ?></span> 
						<span class="info-category"><?php echo get_the_term_list( get_the_ID(), 'review_category', ' ',', ' ) ?></span>
						<span class="info-comment"><?php comments_popup_link('0','1','%'); ?></span>
					</div>
				</div>
				<div class="clear"></div>
				<?php endwhile; 
				endif; ?>
				<div class="clear"></div>
				<?php kriesi_pagination($pages = '', $range = 2); ?>	
			</div>
			<!-- End Content -->
			
			<?php if(get_option('reedwan_sidebar_position') == 'right'): ?>
			<!-- Begin Right Sidebar -->
			<div class="right-sidebar grid_4">	
				<?php get_sidebar(); ?>
			</div>
			<!-- End Right Sidebar -->
			<?php endif; ?>
		
			
<?php get_footer(); ?>
