<?php
/**
 * @version   $Id: item.php 10885 2013-05-30 06:31:41Z btowles $
 * @author    RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2015 RocketTheme, LLC
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
 */

?>
<li class="sprocket-strips-s-block" data-strips-item>
	<div class="sprocket-strips-s-item" data-strips-content>
		<?php if ($item->getPrimaryImage()) :?>
			<img class="uk-border-rounded" src="<?php echo $item->getPrimaryImage()->getSource(); ?>" alt="<?php echo $item->getPrimaryImage()->getAlttext(); ?>" />
		<?php endif; ?>
		<div class="sprocket-strips-s-content">
			<?php if ($parameters->get('strips_article_details')): ?>
				<div class="strips-infos">
					<?php if (($parameters->get('strips_article_details')=='1') or ($parameters->get('strips_article_details') == 'author')): ?>
						<div class="date">
							<div class="day"><?php echo JHtml::_('date', $item->getDate(), JText::_('d')); ?></div>
							<div class="month"><?php echo JHtml::_('date', $item->getDate(), JText::_('M')); ?></div>
							<div class="year"><?php echo JHtml::_('date', $item->getDate(), JText::_('Y')); ?></div>
						</div>
					<?php endif; ?>
				</div>
			<?php endif; ?>
			<?php if ($item->getTitle()) : ?>
			<h5 class="sprocket-strips-s-title" data-strips-toggler>
				<?php if ($item->getPrimaryLink()) : ?><a href="<?php echo $item->getPrimaryLink()->getUrl(); ?>"><?php endif; ?>
					<?php echo $item->getTitle();?>
				<?php if ($item->getPrimaryLink()) : ?></a><?php endif; ?>
			</h5>
			<?php endif; ?>

			<?php if ($item->getText()) :?>
				<div class="sprocket-strips-s-text">
					<?php echo $item->getText(); ?>
				</div>
			<?php endif; ?>
			<?php if ($item->getPrimaryLink()) : ?>
			<a href="<?php echo $item->getPrimaryLink()->getUrl(); ?>" class="readon"></a>
			<?php endif; ?>
			

		</div>
	</div>
</li>
