Esempio n. 1
0
    } else {
        ?>
					<?php 
        echo $this->getTopicLink($this->topic, null, $this->topic->getIcon());
        ?>
				<?php 
    }
    ?>
			</li>
		<?php 
}
?>

		<li class="klatest-subject">
			<?php 
echo ModuleKunenaLatest::shortenLink($this->getTopicLink($this->topic, 'last', ModuleKunenaLatest::getUnreadState(), ModuleKunenaLatest::setSubjectTitle($this, $this->topic->last_post_message)), $this->params->get('titlelength'));
if ($this->params->get('sh_postcount')) {
    echo ' (' . $this->topic->getTotal() . ' ' . JText::_('MOD_KUNENALATEST_MSG') . ')';
}
if ($this->topic->unread) {
    echo ' <sup class="knewchar">(' . JText::_($this->params->get('unreadindicator')) . ')</sup>';
}
if ($this->params->get('sh_sticky') && $this->topic->ordering) {
    echo $this->getIcon('ktopicsticky', JText::_('MOD_KUNENALATEST_STICKY_TOPIC'));
}
if ($this->params->get('sh_locked') && $this->topic->locked) {
    echo $this->getIcon('ktopiclocked', JText::_('COM_KUNENA_GEN_LOCKED_TOPIC'));
}
if ($this->params->get('sh_favorite') && $this->topic->getUserTopic()->favorite) {
    echo $this->getIcon('kfavoritestar', JText::_('COM_KUNENA_FAVORITE'));
}
Esempio n. 2
0
<?php

/**
 * Kunena Latest Module
 * @package Kunena.mod_kunenalatest
 *
 * @copyright (C) 2008 - 2016 Kunena Team. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @link http://www.kunena.org
 **/
defined('_JEXEC') or die;
// Kunena detection and version check
$minKunenaVersion = '3.0';
if (!class_exists('KunenaForum') || !KunenaForum::isCompatible($minKunenaVersion)) {
    echo JText::sprintf('MOD_KUNENALATEST_KUNENA_NOT_INSTALLED', $minKunenaVersion);
    return;
}
// Kunena online check
if (!KunenaForum::enabled()) {
    echo JText::_('MOD_KUNENALATEST_KUNENA_OFFLINE');
    return;
}
require_once __DIR__ . '/class.php';
/** @var stdClass $module */
/** @var JRegistry $params */
$instance = new ModuleKunenaLatest($module, $params);
$instance->display();
Esempio n. 3
0
    ?>
</li>
<?php 
} elseif ($this->params->get('sh_topiciconoravatar') == 0) {
    ?>
<li class="klatest-topicicon"><?php 
    echo $this->getTopicLink($this->topic, 'unread', '[K=TOPIC_ICON]');
    ?>
</li>
<?php 
}
?>

<li class="klatest-subject">
	<?php 
echo ModuleKunenaLatest::shortenLink($this->getTopicLink($this->topic, $this->message, null, ModuleKunenaLatest::setSubjectTitle($this, $this->message->message)), $this->params->get('titlelength'));
if ($this->params->get('sh_postcount')) {
    echo ' (' . $this->topic->getTotal() . ' ' . JText::_('MOD_KUNENALATEST_MSG') . ')';
}
if ($this->topic->unread) {
    echo ' <sup class="knewchar">(' . JText::_($this->params->get('unreadindicator')) . ')</sup>';
}
if ($this->params->get('sh_sticky') && $this->topic->ordering) {
    echo $this->getIcon('ktopicsticky', JText::_('MOD_KUNENALATEST_STICKY_TOPIC'));
}
if ($this->params->get('sh_locked') && $this->topic->locked) {
    echo $this->getIcon('ktopiclocked', JText::_('COM_KUNENA_GEN_LOCKED_TOPIC'));
}
if ($this->params->get('sh_favorite') && $this->topic->getUserTopic()->favorite) {
    echo $this->getIcon('kfavoritestar', JText::_('COM_KUNENA_FAVORITE'));
}