HEX
Server: Apache
System: Linux webd006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/zwafgyp/dodolodge-net/wp-content/themes/hotel-wp/inc/widgets/class-extend-icons.php
<?php
//if ( ! defined( 'ABSPATH' ) ) {
//	exit();
//}
//
//class Thim_Hotel_Elementor_Extend_Icons {
//	private static $instance = null;
//
//	public function __construct() {
//		add_action( 'elementor/editor/before_enqueue_styles', array( $this, 'font_setup' ) );
//	}
//
//	public function font_setup() {
//		wp_enqueue_style( 'thim-font-icon', THIM_URI . 'assets/css/thim-icons.css' );
//		wp_enqueue_style( 'thim-icomoon', THIM_URI . 'assets/css/icomoon.css' );
//		wp_enqueue_style( 'thim-ionicons', THIM_URI . 'assets/css/ionicons.css' );
//		wp_enqueue_style( 'thim-open-iconic', THIM_URI . 'assets/css/open-iconic.css' );
//		wp_enqueue_style( 'thim-typicons', THIM_URI . 'assets/css/typicons.css' );
//	}
//
//	public static function get_font_ionicons() {
//		$ionicons = apply_filters( 'thim_list_ionicons', array(
//			'ion-ios-ribbon'       => 'ion-ios-ribbon',
//			'ion-ios-flower'       => 'ion-ios-flower',
//			'ion-ios-nutrition'    => 'ion-ios-nutrition',
//			'ion-ios-bonfire'      => 'ion-ios-bonfire',
//			'ion-ios-planet'       => 'ion-ios-planet',
//			'ion-ios-thunderstorm' => 'ion-ios-thunderstorm',
//			'ion-ios-cube'         => 'ion-ios-cube',
//			'ion-ios-leaf'         => 'ion-ios-leaf',
//			'ion-ios-rainy'        => 'ion-ios-rainy',
//			'ion-ios-umbrella'     => 'ion-ios-umbrella',
//			'ion-ios-nuclear'      => 'ion-ios-nuclear',
//			'ion-ios-person'       => 'ion-ios-person',
//			'ion-ios-heart'        => 'ion-ios-heart',
//			'ion-ios-briefcase'    => 'ion-ios-briefcase',
//			'ion-ios-locate'       => 'ion-ios-locate',
//			'ion-ios-calendar'     => 'ion-ios-calendar',
//			'ion-ios-chatbubbles'  => 'ion-ios-chatbubbles',
//			'ion-ios-wifi'         => 'ion-ios-wifi',
//			'ion-ios-wine'         => 'ion-ios-wine',
//			'ion-ios-tv'           => 'ion-ios-tv',
//			'ion-ios-key'          => 'ion-ios-key',
//			'ion-ios-cafe'         => 'ion-ios-cafe',
//			'ion-ios-bed'          => 'ion-ios-bed',
//		) );
//
//		return $ionicons;
//	}
//
//	public static function get_instance() {
//		if ( self::$instance == null ) {
//			self::$instance = new self;
//		}
//
//		return self::$instance;
//	}
//}
//
//Thim_Hotel_Elementor_Extend_Icons::get_instance();


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

class Thim_Hotel_Elementor_Extend_Icons {
	private static $instance = null;

	public function __construct() {
		add_action( 'elementor/editor/before_enqueue_styles', array( $this, 'font_setup' ) );
	}

	public function font_setup() {
		wp_enqueue_style( 'thim-font-icon', THIM_URI . 'assets/css/thim-icons.css' );
//		wp_enqueue_style( 'thim-icomoon', THIM_URI . 'assets/css/icomoon.css' );
//		wp_enqueue_style( 'thim-ionicons', THIM_URI . 'assets/css/ionicons.css' );
		wp_enqueue_style( 'thim-open-iconic', THIM_URI . 'assets/css/open-iconic.css' );
		wp_enqueue_style( 'thim-typicons', THIM_URI . 'assets/css/typicons.css' );
	}

	public static function get_instance() {
		if ( self::$instance == null ) {
			self::$instance = new self;
		}

		return self::$instance;
	}
}

