* @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Layout\LayoutHelper; foreach ($this->levels as $key => $value) { $allLevels[$value->id] = $value->title; } $this->document->addScriptOptions('menus-edit-modules', ['viewLevels' => $allLevels, 'itemId' => $this->item->id]); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->document->getWebAssetManager(); $wa->useStyle('com_menus.admin-item-edit-modules') ->useScript('com_menus.admin-item-edit-modules'); // Set up the bootstrap modal that will be used for all module editors echo HTMLHelper::_( 'bootstrap.renderModal', 'moduleEditModal', array( 'title' => Text::_('COM_MENUS_EDIT_MODULE_SETTINGS'), 'backdrop' => 'static', 'keyboard' => false, 'closeButton' => false, 'bodyHeight' => '70', 'modalWidth' => '80', 'footer' => '' . '' . '', ) ); ?> fields = array('toggle_modules_assigned','toggle_modules_published'); echo LayoutHelper::render('joomla.menu.edit_modules', $this); ?> modules as $i => &$module) : ?> menuid)) : ?> except || $module->menuid < 0) : ?> published) : ?>
escape($module->access_title); ?> escape($module->position); ?> published) : ?>