<?php
/**
 * @version		$Id: category_item_links.php 1812 2013-01-14 18:45:06Z lefteris.kavadas $
 * @package		K2
 * @author		JoomlaWorks http://www.joomlaworks.net
 * @copyright	Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
 * @license		GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
 */

// no direct access
defined('_JEXEC') or die;

K2HelperUtilities::setDefaultImage($this->item, 'itemlist', $this->params);
?>
<div class="catItemView group<?php echo ucfirst($this->item->itemGroup); ?><?php if($this->item->params->get('pageclass_sfx')) echo ' '.$this->item->params->get('pageclass_sfx'); ?>">
	<?php if($this->item->params->get('catItemImage') && !empty($this->item->image)) { ?>
	<a href="<?php echo $this->item->link; ?>" title="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>">
		<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
	</a>
	<?php } ?>

	<?php if($this->item->params->get('catItemTitle')) { ?>
	<strong>
		<?php if ($this->item->params->get('catItemTitleLinked')) { ?>
		<a href="<?php echo $this->item->link; ?>">
			<?php echo $this->item->title; ?>
		</a>
		<?php } else { ?>
		<?php echo $this->item->title; ?>
		<?php } ?>
	</strong>
	<?php } ?>
</div>