| Server IP : 213.186.33.4 / Your IP : 216.73.216.193 Web Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : awebpaca ( 35430) PHP Version : 8.5.0 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/a/w/e/awebpaca/blog/components/com_kunena/template/crypsis/layouts/category/index/ |
Upload File : |
<?php
/**
* Kunena Component
*
* @package Kunena.Template.Crypsis
* @subpackage Layout.Category
*
* @copyright (C) 2008 - 2018 Kunena Team. All rights reserved.
* @license https://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link https://www.kunena.org
**/
/** @var KunenaForumCategory $section */
/** @var KunenaForumCategory $category */
/** @var KunenaForumCategory $subcategory */
defined('_JEXEC') or die;
if ($this->config->enableforumjump)
{
echo $this->subLayout('Widget/Forumjump')->set('categorylist', $this->categorylist);
}
$mmm = 0;
$config = KunenaFactory::getTemplate()->params;
if ($config->get('socialshare') == 1)
{
echo "<div>" . $this->subLayout('Widget/Social') . "</div>";
}
if ($config->get('socialshare') == 2)
{
echo "<div>" . $this->subLayout('Widget/Socialcustomtag') . "</div>";
}
if ($config->get('displayModule'))
{
echo $this->subLayout('Widget/Module')->set('position', 'kunena_index_top');
}
foreach ($this->sections as $section) :
$markReadUrl = $section->getMarkReadUrl();
if ($config->get('displayModule'))
{
echo $this->subLayout('Widget/Module')->set('position', 'kunena_section_top_' . ++$mmm);
}
?>
<div class="kfrontend">
<h2 class="btn-toolbar pull-right">
<?php if (count($this->sections) > 1) : ?>
<div class="btn btn-small" data-toggle="collapse" data-target="#section<?php echo $section->id; ?>"></div>
<?php endif; ?>
</h2>
<h1>
<?php echo $this->getCategoryLink($section, $this->escape($section->name), null, KunenaTemplate::getInstance()->tooltips(), true, false); ?>
<small class="hidden-phone nowrap">
<?php echo KunenaForumCategory::getInstance()->totalCount($section->getTopics()); ?>
</small>
</h1>
<div class="row-fluid section <?php if (!empty($section->class)) : ?>section<?php echo $this->escape($section->class_sfx); ?><?php endif;?> in collapse" id="section<?php echo $section->id; ?>">
<table class="table<?php echo KunenaTemplate::getInstance()->borderless();?>">
<?php if (!empty($section->description)) : ?>
<thead class="hidden-phone">
<tr>
<td colspan="3">
<div class="header-desc"><?php echo $section->displayField('description'); ?></div>
</td>
</tr>
</thead>
<?php endif; ?>
<?php if ($section->isSection() && empty($this->categories[$section->id]) && empty($this->more[$section->id])) : ?>
<tr>
<td>
<h4>
<?php echo JText::_('COM_KUNENA_GEN_NOFORUMS'); ?>
</h4>
</td>
</tr>
<?php else : ?>
<?php if (!empty($this->categories[$section->id])) : ?>
<tr>
<td colspan="2" class="hidden-phone">
<div class="header-desc"><?php echo JText::_('COM_KUNENA_GEN_CATEGORY'); ?></div>
</td>
<td colspan="1" class="hidden-phone post-info">
<?php echo JText::_('COM_KUNENA_GEN_LAST_POST'); ?>
</td>
</tr>
<?php endif; ?>
<?php
foreach ($this->categories[$section->id] as $category) : ?>
<tr class="category<?php echo $this->escape($category->class_sfx); ?>" id="category<?php echo $category->id; ?>">
<td class="span1 center hidden-phone">
<?php echo $this->getCategoryLink($category, $this->getCategoryIcon($category), '', null, true, false); ?>
</td>
<td class="span8">
<div>
<h3>
<?php echo $this->getCategoryLink($category, $category->name, null, KunenaTemplate::getInstance()->tooltips(), true, false); ?>
<small class="nowrap">
<?php echo KunenaForumCategory::getInstance()->totalCount($category->getTopics()); ?>
<span>
<?php if (($new = $category->getNewCount()) > 0) : ?>
<sup class="knewchar"> (<?php echo $new . ' ' . JText::_('COM_KUNENA_A_GEN_NEWCHAR'); ?>)</sup>
<?php endif; ?>
<?php if ($category->locked) : ?>
<span <?php echo KunenaTemplate::getInstance()->tooltips(true);?> title="<?php echo JText::_('COM_KUNENA_LOCKED_CATEGORY') ?>"><?php echo KunenaIcons::lock(); ?></span>
<?php endif; ?>
<?php if ($category->review) : ?>
<span <?php echo KunenaTemplate::getInstance()->tooltips(true);?> title="<?php echo JText::_('COM_KUNENA_GEN_MODERATED') ?>"><?php echo KunenaIcons::shield(); ?></span>
<?php endif; ?>
<?php if (KunenaFactory::getConfig()->enablerss) : ?>
<a href="<?php echo $this->getCategoryRSSURL($category->id); ?>" rel="alternate" type="application/rss+xml">
<?php echo KunenaIcons::rss(); ?>
</a>
<?php endif; ?>
</span>
</small>
</h3>
</div>
<?php if (!empty($category->description)) : ?>
<div class="hidden-phone header-desc"><?php echo $category->displayField('description'); ?></div>
<?php endif; ?>
<?php
// Display subcategories
if (!empty($this->categories[$category->id])) : ?>
<div class="subcategories">
<ul class="inline">
<?php foreach ($this->categories[$category->id] as $subcategory) : ?>
<li>
<?php $totaltopics = KunenaForumCategory::getInstance()->totalCount($subcategory->getTopics()); ?>
<?php if (KunenaConfig::getInstance()->showchildcaticon) : ?>
<?php echo $this->getCategoryLink($subcategory, $this->getSmallCategoryIcon($subcategory), '', null, true, false) . $this->getCategoryLink($subcategory, '', null, KunenaTemplate::getInstance()->tooltips(), true, false) . '<small class="hidden-phone muted"> ('
. $totaltopics . ')</small>';
else : ?>
<?php echo $this->getCategoryLink($subcategory, '', null, KunenaTemplate::getInstance()->tooltips(), true, false) . '<small class="hidden-phone muted"> ('
. $totaltopics . ')</small>';
endif;
if (($new = $subcategory->getNewCount()) > 0)
{
echo '<sup class="knewchar">(' . $new . ' ' . JText::_('COM_KUNENA_A_GEN_NEWCHAR') . ')</sup>';
}
?>
</li>
<?php endforeach; ?>
<?php if (!empty($this->more[$category->id])) : ?>
<li>
<?php echo $this->getCategoryLink($category, JText::_('COM_KUNENA_SEE_MORE'), null, KunenaTemplate::getInstance()->tooltips(), true, false); ?>
<small class="hidden-phone muted">
(<?php echo JText::sprintf('COM_KUNENA_X_HIDDEN', (int) $this->more[$category->id]); ?>)
</small>
</li>
<?php endif; ?>
</ul>
</div>
<div class="clearfix"></div>
<?php endif; ?>
<?php if ($category->getmoderators() && KunenaConfig::getInstance()->listcat_show_moderators) : ?>
<br />
<div class="moderators">
<?php
// get the Moderator list for display
$modslist = array();
foreach ($category->getmoderators() as $moderator)
{
$modslist[] = KunenaFactory::getUser($moderator)->getLink(null, null, '', null, KunenaTemplate::getInstance()->tooltips());
}
echo JText::_('COM_KUNENA_MODERATORS') . ': ' . implode(', ', $modslist);
?>
</div>
<?php endif; ?>
<?php if (!empty($this->pending[$category->id])) : ?>
<div class="alert" style="margin-top:20px;">
<a class="alert-link <?php echo KunenaTemplate::getInstance()->tooltips();?>" href="<?php echo KunenaRoute::_('index.php?option=com_kunena&view=topics&layout=posts&mode=unapproved&userid=0&catid=' . intval($category->id)); ?>" title="<?php echo JText::_('COM_KUNENA_SHOWCAT_PENDING')?>" rel="nofollow"><?php echo intval($this->pending[$category->id]) . ' ' . JText::_('COM_KUNENA_SHOWCAT_PENDING')?></a>
</div>
<?php endif; ?>
</td>
<?php $last = $category->getLastTopic(); ?>
<?php if ($last->exists()) :
$author = $last->getLastPostAuthor();
$time = $last->getLastPostTime();
$avatar = $this->config->avataroncat ? $author->getAvatarImage(KunenaFactory::getTemplate()->params->get('avatarType'), 'post') : null;
?>
<td class="span3 hidden-phone">
<div class="container-fluid">
<div class="row-fluid">
<?php if ($avatar) : ?>
<div class="span3">
<?php echo $author->getLink($avatar, null, '', '', KunenaTemplate::getInstance()->tooltips(), $category->id); ?>
</div>
<div class="span9">
<?php else : ?>
<div class="span12">
<?php endif; ?>
<span class="lastpostlink"><?php echo $this->getLastPostLink($category,null, null, KunenaTemplate::getInstance()->tooltips(), 30, false, true) ?></span>
<br>
<span class="lastpostby"><?php echo JText::sprintf('COM_KUNENA_BY_X', $author->getLink(null, null, '', '', KunenaTemplate::getInstance()->tooltips(), $category->id)); ?></span>
<br>
<span class="datepost"><?php echo $time->toKunena('config_post_dateformat'); ?></span>
</div>
</div>
</div>
</td>
<?php else : ?>
<td class="span3 hidden-phone">
<div class="last-post-message">
<?php echo JText::_('COM_KUNENA_X_TOPICS_0'); ?>
</div>
</td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
<?php endif; ?>
<?php if (!empty($this->more[$section->id])) : ?>
<tr>
<td colspan="3">
<h4>
<?php echo $this->getCategoryLink($section, JText::sprintf('COM_KUNENA_SEE_ALL_SUBJECTS')); ?>
<small>(<?php echo JText::sprintf('COM_KUNENA_X_HIDDEN', (int) $this->more[$section->id]); ?>)</small>
</h4>
</td>
</tr>
<?php endif; ?>
</table>
</div>
</div>
<!-- Begin: Category Module Position -->
<?php
if ($config->get('displayModule'))
{
echo $this->subLayout('Widget/Module')->set('position', 'kunena_section_' . ++$mmm);
} ?>
<!-- Finish: Category Module Position -->
<?php endforeach;
if ($config->get('displayModule'))
{
echo $this->subLayout('Widget/Module')->set('position', 'kunena_index_bottom');
}