| Server IP : 213.186.33.4 / Your IP : 216.73.216.222 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www2/wp-content/plugins/so-widgets-bundle/icons/ |
Upload File : |
<?php
define( 'SITEORIGIN_WIDGETS_ICONS', true );
function siteorigin_widgets_icon_families_filter( $families ){
$bundled = array(
'elegantline' => __( 'Elegant Themes Line Icons', 'so-widgets-bundle' ),
'fontawesome' => __( 'Font Awesome', 'so-widgets-bundle' ),
'genericons' => __( 'Genericons', 'so-widgets-bundle' ),
'icomoon' => __( 'Icomoon Free', 'so-widgets-bundle' ),
'typicons' => __( 'Typicons', 'so-widgets-bundle' ),
'ionicons' => __( 'Ionicons', 'so-widgets-bundle' ),
);
foreach ( $bundled as $font => $name) {
include_once plugin_dir_path(__FILE__) . $font . '/filter.php';
$style_uri = plugin_dir_url( __FILE__ ) . $font . '/style.css';
$style_uri .= '?ver=' . filemtime( plugin_dir_path(__FILE__) . $font . '/style.css' ); // cache busting.
$families[$font] = array(
'name' => $name,
'style_uri' => $style_uri,
'icons' => apply_filters( 'siteorigin_widgets_icons_' . $font, array() ),
);
$styles = apply_filters( 'siteorigin_widgets_icon_styles_' . $font, array() );
if ( ! empty( $styles ) ) {
$families[ $font ]['styles'] = $styles;
}
}
return $families;
}
add_filter( 'siteorigin_widgets_icon_families', 'siteorigin_widgets_icon_families_filter' );