* @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Helper\ModuleHelper; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Router\Route; // Load JavaScript message titles Text::script('ERROR'); Text::script('WARNING'); Text::script('NOTICE'); Text::script('MESSAGE'); Text::script('COM_CPANEL_UNPUBLISH_MODULE_SUCCESS'); Text::script('COM_CPANEL_UNPUBLISH_MODULE_ERROR'); /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->document->getWebAssetManager(); $wa->useScript('com_cpanel.admin-cpanel') ->useScript('com_cpanel.admin-addmodule'); $user = Factory::getUser(); // Set up the bootstrap modal that will be used for all module editors echo HTMLHelper::_( 'bootstrap.renderModal', 'moduleDashboardAddModal', array( 'title' => Text::_('COM_CPANEL_ADD_MODULE_MODAL_TITLE'), 'backdrop' => 'static', 'url' => Route::_('index.php?option=com_cpanel&task=addModule&function=jSelectModuleType&position=' . $this->escape($this->position)), 'bodyHeight' => '70', 'modalWidth' => '80', 'footer' => '' . '', ) ); ?>
quickicons) : foreach ($this->quickicons as $iconmodule) { echo ModuleHelper::renderModule($iconmodule, array('style' => 'well')); } endif; foreach ($this->modules as $module) { echo ModuleHelper::renderModule($module, array('style' => 'well')); } ?> authorise('core.create', 'com_modules')) : ?>