Your IP : 216.73.216.240


Current Path : /home/s/u/n/sunflowe/www2/floridevilladereve/templates/saffron/html/mod_k2_comments/
Upload File :
Current File : /home/s/u/n/sunflowe/www2/floridevilladereve/templates/saffron/html/mod_k2_comments/comments.php

<?php
/**
* @package   saffron
* @author    arrowthemes https://arrowthemes.com
* @copyright Copyright (C) arrowthemes
* @license   https://www.gnu.org/licenses/gpl.html GNU/GPL
*/

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

?>

<div id="k2ModuleBox<?php echo $module->id; ?>" class="k2LatestCommentsBlock<?php if($params->get('moduleclass_sfx')) echo ' '.$params->get('moduleclass_sfx'); ?>">
		<?php if(count($comments)): ?>
		<ul>
				<?php foreach ($comments as $key=>$comment):	?>
				<li class="<?php echo ($key%2) ? "odd" : "even"; if(count($comments)==$key+1) echo ' lastItem'; ?>">
						<div class="k2CommentItem">
								<?php if($comment->userImage): ?>
								<a class="k2Avatar lcAvatar" href="<?php echo $comment->link; ?>" title="<?php echo K2HelperUtilities::cleanHtml($comment->commentText); ?>"> <img class="uk-thumbnail" src="<?php echo $comment->userImage; ?>" alt="<?php echo JFilterOutput::cleanText($comment->userName); ?>" style="width:<?php echo $lcAvatarWidth; ?>px;height:auto;" /> </a>
								<?php endif; ?>
								<?php if($params->get('commenterName')): ?>
								<span class="lcUsername">
								<?php if(isset($comment->userLink)): ?>
								<a rel="author" href="<?php echo $comment->userLink; ?>"><?php echo $comment->userName; ?></a>
								<?php elseif($comment->commentURL): ?>
								<a target="_blank" rel="nofollow" href="<?php echo $comment->commentURL; ?>"><?php echo $comment->userName; ?></a>
								<?php else: ?>
								<?php echo $comment->userName; ?>
								<?php endif; ?>
								</span>
								<?php endif; ?>
								<?php if($params->get('commentDate')): ?>
								<span class="lcCommentDate">
								<?php if($params->get('commentDateFormat') == 'relative'): ?>
								<?php echo $comment->commentDate; ?>
								<?php else: ?>
								<?php echo JText::_('K2_ON'); ?> <?php echo JHTML::_('date', $comment->commentDate, JText::_('K2_DATE_FORMAT_LC2')); ?>
								<?php endif; ?>
								</span>
								<?php endif; ?>
								<?php if($params->get('commentLink')): ?>
								<a href="<?php echo $comment->link; ?>"><?php echo $comment->commentText; ?></a>
								<?php else: ?>
								<p><?php echo $comment->commentText; ?></p>
								<?php endif; ?>
								<?php if($params->get('itemTitle')): ?>
								<span class="lcItemTitle"><a href="<?php echo $comment->itemLink; ?>"><?php echo $comment->title; ?></a></span>
								<?php endif; ?>
								<?php if($params->get('itemCategory')): ?>
								<span class="tm-tags-list"><a href="<?php echo $comment->catLink; ?>"><?php echo $comment->categoryname; ?></a></span>
								<?php endif; ?>
						</div>
				</li>
				<?php endforeach; ?>
		</ul>
		<?php endif; ?>
		<?php if($params->get('feed')): ?>
		<div class="k2FeedIcon"> <a class="uk-icon-rss" href="<?php echo JRoute::_('index.php?option=com_k2&view=itemlist&format=feed&moduleID='.$module->id); ?>" title="<?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?>"> <span><?php echo JText::_('K2_SUBSCRIBE_TO_THIS_RSS_FEED'); ?></span> </a> </div>
		<?php endif; ?>
</div>