Your IP : 216.73.216.131


Current Path : /home/lejardintz/www/components/com_kunena/template/crypsis/layouts/category/list/row/
Upload File :
Current File : /home/lejardintz/www/components/com_kunena/template/crypsis/layouts/category/list/row/default.php

<?php
/**
 * Kunena Component
 * @package     Kunena.Template.Crypsis
 * @subpackage  Layout.Category
 *
 * @copyright   (C) 2008 - 2016 Kunena Team. All rights reserved.
 * @license     http://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @link        https://www.kunena.org
 **/
defined('_JEXEC') or die;

/**
 * @var KunenaForumTopic $topic
 */
$topic = $this->category->getLastTopic();
$avatar = $this->config->avataroncat ? $topic->getAuthor()->getAvatarImage('img-thumbnail', 'thumb') : null;
?>

<tr>
	<td>
		<h3>
			<?php echo $this->getCategoryLink($this->category); ?>
			<small class="hidden-phone">
				(<?php echo JText::plural('COM_KUNENA_X_TOPICS', $this->formatLargeNumber($this->category->getTopics())); ?>)
			</small>
		</h3>
	</td>

	<?php if (!$topic->exists()) : ?>
	<td>
		<?php echo JText::_('COM_KUNENA_NO_POSTS'); ?>
	</td>

	<?php else : ?>

	<?php if ($avatar) : ?>
	<td class="center">
		<span class="hidden-phone">
			<?php echo $topic->getLastPostAuthor()->getLink($avatar); ?>
		</span>
	</td>
	<?php endif; ?>

	<td<?php if (!$avatar) echo ' colspan="2"'; ?>>
		<div>
			<?php echo $this->getTopicLink($topic, 'last'); ?>
		</div>
		<div>
			<?php echo $topic->getLastPostAuthor()->getLink(); ?>
		</div>
		<div>
			<?php echo $topic->getLastPostTime()->toSpan('config_post_dateformat', 'config_post_dateformat_hover'); ?>
		</div>
	</td>
	<?php endif; ?>

	<?php if ($this->checkbox) : ?>
	<td class="center">
		<label>
			<input type="checkbox" class="kcatcheckall" name="categories[<?php echo (int) $this->category->id?>]" value="1" />
		</label>
	</td>
	<?php endif; ?>

</tr>