Файловый менеджер - Редактировать - /var/www/html/components/com_kunena/template/aurelia/layouts/topic/list/default.php
Ðазад
<?php /** * Kunena Component * * @package Kunena.Template.Aurelia * @subpackage Layout.Topic * * @copyright Copyright (C) 2008 - 2026 Kunena Team. All rights reserved. * @license https://www.gnu.org/copyleft/gpl.html GNU/GPL * @link https://www.kunena.org **/ defined('_JEXEC') or die(); use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Uri\Uri; use Kunena\Forum\Libraries\Config\KunenaConfig; use Kunena\Forum\Libraries\Factory\KunenaFactory; use Kunena\Forum\Libraries\Forum\Category\KunenaCategory; use Kunena\Forum\Libraries\Icons\KunenaIcons; use Kunena\Forum\Libraries\Route\KunenaRoute; use Kunena\Forum\Libraries\Template\KunenaTemplate; use Kunena\Forum\Libraries\User\KunenaUserHelper; $cols = !empty($this->actions) ? 6 : 7; $colspan = !empty($this->actions) ? 4 : 3; $view = $this->input->getWord('view'); $layout = $this->input->getWord('layout'); $this->ktemplate = KunenaFactory::getTemplate(); $me = KunenaUserHelper::getMyself(); if (KunenaConfig::getInstance()->ratingEnabled) { $this->addStyleSheet('rating.css'); } ?> <div class="row"> <div class="col-md-12"> <div class="float-start"> <h1> <?php echo $this->escape($this->headerText); ?> <?php if ($layout != 'unread') : ?> <small class="d-none d-sm-block"> (<?php echo KunenaCategory::getInstance()->totalCount($this->pagination->total); ?>) </small> <?php endif; ?> <?php // ToDo:: <span class="badge bg-success"> <?php echo $this->topics->count->unread; ?/></span> ?> </h1> </div> <?php if ($view != 'user') : ?> <div class="float-end" id="filter-time"> <h2 class="filter-sel float-end"></h2> <form action="<?php echo $this->escape(Uri::getInstance()->toString()); ?>" id="timeselect" name="timeselect" method="post" target="_self" class="form-inline d-none d-sm-block"> <?php $this->displayTimeFilter('sel'); ?> <?php echo HTMLHelper::_('form.token'); ?> </form> </div> <?php endif; ?> </div> </div> <?php if ($this->config->enableForumJump && !$this->embedded && $this->topics) { echo $this->subLayout('Widget/Forumjump')->set('categorylist', $this->categorylist); } ?> <div class="float-end"> <?php echo $this->subLayout('Widget/Search') ->set('catid', 'all') ->setLayout('topic'); ?> </div> <div class="float-start"> <?php echo $this->subLayout('Widget/Pagination/List') ->set('pagination', $this->pagination->setDisplayedPages(4)) ->set('display', true); ?> </div> <div class="kfrontend shadow-lg rounded mt-4 border"> <form action="<?php echo KunenaRoute::_('index.php?option=com_kunena&view=topics'); ?>" method="post" name="ktopicsform" id="ktopicsform"> <?php echo HTMLHelper::_('form.token'); ?> <?php if ($view == 'user') : ?> <input type="hidden" name="userid" value="<?php echo $this->user->userid; ?>"/> <?php endif; ?> <table class="table<?php echo KunenaTemplate::getInstance()->borderless(); ?> shadow-lg rounded"> <thead> <tr> <th scope="col" class="center d-none d-md-table-cell"> <a id="forumtop"> </a> <a href="#forumbottom" rel="nofollow"> <?php echo KunenaIcons::arrowdown(); ?> </a> </th> <th scope="col" class="d-none d-md-table-cell"><?php echo Text::_('COM_KUNENA_GEN_SUBJECT'); ?></th> <th scope="col" class="d-none d-md-table-cell"><?php echo Text::_('COM_KUNENA_GEN_REPLIES'); ?> / <?php echo Text::_('COM_KUNENA_GEN_HITS'); ?></th> <th scope="col" class="d-none d-md-table-cell"><?php echo Text::_('COM_KUNENA_GEN_LAST_POST'); ?></th> <?php if (!empty($this->actions)) : ?> <th scope="col" class="center"><input class="kcheckall" type="checkbox" name="toggle" value=""/> </th> <?php endif; ?> </tr> </thead> <tfoot> <tr> <th scope="col" class="center d-none d-md-table-cell"> <a id="forumbottom"> </a> <a href="#forumtop" rel="nofollow"> <span class="dropdown-divider"></span> <?php echo KunenaIcons::arrowup(); ?> </a> </th> <?php if (!empty($this->actions) || !empty($this->moreUri)) : ?> <th scope="col" class="d-none d-md-table-cell"> <div class="form-group"> <div class="input-group" role="group"> <?php if (!empty($this->topics) && !empty($this->moreUri)) { echo HTMLHelper::_('kunenaforum.link', $this->moreUri, Text::_('COM_KUNENA_MORE'), null, 'btn btn-outline-primary float-start', 'follow'); } ?> <?php if (!empty($this->actions)) : ?> <?php echo HTMLHelper::_('select.genericlist', $this->actions, 'task', 'class="form-select kchecktask" ', 'value', 'text', 0, 'kchecktask'); ?> <?php if (isset($this->actions['move'])) : $options = [HTMLHelper::_('select.option', '0', Text::_('COM_KUNENA_BULK_CHOOSE_DESTINATION'))]; echo HTMLHelper::_('kunenaforum.categorylist', 'target', 0, $options, [], 'class="form-select fbs" disabled="disabled"', 'value', 'text', 0, 'kchecktarget'); endif; ?> <button type="submit" name="kcheckgo" class="btn btn-outline-primary border"><?php echo Text::_('COM_KUNENA_GO') ?> </button> <?php endif; ?> </div> </div> </th> <?php endif; ?> <th scope="col"></th> <th scope="col"></th> <th scope="col"></th> </tr> </tfoot> <tbody class="topic-list"> <?php if (empty($this->topics) && empty($this->subcategories)) : ?> <tr> <th scope="col" colspan="4" class="text-center"><?php echo Text::_('COM_KUNENA_VIEW_NO_TOPICS') ?></th> </tr> <?php else : ?> <?php $counter = 2; ?> <?php foreach ($this->topics as $i => $topic) { echo $this->subLayout('Topic/Row') ->set('topic', $topic) ->set('position', 'kunena_topic_' . $i) ->set('checkbox', !empty($this->actions)); if ($this->ktemplate->params->get('displayModule')) { echo $this->subLayout('Widget/Module') ->set('position', 'kunena_topic_' . $counter++) ->set('cols', $cols) ->setLayout('table_row'); } } ?> <?php endif; ?> </tbody> </table> </form> </div> <div class="float-start"> <?php echo $this->subLayout('Widget/Pagination/List') ->set('pagination', $this->pagination->setDisplayedPages(4)) ->set('display', true); ?> </div> <div class="clearfix"></div>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка