Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.16.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : class-fonticons.php
<?php
namespace um\core;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( ! class_exists( 'um\core\FontIcons' ) ) {

	/**
	 * Class FontIcons
	 * @package um\core
	 */
	class FontIcons {

		/**
		 * The list of the FontIcons.
		 *
		 * @var array
		 */
		public $all = array();

		/**
		 * FontIcons constructor.
		 */
		public function __construct() {
			$cached_option = get_option( 'um_cache_fonticons', array() );

			if ( empty( $cached_option ) ) {
				$files['ii'] = UM_PATH . 'assets/libs/legacy/fonticons/fonticons-ii.css';
				$files['fa'] = UM_PATH . 'assets/libs/legacy/fonticons/fonticons-fa.css';

				$array = array();
				foreach ( $files as $c => $file ) {
					$css = file_get_contents( $file );

					if ( 'fa' === $c ) {
						preg_match_all( '/\.(um-faicon-.*?):before/', $css, $matches );
					} else {
						preg_match_all( '/\.(um-icon-.*?):before/', $css, $matches );
					}

					foreach ( $matches[1] as $match ) {
						$icon    = str_replace( ':before', '', $match );
						$array[] = $icon;
					}
					$array = array_unique( $array );
				}

				update_option( 'um_cache_fonticons', $array );
			}

			$this->all = $cached_option;
		}
	}
}
© 2025 XylotrechusZ