CoreFiles by mySites.guru
modal.php36 lines, 1,149 bytes, from Joomla_5.1.4-Stable-Full_Package.zip
Raw History Compare with 5.1.3
md5
a7c542f331e2f20a24e9ed49db37be86
sha1
72613e3f74b69ecb2ff906b0f3bfc739523687b9
sha256
a73e2b084ecdcfc932adf413f4711e62beffd2e3eee6f753dcab68b8fe8bf7eb
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_plugins
 *
 * @copyright   (C) 2005 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\Plugins\Administrator\View\Plugin\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 Plugin editing to use Joomla Dialog");
    }
}
', ['name' => 'inline.plugin-modal-fix'], ['type' => 'module']);

?>
<div class="subhead noshadow mb-3">
    <?php echo $this->document->getToolbar('toolbar')->render(); ?>
</div>
<div class="container-popup">
    <?php $this->setLayout('edit'); ?>
    <?php echo $this->loadTemplate(); ?>
</div>

The same content is in 11 releases, Joomla 5.1.1-rc1 to 5.1.4. See them all, or every version of this file.