芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/administrator.5/components/com_menus/tmpl/item/edit_container.php
* @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Language\Text; use Joomla\Component\Menus\Administrator\Helper\MenusHelper; use Joomla\Registry\Registry; // Initialise related data. $menuLinks = MenusHelper::getMenuLinks('main'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->document->getWebAssetManager(); $wa->useScript('joomla.treeselectmenu') ->useStyle('com_menus.admin-item-edit-container') ->useScript('com_menus.admin-item-edit-container'); ?>
form->getLabel('hideitems', 'params'); ?>
:
,
| :
,
item->params); $hiddenLinks = (array) $params->get('hideitems'); foreach ($menuLinks as $i => $link) : ?> element): $lang->load("$extension.sys", JPATH_ADMINISTRATOR) || $lang->load("$extension.sys", JPATH_ADMINISTRATOR . '/components/' . $extension); endif; if ($prevlevel < $link->level) { echo '
'; } elseif ($prevlevel > $link->level) { echo str_repeat('
', $prevlevel - $link->level); } else { echo ''; } $selected = in_array($link->value, $hiddenLinks) ? 1 : 0; ?>
value > 1 ? ' name="jform[params][hideitems][]" ' : ''; ?> id="value; ?>" value="value; ?>" class="novalidate checkbox-toggle" > value == 1): ?>
text); ?>
', $link->level); } $prevlevel = $link->level; ?>