<?php
if (!defined('ABSPATH'))
    exit; // Exit if accessed directly


add_filter( 'elementor/icons_manager/additional_tabs', 'mae_iconpicker_register' );

function mae_iconpicker_register( $icons = array() ) {

	$icons['gettree'] = array(
		'name'          => 'gettree',
		'label'         => esc_html__( '30 Gardening Line ', 'tfl' ),
		'labelIcon'     => 'gettreeicon-gardening_hose',
		'prefix'        => 'gettreeicon-',
		'displayPrefix' => '',
		'url'           => TFL_PLG_PATH . 'assets/css/gettree-icons.css',
		'fetchJson'     => TFL_PLG_PATH . 'assets/fonts/gettree-icons/gettree-icons.json',
		'ver'           => '1.0.0',
	);

	$icons['50outlineicons'] = array(
		'name'          => '50outlineicons',
		'label'         => esc_html__( '50 Outline Icon ', 'tfl' ),
		'labelIcon'     => 'gettre-outline-icon-BENCH',
		'prefix'        => 'gettre-outline-icon-',
		'displayPrefix' => '',
		'url'           => TFL_PLG_PATH . 'assets/css/50outlineicons.css',
		'fetchJson'     => TFL_PLG_PATH . 'assets/fonts/50outlineicons/50outline-icons.json',
		'ver'           => '1.0.0',
	);

	$icons['20gardeningicon'] = array(
		'name'          => '20gardeningicon',
		'label'         => esc_html__( '20 Gardening Icon ', 'tfl' ),
		'labelIcon'     => 'gardening-line-icon-barn',
		'prefix'        => 'gardening-line-icon-',
		'displayPrefix' => '',
		'url'           => TFL_PLG_PATH . 'assets/css/20-gardening-icon.css',
		'fetchJson'     => TFL_PLG_PATH . 'assets/fonts/20-gardening-icon/20-gardening-icon.json',
		'ver'           => '1.0.0',
	);

    $icons['services'] = array(
        'name'          => 'services',
        'label'         => esc_html__( 'Services Icon ', 'tfl' ),
        'labelIcon'     => 'services-phone-call',
        'prefix'        => 'services-',
        'displayPrefix' => '',
        'url'           => TFL_PLG_PATH . 'assets/fonts/services/style.css',
        'fetchJson'     => TFL_PLG_PATH . 'assets/fonts/services/selection.json',
        'ver'           => '1.0.0',
    );

	return $icons;
}


function enqueue_load_flaticon() {
    wp_enqueue_style( 'flaticon', TFL_PLG_PATH . 'assets/css/flaticon.css' );
}

add_action( 'wp_enqueue_scripts', 'enqueue_load_flaticon');