first commit

This commit is contained in:
alazhar
2020-01-02 22:20:31 +07:00
commit 10eb3340ad
5753 changed files with 631345 additions and 0 deletions

View File

@ -0,0 +1,54 @@
<?php
/**
* @version $Id: commenters.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;
?>
<div id="k2ModuleBox<?php echo $module->id; ?>" class="k2TopCommentersBlock<?php if($params->get('moduleclass_sfx')) echo ' '.$params->get('moduleclass_sfx'); ?>">
<?php if(count($commenters)): ?>
<ul>
<?php foreach ($commenters as $key=>$commenter): ?>
<li class="<?php echo ($key%2) ? "odd" : "even"; if(count($commenters)==$key+1) echo ' lastItem'; ?>">
<?php if($commenter->userImage): ?>
<a class="k2Avatar tcAvatar" rel="author" href="<?php echo $commenter->link; ?>">
<img src="<?php echo $commenter->userImage; ?>" alt="<?php echo JFilterOutput::cleanText($commenter->userName); ?>" style="width:<?php echo $tcAvatarWidth; ?>px;height:auto;" />
</a>
<?php endif; ?>
<?php if($params->get('commenterLink')): ?>
<a class="tcLink" rel="author" href="<?php echo $commenter->link; ?>">
<?php endif; ?>
<span class="tcUsername"><?php echo $commenter->userName; ?></span>
<?php if($params->get('commenterCommentsCounter')): ?>
<span class="tcCommentsCounter">(<?php echo $commenter->counter; ?>)</span>
<?php endif; ?>
<?php if($params->get('commenterLink')): ?>
</a>
<?php endif; ?>
<?php if($params->get('commenterLatestComment')): ?>
<a class="tcLatestComment" href="<?php echo $commenter->latestCommentLink; ?>">
<?php echo $commenter->latestCommentText; ?>
</a>
<span class="tcLatestCommentDate"><?php echo JText::_('K2_POSTED_ON'); ?> <?php echo JHTML::_('date', $commenter->latestCommentDate, JText::_('K2_DATE_FORMAT_LC2')); ?></span>
<?php endif; ?>
<div class="clr"></div>
</li>
<?php endforeach; ?>
<li class="clearList"></li>
</ul>
<?php endif; ?>
</div>

View File

@ -0,0 +1,81 @@
<?php
/**
* @version $Id: comments.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;
?>
<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'; ?>">
<?php if($comment->userImage): ?>
<a class="k2Avatar lcAvatar" href="<?php echo $comment->link; ?>" title="<?php echo K2HelperUtilities::cleanHtml($comment->commentText); ?>">
<img 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('commentLink')): ?>
<a href="<?php echo $comment->link; ?>"><span class="lcComment"><?php echo $comment->commentText; ?></span></a>
<?php else: ?>
<span class="lcComment"><?php echo $comment->commentText; ?></span>
<?php endif; ?>
<?php if($params->get('commenterName')): ?>
<span class="lcUsername"><?php echo JText::_('K2_WRITTEN_BY'); ?>
<?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; ?>
<div class="clr"></div>
<?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="lcItemCategory">(<a href="<?php echo $comment->catLink; ?>"><?php echo $comment->categoryname; ?></a>)</span>
<?php endif; ?>
<div class="clr"></div>
</li>
<?php endforeach; ?>
<li class="clearList"></li>
</ul>
<?php endif; ?>
<?php if($params->get('feed')): ?>
<div class="k2FeedIcon">
<a 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 class="clr"></div>
</div>
<?php endif; ?>
</div>