<?php
/**
 * @version		$Id: default.php 1499 2012-02-28 10:28:38Z lefteris.kavadas $
 * @package		K2
 * @author		JoomlaWorks http://www.joomlaworks.net
 * @copyright	Copyright (c) 2006 - 2012 JoomlaWorks Ltd. All rights reserved.
 * @license		GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
 */

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

<div id="k2ModuleBox<?php echo $module->id; ?>" class="localAtendimento k2ItemsBlock<?php if($params->get('moduleclass_sfx')) echo ' '.$params->get('moduleclass_sfx'); ?>">
	<?php if(count($items)): ?>
		<?php foreach ($items as $key=>$item):	?>
			<?php if($params->get('itemImage') || $params->get('itemIntroText')): ?>
			<div class="moduleItemIntrotext">
				<?php if($params->get('itemImage') && isset($item->image)): ?>
				<a class="moduleItemImage" href="<?php echo $item->link; ?>" title="<?php echo JText::_('K2_CONTINUE_READING'); ?> &quot;<?php echo K2HelperUtilities::cleanHtml($item->title); ?>&quot;">
					<img src="parts/thumb.php?src=<?php echo $item->image; ?>&amp;w=130&amp;h=90&amp;a=t&amp;q=100" alt="<?php echo K2HelperUtilities::cleanHtml($item->title); ?>"/>
				</a>
				<?php endif; ?>
				<?php if($params->get('itemIntroText')): ?>
					<?php if($params->get('itemTitle')): ?>
					<h4 class="moduleItemTitle" ><a href="<?php echo $item->link; ?>" title="<?php echo $item->title; ?>"><?php echo $item->title; ?></a></h4>
					<?php endif; ?>
					<p>
						<?php echo $item->introtext; ?>
					</p>
				<?php endif; ?>
				<div class="clearfix"></div>
			</div>
			<?php endif; ?>
			<?php if($params->get('itemReadMore') && $item->fulltext): ?>
			<a class="moduleItemReadMore button-text" href="<?php echo $item->link; ?>">
				<?php echo JText::_('Saiba mais...'); ?>
			</a>
			<?php endif; ?>
		<?php endforeach; ?>
	<?php endif; ?>
</div>
