Plugin Directory

Changeset 3379380


Ignore:
Timestamp:
10/16/2025 10:44:51 AM (5 months ago)
Author:
anantsites
Message:

Fixed Font Awesome enqueue file.

Location:
anant-addons-for-elementor/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • anant-addons-for-elementor/trunk/anant-addons-for-elementor.php

    r3379255 r3379380  
    55* Author: Anantsites
    66* Author URI: https://anantsites.com/
    7 * Version: 1.2.4
     7* Version: 1.2.5
    88* License: GPLv3
    99* License URI: https://opensource.org/licenses/GPL-3.0
     
    7474                define( 'ANANT_PATH', plugin_dir_path( ANANT ) );
    7575                define( 'ANANT_URL', plugin_dir_url( ANANT ) );
    76                 define( 'ANANT_VERSION', '1.2.4' ); //Plugin Version
     76                define( 'ANANT_VERSION', '1.2.5' ); //Plugin Version
    7777                define( 'ANANT_MIN_ELEMENTOR_VERSION', '3.0.0' ); //MINIMUM ELEMENTOR Plugin Version
    7878                define( 'ANANT_MIN_PHP_VERSION', '7.4' ); //MINIMUM PHP Plugin Version
     
    9191            add_action( 'elementor/elements/categories_registered', [ $this, 'wc_create_category' ] );                  // Add a custom category for panel widgets
    9292            add_action( 'elementor/elements/categories_registered', [ $this, 'wc_hf_create_category' ] );               // Add a custom header footer category for panel widgets
     93            add_action( 'wp_enqueue_scripts', [ $this,'anant_enqueue_font_awesome'], 20 );
    9394        }
    9495
     
    224225
    225226            $set_categories->call( $elements_manager, $categories );
     227        }
     228       
     229        /** Function for Font Awesome 5, Social Icons, Icon List */
     230        public function anant_enqueue_font_awesome() {
     231            if ( class_exists( 'Elementor\Plugin' ) ) {
     232
     233                // Ensure Elementor Icons CSS is loaded.
     234                wp_enqueue_style(
     235                    'anant-elementor-icons',
     236                    plugins_url( '/elementor/assets/lib/eicons/css/elementor-icons.min.css', 'elementor' ),
     237                    [],
     238                    '5.34.0'
     239                );
     240                wp_enqueue_style(
     241                    'anant-icons-list',
     242                    plugins_url( '/elementor/assets/css/widget-icon-list.min.css', 'elementor' ),
     243                    [],
     244                    '3.24.3'
     245                );
     246                wp_enqueue_style(
     247                    'anant-social-icons',
     248                    plugins_url( '/elementor/assets/css/widget-social-icons.min.css', 'elementor' ),
     249                    [],
     250                    '3.24.0'
     251                );
     252                wp_enqueue_style(
     253                    'anant-social-share-icons-brands',
     254                    plugins_url( '/elementor/assets/lib/font-awesome/css/brands.css', 'elementor' ),
     255                    [],
     256                    '5.15.3'
     257                );
     258
     259                wp_enqueue_style(
     260                    'anant-social-share-icons-fontawesome',
     261                    plugins_url( '/elementor/assets/lib/font-awesome/css/fontawesome.css', 'elementor' ),
     262                    [],
     263                    '5.15.3'
     264                );
     265                wp_enqueue_style(
     266                    'anant-nav-menu-icons',
     267                    plugins_url( '/elementor/assets/lib/font-awesome/css/solid.css', 'elementor' ),
     268                    [],
     269                    '5.15.3'
     270                );
     271            }
    226272        }
    227273
     
    257303    }
    258304} );
     305
  • anant-addons-for-elementor/trunk/inc/initializer.php

    r3379255 r3379380  
    9797        }
    9898
    99        
    100         add_action( 'wp_enqueue_scripts', 'anant_enqueue_font_awesome', 20 );
    10199    }
    102100
     
    190188       
    191189            wp_send_json_success(array('wishlist' => $wishlist, 'wishlist_count' => count($wishlist)));
    192         }
    193     }
    194    
    195     /** Function for Font Awesome 5, Social Icons, Icon List */
    196     function anant_enqueue_font_awesome() {
    197 
    198         if ( class_exists( 'Elementor\Plugin' ) ) {
    199 
    200             // Ensure Elementor Icons CSS is loaded.
    201             wp_enqueue_style(
    202                 'blogfoel-elementor-icons',
    203                 plugins_url( '/elementor/assets/lib/eicons/css/elementor-icons.min.css', 'elementor' ),
    204                 [],
    205                 '5.34.0'
    206             );
    207             wp_enqueue_style(
    208                 'blogfoel-icons-list',
    209                 plugins_url( '/elementor/assets/css/widget-icon-list.min.css', 'elementor' ),
    210                 [],
    211                 '3.24.3'
    212             );
    213             wp_enqueue_style(
    214                 'blogfoel-social-icons',
    215                 plugins_url( '/elementor/assets/css/widget-social-icons.min.css', 'elementor' ),
    216                 [],
    217                 '3.24.0'
    218             );
    219             wp_enqueue_style(
    220                 'blogfoel-social-share-icons-brands',
    221                 plugins_url( '/elementor/assets/lib/font-awesome/css/brands.css', 'elementor' ),
    222                 [],
    223                 '5.15.3'
    224             );
    225 
    226             wp_enqueue_style(
    227                 'blogfoel-social-share-icons-fontawesome',
    228                 plugins_url( '/elementor/assets/lib/font-awesome/css/fontawesome.css', 'elementor' ),
    229                 [],
    230                 '5.15.3'
    231             );
    232             wp_enqueue_style(
    233                 'blogfoel-nav-menu-icons',
    234                 plugins_url( '/elementor/assets/lib/font-awesome/css/solid.css', 'elementor' ),
    235                 [],
    236                 '5.15.3'
    237             );
    238190        }
    239191    }
  • anant-addons-for-elementor/trunk/readme.txt

    r3379255 r3379380  
    55Requires PHP: 7.4
    66Tested up to: 6.8
    7 Stable tag: 1.2.4
    8 Version: 1.2.4
     7Stable tag: 1.2.5
     8Version: 1.2.5
    99License: GPLv3 or later
    1010License URI: https://opensource.org/licenses/GPL-3.0
     
    150150
    151151== Changelog ==
     152= 1.2.5 =
     153* Fixed Font Awesome enqueue file.
    152154= 1.2.4 =
    153155* Fixed icons load issue.
Note: See TracChangeset for help on using the changeset viewer.