www_archline_hu/deployed/regularlabs/plugins/system/modals/modal.php
LÁZÁR Imre AI Agent f18df8b9b3 feat(deployed): add Regular Labs suite (no-source, vetted live)
Regular Labs (Peter van Westen): Advanced Module Manager 7.7.1 + Sourcerer 7.4.0 + Modals 9.13.0 + RegularLabs library 18.12.3953; commercial (regularlabs.com) -> deployed files.

Signed-off-by: LÁZÁR Imre <imre@illusion.hu>
Assisted-by: claude-code@claude-opus-4-8
2026-07-16 11:24:43 +02:00

60 lines
1.7 KiB
PHP

<?php
/**
* @package Modals
* @version 9.13.0
*
* @author Peter van Westen <info@regularlabs.com>
* @link http://www.regularlabs.com
* @copyright Copyright © 2018 Regular Labs All Rights Reserved
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
defined('_JEXEC') or die;
require_once JPATH_LIBRARIES . '/regularlabs/autoload.php';
use RegularLabs\Library\Parameters as RL_Parameters;
use RegularLabs\Library\RegEx as RL_RegEx;
?>
<?php if (JFactory::getApplication()->input->get('iframe')) : ?>
<?php
$this->language = JFactory::getDocument()->language;
$this->direction = JFactory::getDocument()->direction;
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>"
dir="<?php echo $this->direction; ?>">
<head>
<jdoc:include type="head" />
</head>
<body class="contentpane modal">
<jdoc:include type="message" />
<jdoc:include type="component" />
</body>
</html>
<?php else: ?>
<?php
$config = RL_Parameters::getInstance()->getPluginParams('modals');
?>
<?php if ($config->load_head) : ?>
<?php
// Remove the extra loading of another jQuery file (already loaded in parent page)
$headerdata = JFactory::getDocument()->getHeadData();
foreach ($headerdata['scripts'] as $file => $type)
{
if ( ! RL_RegEx::match('/jquery(-(noconflict|migrate))?(\.min)?\.js', $file))
{
continue;
}
unset($headerdata['scripts'][$file]);
}
$headerdata = JFactory::getDocument()->setHeadData($headerdata);
?>
<jdoc:include type="head" />
<?php endif; ?>
<jdoc:include type="message" />
<jdoc:include type="component" />
<?php endif; ?>