$info ) :
$icon_set = array();
$icons = array();
$upload_dir = wp_upload_dir();
$path = trailingslashit( $upload_dir['basedir'] );
$file = $path . $info['include'] . '/' . $info['config'];
if ( ! empty( $info['json'] ) ) {
$json = $path . $info['include'] . '/' . $info['json'];
if ( file_exists( $json ) ) {
$json = json_decode( file_get_contents( $json ), true );
$prefix = $json['preferences']['fontPref']['prefix'];
}
} else {
$prefix = $font . '-';
}
if ( file_exists( $file ) ) {
include $file;
}
if ( ! empty( $icons ) ) {
$icon_set = array_merge( $icon_set, $icons );
}
if ( ! empty( $icon_set ) ) :
foreach ( $icon_set as $icons ) {
$count = count( $icons );
}
$button_label = apply_filters( 'stm_delete_iconset_button_label', esc_html__( 'Delete Icon Set', 'stm-elementor-icons' ), $font );
?>