* @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Layout\LayoutHelper; use Joomla\CMS\Router\Route; use Joomla\CMS\Session\Session; if (Factory::getApplication()->isClient('site')) { Session::checkToken('get') or die(Text::_('JINVALID_TOKEN')); } /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->document->getWebAssetManager(); $wa->useScript('com_modules.admin-modules-modal')->useScript('modal-content-select'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $editor = Factory::getApplication()->getInput()->get('editor', '', 'cmd'); $link = 'index.php?option=com_modules&view=modules&layout=modal&tmpl=component&' . Session::getFormToken() . '=1'; if (!empty($editor)) { $link .= '&editor=' . $editor; } ?>
$this]); ?> total > 0) : ?> 'icon-trash', 0 => 'icon-times', 1 => 'icon-check', 2 => 'icon-folder', ]; foreach ($this->items as $i => $item) : $attrs = 'data-content-select data-content-type="com_modules.module"' . ' data-id="' . $item->id . '"' . ' data-title="' . $this->escape($item->title) . '"' . ' data-position="' . $this->escape($item->position) . '"' . ' data-module-element="' . $this->escape($item->module) . '"' // @TODO: Remove data-editor and data-module after full transition to postMessage() . ' data-editor="' . $this->escape($editor) . '"' . ' data-module="' . ((int) $item->id) . '"'; $attrs1 = $attrs; $attrs1 .= ' data-html="{loadmoduleid ' . ((int) $item->id) . '}"'; $attrs2 = $attrs; $attrs2 .= ' data-html="{loadposition ' . $this->escape($item->position) . '}"'; ?>
, ,
position) : ?> name; ?> pages; ?> escape($item->access_level); ?> id; ?>
pagination->getListFooter(); ?>