| Current Path : /home/lejardintz/www/components/com_kunena/template/crypsis/layouts/topic/item/ |
| Current File : /home/lejardintz/www/components/com_kunena/template/crypsis/layouts/topic/item/default.php |
<?php
/**
* Kunena Component
* @package Kunena.Template.Crypsis
* @subpackage Layout.Topic
*
* @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->topic;
$me = KunenaUserHelper::getMyself();
$this->addScriptDeclaration('// <![CDATA[
var kunena_anonymous_name = "'.JText::_('COM_KUNENA_USERNAME_ANONYMOUS').'";
// ]]>');
// Load caret.js always before atwho.js script and use it for autocomplete, emojiis...
$this->addScript('js/caret.js');
$this->addScript('js/atwho.js');
$this->addStyleSheet('css/atwho.css');
$this->addScript('js/topic.js');
?>
<?php if ($this->category->headerdesc) : ?>
<div class="alert alert-info">
<a class="close" data-dismiss="alert" href="#">×</a>
<?php echo $this->category->displayField('headerdesc'); ?>
</div>
<?php endif; ?>
<h3>
<?php echo $topic->getIcon($topic->getCategory()->iconset); ?>
<?php echo $topic->displayField('subject'); ?>
</h3>
<div><?php echo $this->subRequest('Topic/Item/Actions')->set('id', $topic->id); ?></div>
<div class="pull-left">
<?php echo $this->subLayout('Widget/Pagination/List')
->set('pagination', $this->pagination)
->set('display', true); ?>
</div>
<div class="pull-right">
<?php echo $this->subLayout('Widget/Search')
->set('id', $topic->id)
->set('title', JText::_('COM_KUNENA_SEARCH_TOPIC'))
->setLayout('topic'); ?>
</div>
<div class="clearfix"></div>
<?php
echo $this->subLayout('Widget/Module')->set('position', 'kunena_topictitle');
echo $this->subRequest('Topic/Poll')->set('id', $topic->id);
echo $this->subLayout('Widget/Module')->set('position', 'kunena_poll');
foreach ($this->messages as $id => $message)
{
echo $this->subRequest('Topic/Item/Message')
->set('mesid', $message->id)
->set('location', $id);
}
?>
<div class="pull-left">
<?php echo $this->subLayout('Widget/Pagination/List')
->set('pagination', $this->pagination)
->set('display', true); ?>
</div>
<div class="pull-right">
<?php echo $this->subLayout('Widget/Search')
->set('id', $topic->id)
->set('title', JText::_('COM_KUNENA_SEARCH_TOPIC'))
->setLayout('topic'); ?>
</div>
<div><?php echo $this->subRequest('Topic/Item/Actions')->set('id', $topic->id); ?></div>
<div class="pull-right"><?php echo $this->subLayout('Category/Moderators')->set('moderators', $this->category->getModerators(false)); ?></div>