| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/vesoul/plugins/system/modals/src/Extension/ |
Upload File : |
<?php
/**
* @package Modals
* @version 15.0.0
*
* @author Peter van Westen <info@regularlabs.com>
* @link https://regularlabs.com
* @copyright Copyright © 2025 Regular Labs All Rights Reserved
* @license GNU General Public License version 2 or later
*/
namespace RegularLabs\Plugin\System\Modals\Extension;
use RegularLabs\Library\Html as RL_Html;
use RegularLabs\Library\Input as RL_Input;
use RegularLabs\Library\Plugin\System as RL_SystemPlugin;
use RegularLabs\Plugin\System\Modals\Clean;
use RegularLabs\Plugin\System\Modals\Document;
use RegularLabs\Plugin\System\Modals\Params;
use RegularLabs\Plugin\System\Modals\Replace;
defined('_JEXEC') or die;
final class Modals extends RL_SystemPlugin
{
public $_enable_in_admin = true;
public $_lang_prefix = 'MDL';
public function init(): void
{
$params = Params::get();
$this->_enable_in_admin = $params->enable_admin;
}
public function processArticle(
string &$string,
string $area = 'article',
string $context = '',
mixed $article = null,
int $page = 0
): void
{
Replace::replaceTags($string, $area, $context);
}
protected function changeDocumentBuffer(string &$buffer): bool
{
if (RL_Input::getInt('ml', 0) && ! RL_Input::getInt('fullpage', 0))
{
Document::setTemplate();
}
return Replace::replaceTags($buffer, 'component');
}
protected function changeFinalHtmlOutput(string &$html): bool
{
[$pre, $body, $post] = RL_Html::getBody($html);
Replace::replaceTags($body, 'html');
Clean::cleanFinalHtmlOutput($pre);
$html = $pre . $body . $post;
return true;
}
protected function changeModulePositionOutput(string &$buffer, object &$params): void
{
Replace::replaceTags($buffer, 'body');
}
protected function cleanFinalHtmlOutput(string &$html): void
{
Document::removeHeadStuff($html);
}
protected function loadStylesAndScripts(string &$buffer): void
{
Document::loadStylesAndScripts();
}
}