HEX
Server: Apache
System: Linux hp3-wp-1011494.hostingp3.local 3.10.0-1160.139.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Nov 3 13:30:41 UTC 2025 x86_64
User: csh2729955 (2121743)
PHP: 7.4.33
Disabled: shell_exec,exec,system,popen,set_time_limit
Upload Files
File: /home/storage/162/3480162/user/htdocs/wp-content/plugins/enlighter/modules/skltn/JsBuilder.php
<?php
// ---------------------------------------------------------------------------------------------------------------
// -- WP-SKELETON AUTO GENERATED FILE - DO NOT EDIT !!!
// --
// -- Copyright (c) 2016-2020 Andi Dittrich
// -- https://github.com/AndiDittrich/WP-Skeleton
// --
// ---------------------------------------------------------------------------------------------------------------
// --
// -- This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
// -- If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
// --
// ---------------------------------------------------------------------------------------------------------------

// Generate Dynamic JS Files

namespace Enlighter\skltn;

class JsBuilder{
    
    // cached raw css
    private $_rawBuffer = '';
    
    public function __construct(){
    }

     // add raw js
    public function addRaw($js){
        $this->_rawBuffer .= $js . "\n";
    }

    // add raw css from file
    public function addFile($filename){
        $this->_rawBuffer .= file_get_contents($filename) . "\n" ;
    }

    // render ruleset
    public function render(){
        // local output buffer
        $header = "/* Enlighter dynamic generated script - DO NOT EDIT */\n";

        return $header . $this->_rawBuffer;
    }
    
}