Thim_Hotel_Elementor_Extend_Icons::get_instance();


function thim_register_all_icon_type_ionicons( $icons ) {
	$font_ionicons = array(
		array( 'ion-ios-ribbon' => esc_html__( 'ion-ios-ribbon', 'hotel-wp' ) ),
		array( 'ion-ios-flower' => esc_html__( 'ion-ios-flower', 'hotel-wp' ) ),
		array( 'ion-ios-nutrition' => esc_html__( 'ion-ios-nutrition', 'hotel-wp' ) ),
		array( 'ion-ios-bonfire' => esc_html__( 'ion-bonfire', 'hotel-wp' ) ),
		array( 'ion-ios-planet' => esc_html__( 'ion-planet', 'hotel-wp' ) ),
		array( 'ion-ios-thunderstorm' => esc_html__( 'ion-lightbulb', 'hotel-wp' ) ),
		array( 'ion-ios-cube' => esc_html__( 'ion-cube', 'hotel-wp' ) ),
		array( 'ion-ios-leaf' => esc_html__( 'ion-leaf', 'hotel-wp' ) ),
		array( 'ion-ios-rainy' => esc_html__( 'ion-waterdrop', 'hotel-wp' ) ),
		array( 'ion-ios-umbrella' => esc_html__( 'ion-umbrella', 'hotel-wp' ) ),
		array( 'ion-ios-nuclear' => esc_html__( 'ion-nuclear', 'hotel-wp' ) ),
		array( 'ion-ios-person' => esc_html__( 'ion-person', 'hotel-wp' ) ),
		array( 'ion-ios-heart' => esc_html__( 'ion-heart', 'hotel-wp' ) ),
		array( 'ion-ios-briefcase' => esc_html__( 'ion-briefcase', 'hotel-wp' ) ),
		array( 'ion-ios-locate' => esc_html__( 'ion-location', 'hotel-wp' ) ),
		array( 'ion-ios-calendar' => esc_html__( 'ion-calendar', 'hotel-wp' ) ),
		array( 'ion-ios-chatbubbles' => esc_html__( 'ion-chatbubbles', 'hotel-wp' ) ),
		array( 'ion-ios-wifi' => esc_html__( 'ion-wifi', 'hotel-wp' ) ),
		array( 'ion-ios-wine' => esc_html__( 'ion-wine', 'hotel-wp' ) ),
		array( 'ion-ios-tv' => esc_html__( 'ion-tv', 'hotel-wp' ) ),
		array( 'ion-ios-key' => esc_html__( 'ion-key', 'hotel-wp' ) ),
		array( 'ion-ios-cafe' => esc_html__( 'ion-cafe', 'hotel-wp' ) ),
		array( 'ion-ios-bed' => esc_html__( 'ion-bed', 'hotel-wp' ) ),
	);

	return array_merge( $icons, $font_ionicons );
}

// add icon  ionicons for VC

add_action( 'vc_backend_editor_enqueue_js_css', 'thim_vc_iconpicker_editor_jscss' );
add_action( 'vc_frontend_editor_enqueue_js_css', 'thim_vc_iconpicker_editor_jscss' );
function thim_vc_iconpicker_editor_jscss() {
	wp_enqueue_style( 'thim-admin-ionicons' );
}

add_filter( 'vc_iconpicker-type-ionicons', 'thim_register_all_icon_type_ionicons' );

// add font for icon ionicons EL
add_filter( 'thim-builder-el-ionicons-icon', 'thim_el_iconpicker_type_ionicons' );
function thim_el_iconpicker_type_ionicons() {
	$arr              = apply_filters( 'vc_iconpicker-type-ionicons', array() );
	$list_new_icon_el = array();
	if ( ! empty( $arr ) ) {
		foreach ( $arr as $group => $icons ) {
			foreach ( $icons as $key => $label ) {
				$list_new_icon_el[$key] = $key;
			}
		}
	}

	return apply_filters( 'thim_list_ionicons', $list_new_icon_el );

}