403Webshell
Server IP : 64.223.137.62  /  Your IP : 104.23.197.97
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver9 5.15.0-170-generic #180-Ubuntu SMP Fri Jan 9 16:10:31 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/cwalakestreet.com/wp-content/plugins/diviflash/includes/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/cwalakestreet.com/wp-content/plugins/diviflash/includes/classes/df-class-localize-vars.php
<?php

/**
 * 
 * Example:
 * DF_Localize_Vars::enqueue( 'df_cpt_filter', array( 
 *      'class' => $order_class,
 *      'layout' => $this->props['layout']
 *  ) );
 */
class DF_Localize_Vars {

    private static $scripts;

    static function enqueue( $handle, $args ){
         if ( ! isset( self::$scripts[$handle] ) ) {
              self::$scripts[$handle] = array();
         }

         self::$scripts[$handle][$args['class']] = $args;

         add_action( 'wp_footer', array( __CLASS__, 'enqueue_scripts' ) );

         return count( self::$scripts );
    }

    static function enqueue_scripts(){
         if ( self::$scripts ) {
              foreach( self::$scripts as $handle => $args ){
                   wp_enqueue_script( $handle );
                   wp_localize_script( $handle, $handle, $args );
              }
         }
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit