Sindbad~EG File Manager

Current Path : /home/sarayaglobal/goodmaid.net/modules/mod_zoocomment/tmpl/
Upload File :
Current File : /home/sarayaglobal/goodmaid.net/modules/mod_zoocomment/tmpl/list.php

<?php
/**
 * @package   ZOO Comment
 * @author    YOOtheme https://yootheme.com
 * @copyright Copyright (C) YOOtheme GmbH
 * @license   https://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
 */

// no direct access
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;

defined('_JEXEC') or die('Restricted access');

// include css
$zoo->document->addStylesheet('mod_zoocomment:tmpl/list/style.css');

?>

<?php if (count($comments)) : ?>

<section class="zoo-comments-list">

	<?php $i = 0; foreach ($comments as $comment) : ?>

		<?php // set author name
			$author = $comment->getAuthor();
			$author->name = $author->name ? $author->name : Text::_('COM_ZOO_ANONYMOUS');
		?>

		<article class="<?php if ($author->isJoomlaAdmin()) echo 'comment-byadmin'; ?>">

			<?php if ($params->get('show_avatar', 1)) : ?>
			<div class="avatar">
				<?php if ($author->url) : ?><a href="<?php echo $author->url; ?>" title="<?php echo $author->url; ?>" rel="nofollow"><?php endif; ?>
				<?php echo $author->getAvatar($params->get('avatar_size', 50)); ?>
				<?php if ($author->url) : ?></a><?php endif; ?>
			</div>
			<?php endif; ?>

			<?php if ($params->get('show_author', 1)) : ?>
			<h4 class="author">
				<?php if ($author->url) : ?><a href="<?php echo $author->url; ?>" title="<?php echo $author->url; ?>" rel="nofollow"><?php endif; ?>
				<?php echo $author->name; ?>
				<?php if ($author->url) : ?></a><?php endif; ?>
			</h4>
			<?php endif; ?>

			<?php if ($params->get('show_meta', 1)) : ?>
			<p class="meta">
				<?php echo $zoo->html->_('date', $comment->created, $zoo->date->format(Text::_('ZOO_COMMENT_MODULE_DATE_FORMAT')), $zoo->date->getOffset()); ?>
				| <a class="permalink" href="<?php echo Route::_($zoo->route->comment($comment)); ?>">#</a>
			</p>
			<?php endif; ?>

			<div class="content"><p><?php echo $zoo->comment->filterContentOutput($zoo->string->truncate($comment->content, $zoo->get('commentsmodule.max_characters'))); ?></p></div>

		</article>

	<?php $i++; endforeach; ?>

</section>

<?php else : ?>
	<?php echo Text::_('COM_ZOO_NO_COMMENTS_FOUND'); ?>
<?php endif;

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists