<?php 

if(!function_exists('ximsa_register_custom_icon_library')){
    add_filter('elementor/icons_manager/additional_tabs', 'ximsa_register_custom_icon_library');
    function ximsa_register_custom_icon_library($tabs){
        $custom_tabs = [
            'extra_icon2' => [
                'name' => 'gl-fp-icon',
                'label' => esc_html__( 'Ximsa Font Awesome Pro', 'ximsa' ),
                'url' => get_template_directory_uri() . '/assets/css/fontawesome-all.css',
                'enqueue' => [ get_template_directory_uri() . '/assets/css/fontawesome-all.css' ],
                'prefix' => '',
                'displayPrefix' => '',
                'labelIcon' => 'fas fa-barcode-alt',
                'ver' => XIMSA_VERSION,
                'fetchJson' => get_template_directory_uri() . '/assets/elementor-icon/ximsa-pro.js?v='.XIMSA_VERSION,
                'native' => true,
            ]

        ];

        $tabs = array_merge($custom_tabs, $tabs);

        return $tabs;
    }
}