'icomoon', 'prefix' => 'icon', 'icons' => $icon_data['icons'], ]; } /** * Enqueue Fontawesome and Material icons css styles * Needed for icon modal to use fonts instead of svgs */ public static function enqueue_fontawesome_styles() { $license = 'use'; if ( get_option( 'tve_fa_kit', '' ) ) { $license = 'pro'; } tve_enqueue_style( 'tve_material', '//fonts.googleapis.com/css?family=Material+Icons+Two+Tone' ); tve_enqueue_style( 'tve_material_community', '//cdn.materialdesignicons.com/5.3.45/css/materialdesignicons.min.css' ); tve_enqueue_style( 'tve_fa', "//$license.fontawesome.com/releases/v6.7.1/css/all.css" ); } /** * Enqueue the CSS for the icon pack used by the user * * @return false|string url */ public static function enqueue_icon_pack() { $handle = 'thrive_icon_pack'; if ( wp_style_is( $handle, 'enqueued' ) ) { return false; } $icon_pack = get_option( 'thrive_icon_pack' ); if ( empty( $icon_pack['css'] ) ) { return false; } $css_url = $icon_pack['css']; $css_version = isset( $icon_pack['css_version'] ) ? $icon_pack['css_version'] : TVE_VERSION; $_url = tve_url_no_protocol( $css_url ); wp_enqueue_style( $handle, $_url, [], $css_version ); return $_url . '?ver=' . $css_version; } } add_action( 'wp', [ 'TCB_Icon_Manager', 'init' ] );