AnonSec Shell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.144
Web Server : Apache
System : Linux webd003.cluster120.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 : maitricfuz ( 93378)
PHP Version : 8.4.10
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/maitricfuz/www/saint-martin-lg/plugins/editors-xtd/sourcerer/src/Extension/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/maitricfuz/www/saint-martin-lg/plugins/editors-xtd/sourcerer/src/Extension/Sourcerer.php
<?php
/**
 * @package         Sourcerer
 * @version         12.2.8
 * 
 * @author          Peter van Westen <info@regularlabs.com>
 * @link            https://regularlabs.com
 * @copyright       Copyright © 2026 Regular Labs All Rights Reserved
 * @license         GNU General Public License version 2 or later
 */

namespace RegularLabs\Plugin\EditorButton\Sourcerer\Extension;

use Joomla\CMS\Uri\Uri as JUri;
use RegularLabs\Library\Document as RL_Document;
use RegularLabs\Library\Plugin\EditorButton as RL_EditorButtonPlugin;

defined('_JEXEC') or die;

final class Sourcerer extends RL_EditorButtonPlugin
{
    protected $button_icon = '<svg viewBox="0 0 24 24" style="fill:none;" width="24" height="24" fill="none" stroke="currentColor">'
    . '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4" />'
    . '</svg>';

    protected function loadScripts(): void
    {
        $params = $this->getParams();

        RL_Document::scriptOptions([
            'syntax_word'    => $params->syntax_word,
            'tag_characters' => explode('.', $params->tag_characters),
            'color_code'     => (bool) $params->color_code,
            'root'           => JUri::root(true),
        ], 'sourcerer_button');

        RL_Document::script('sourcerer.button');
    }
}

Anon7 - 2022
AnonSec Team