Файловый менеджер - Редактировать - /home/lmsyaran/public_html/administrator/components/com_advancedtemplates/views/template/tmpl/default_tree.php
Назад
<?php /** * @package Advanced Template Manager * @version 3.9.5 * * @author Peter van Westen <info@regularlabs.com> * @link http://www.regularlabs.com * @copyright Copyright © 2021 Regular Labs All Rights Reserved * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL */ /** * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Router\Route as JRoute; ksort($this->files, SORT_STRING); ?> <ul class='nav nav-list directory-tree'> <?php foreach ($this->files as $key => $value): ?> <?php if (is_array($value)): ?> <?php $keyArray = explode('/', $key); $fileArray = explode('/', $this->fileName); $count = 0; if (count($fileArray) >= count($keyArray)) { for ($i = 0; $i < count($keyArray); $i++) { if ($keyArray[$i] === $fileArray[$i]) { $count = $count + 1; } } if ($count == count($keyArray)) { $class = "folder show"; } else { $class = "folder"; } } else { $class = "folder"; } ?> <li class="<?php echo $class; ?>"> <a class='folder-url nowrap' href=''> <span class='icon-folder-close'> <?php $explodeArray = explode('/', $key); echo end($explodeArray); ?></span> </a> <?php echo $this->directoryTree($value); ?> </li> <?php endif; ?> <?php if (is_object($value)): ?> <li> <a class="file nowrap" href='<?php echo JRoute::_('index.php?option=com_advancedtemplates&view=template&id=' . $this->id . '&file=' . $value->id) ?>'> <span class='icon-file'> <?php echo $value->name; ?></span> </a> </li> <?php endif; ?> <?php endforeach; ?> </ul>
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка