Uname:Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64

403WebShell
403Webshell
Server IP : 188.114.96.2  /  Your IP : 104.23.243.201
Web Server : Apache/2.4.59 (Debian)
System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
User : edlftp ( 1002)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/nicolasj/temp/fusion-builder/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nicolasj/temp/fusion-builder/inc/class-fusion-elements-dynamic-css.php
<?php
/**
 * Handle dynamic-CSS from Fusion Elements.
 *
 * @package fusion-builder
 * @since 2.0
 */

/**
 * Handle dynamic-CSS from Fusion Elements.
 *
 * @since 2.0
 */
class Fusion_Elements_Dynamic_CSS {

	/**
	 * An array of styles.
	 *
	 * @static
	 * @access private
	 * @since 2.0
	 * @var array
	 */
	private static $styles_array = [];

	/**
	 * The class contructor.
	 * Add all actions/filters here.
	 *
	 * @access public
	 * @since 2.0
	 */
	public function __construct() {
		add_filter( 'fusion_dynamic_css_final', [ $this, 'append_compiled_styles' ], 1020 );
	}

	/**
	 * Appends the compiled styles to our final dynamic-CSS.
	 *
	 * @access public
	 * @since 2.0
	 * @param string $css Existing styles.
	 * @return string     Existing styles with the elements dynamic styles appended.
	 */
	public function append_compiled_styles( $css ) {
		return $css . $this->compile_css();
	}

	/**
	 * Compiles the CSS array to a string.
	 *
	 * @access private
	 * @since 2.0
	 * @return string
	 */
	private function compile_css() {
		$helpers = new Fusion_Dynamic_CSS_Helpers();
		return $helpers->parser( self::$styles_array, true );
	}

	/**
	 * Add styles to the $styles_array property.
	 *
	 * @static
	 * @access public
	 * @since 2.0
	 * @param array $styles An array of styles to add.
	 * @return void
	 */
	public static function add_styles_to_array( $styles ) {
		self::$styles_array = array_merge_recursive( self::$styles_array, $styles );
	}
}

/* Omit closing PHP tag to avoid "Headers already sent" issues. */

Youez - 2016 - github.com/yon3zu
LinuXploit