芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/administrator.4/modules/mod_menu/tmpl/default.php
* @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Helper\ModuleHelper; use Joomla\CMS\Language\Text; $doc = $app->getDocument(); $direction = $doc->direction === 'rtl' ? 'float-end' : ''; $class = $enabled ? 'nav flex-column main-nav ' . $direction : 'nav flex-column main-nav disabled ' . $direction; /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $doc->getWebAssetManager(); $wa->getRegistry()->addExtensionRegistryFile('com_cpanel'); $wa->useScript('metismenujs') ->registerAndUseScript('mod_menu.admin-menu', 'mod_menu/admin-menu.min.js', [], ['defer' => true], ['metismenujs']) ->useScript('com_cpanel.admin-system-loader'); // Recurse through children of root node if they exist if ($root->hasChildren()) { echo '
'; echo '
' . "\n"; // WARNING: Do not use direct 'include' or 'require' as it is important to isolate the scope for each call $menu->renderSubmenu(ModuleHelper::getLayoutPath('mod_menu', 'default_submenu'), $root); echo "
\n"; }