CoreFiles by mySites.guru
modal.php34 lines, 1,152 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
3574293f54520b1bbc446c25df7c37d6
sha1
d8ac30fe0696aeb562482d9194ca11a056c147fb
sha256
923e778b61fc876a9c7aa72820907877e0167e7a8bb27b81d0e97afe7bce2edb
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_modules
 *
 * @copyright   (C) 2009 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/** @var \Joomla\Component\Modules\Administrator\View\Module\HtmlView $this */

// A backward compatibility for bootstrap modals: hide toolbar
// @TODO: Remove in 6.0
$this->getDocument()->getWebAssetManager()->addInlineScript('
if (window.parent.Joomla.Modal) {
    const modal = window.parent.Joomla.Modal.getCurrent();
    const toolbar = document.querySelector(".component .subhead")
    if (modal && modal.nodeName !== "JOOMLA-DIALOG" && toolbar) {
        toolbar.style.display = "none";
        console.warn("Update your modal for Module editing to use Joomla Dialog");
    }
}
', ['name' => 'inline.module-modal-fix'], ['type' => 'module']);
?>
<div class="subhead noshadow mb-3">
    <?php echo $this->getDocument()->getToolbar('toolbar')->render(); ?>
</div>
<div class="container-popup">
    <?php $this->setLayout('edit'); ?>
    <?php echo $this->loadTemplate(); ?>
</div>

The same content is in 108 releases, Joomla 5.2.0-alpha1 to 6.2.0-alpha1. See them all, or every version of this file.