<?php get_header(); ?>

<div id="content" class="col-full">

	<div id="main" class="col-left">

		<?php if ( have_posts() ) : ?> <?php $post = $posts[0]; ?>
<div id="products">
			<div class="category-title">
					<h4><?php single_cat_title(); ?></h4>
			</div>
			<?php while ( have_posts() ) : the_post(); ?>

						<div class="product">
			<div class="product-cover">
			<span>
				<?php if(!$img) { ?>
				<a href="<?php echo get_permalink(); ?>" title="<?php echo get_the_title(); ?>"><img src="<?php bloginfo('template_url'); ?>/images/no-image.jpg" alt="<?php echo get_the_title(); ?>" /></a>
				<?php } else { ?>
				<a href="<?php echo get_permalink(); ?>" title="<?php echo get_the_title(); ?>"><img src="<?php echo $img; ?>" alt="<?php echo get_the_title(); ?>" /></a>
				<?php } ?>
			</span>
			</div>
			<div class="product-name">
				<a href="<?php echo get_permalink(); ?>" title="<?php echo get_the_title(); ?>"><?php echo get_the_title(); ?></a>
			</div>
		</div>

			<?php endwhile; ?>

		<?php else : ?>
					
			<div class="post-title">			
	
				<h4><?php _e('No posts were found', 'cp'); ?></h4>

			</div>

		<?php endif; ?>
</div>
	</div><!-- #END main -->

</div><!-- #END content -->

<?php get_footer(); ?>
