<?php
/*
Template Name Posts: Product Review Post
*/
?>


<?php get_header(); ?>
       
    <div id="content" class="col-full">
		<div id="main" class="col-review">
		           
            <?php if (have_posts()) : $count = 0; ?>
            <?php while (have_posts()) : the_post(); $count++; ?>
            <?php $GLOBALS['saved_post'] = $post; // Save author data for sidebar widget ?>

                <div class="box-review">
                    <div class="post-review">
    
						<?php 
						// Show image or ad content
						if ( get_option('woo_image_single') == "true" && !woo_get_embed('embed','590','420') && get_option('woo_ad_content') <> "true" ) 
							woo_get_image('image',get_option('woo_single_width'),get_option('woo_single_height'),'thumbnail alignright'); 
                        elseif ( !woo_get_embed('embed','590','420') && get_option('woo_ad_content') == "true" ) 
							include ( TEMPLATEPATH . '/ads/content_ad.php' );											
						?>
                           
                        <h1 class="title"><?php the_title(); ?></h1>

						<?php echo woo_get_embed('embed','590','420'); ?>
						<?php if ( woo_get_embed('embed','590','420') && get_option('woo_ad_content') == "true" ) include ( TEMPLATEPATH . '/ads/content_ad.php' ); ?>					
                        <div class="entry">
							<?php the_content(); ?>
                        </div>
                        <div class="fix"></div>
                                             
                                                
                    </div><!-- /.post -->
                                       
                </div><!-- /.box -->
                                                                    
			<?php endwhile; else: ?>
                <div class="box">
                    <div class="post">
                        <p><?php _e('Sorry, no posts matched your criteria.', 'woothemes') ?></p>
                    </div><!-- /.post -->            
				</div>                     
           	<?php endif; ?>  
        
		</div><!-- /#main -->

    </div><!-- /#content -->
		
<?php get_footer(); ?>