balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

Icon.php (761B)


      1 <?php
      2 namespace Welbim\Helper\Elementor;
      3 
      4 class Icon {
      5 
      6 	public function __construct() {
      7 		add_filter( 'elementor/icons_manager/additional_tabs', array( $this, 'custom_icon' ) );
      8 	}
      9 
     10 	function custom_icon( $array ) {
     11 		$plugin_url = plugins_url();
     12 
     13 		return array(
     14 			'custom-icon' => array(
     15 				'name'          => 'custom-icon',
     16 				'label'         => 'Welbim Icon',
     17 				'url'           => '',
     18 				'enqueue'       => array(
     19 					$plugin_url . '/welbim-core/assets/elementor/icon/css/flaticon-icon.css',
     20 				),
     21 				'prefix'        => '',
     22 				'displayPrefix' => '',
     23 				'labelIcon'     => 'welbim-icon',
     24 				'ver'           => '',
     25 				'fetchJson'     => $plugin_url . '/welbim-core/assets/elementor/icon/js/regular.js',
     26 				'native'        => 1,
     27 			),
     28 		);
     29 	}
     30 }