<?php get_header(); ?>
<div id="content-full">
<div id="content" class="col-full">

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

		<?php if ( have_posts() ) : ?> <?php $post = $posts[0]; ?>

			<?php while ( have_posts() ) : the_post(); ?>

		<?php
		if( get_post_type( $post->ID ) == "products-srb" || get_post_type( $post->ID ) == "products-hun" || get_post_type( $post->ID ) == "products-eng") { ?>

<div id="category-products">
<div class="thumbnail">

<?php
//$img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID, 'archive-thumb'), 'archive-thumb');
$img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'archive-thumb');

$img = $img[0];

echo "<a href=\"" . $permalink . "\"><img src=\"" . $img . "\"></a>";
?>



</div>
<?php echo "<a href=\"" . $permalink . "\">" . get_the_title() . "</a>"; ?>
</div>


		<?php } else { ?>

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

			</div>

		<?php endif; ?>

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

	<?php get_sidebar(); ?>

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