-
Notifications
You must be signed in to change notification settings - Fork 59
/
header-footer-elementor.php
98 lines (88 loc) · 2.65 KB
/
header-footer-elementor.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
/**
* Plugin Name: Ultimate Addons for Elementor Lite
* Plugin URI: https://wordpress.org/plugins/header-footer-elementor/
* Description: Formerly known as "Elementor Header & Footer Builder", this powerful plugin allows you to create custom headers and footers with Elementor and display them in selected locations. You can also create custom Elementor blocks and place them anywhere on your website using a shortcode.
* Author: Brainstorm Force
* Author URI: https://www.brainstormforce.com/
* Text Domain: header-footer-elementor
* Domain Path: /languages
* Version: 2.0.5
* Elementor tested up to: 3.26
* Elementor Pro tested up to: 3.26
*
* @package header-footer-elementor
*/
define( 'HFE_VER', '2.0.5' );
define( 'HFE_FILE', __FILE__ );
define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
define( 'HFE_PATH', plugin_basename( __FILE__ ) );
define( 'HFE_DOMAIN', trailingslashit( 'https://ultimateelementor.com' ) );
define( 'UAE_LITE', true );
/**
* Load the class loader.
*/
require_once HFE_DIR . '/inc/class-header-footer-elementor.php';
/**
* Load the Plugin Class.
*
* @return void
*/
function hfe_plugin_activation() {
update_option( 'hfe_plugin_is_activated', 'yes' );
}
register_activation_hook( HFE_FILE, 'hfe_plugin_activation' );
/**
* Load the Plugin Class.
*
* @return void
*/
function hfe_init() {
Header_Footer_Elementor::instance();
}
add_action( 'plugins_loaded', 'hfe_init' );
/** Function for FA5, Social Icons, Icon List */
function hfe_enqueue_font_awesome() {
if ( class_exists( 'Elementor\Plugin' ) ) {
wp_enqueue_style(
'hfe-icons-list',
plugins_url( '/elementor/assets/css/widget-icon-list.min.css', 'elementor' ),
[],
'3.24.3'
);
wp_enqueue_style(
'hfe-social-icons',
plugins_url( '/elementor/assets/css/widget-social-icons.min.css', 'elementor' ),
[],
'3.24.0'
);
wp_enqueue_style(
'hfe-social-share-icons-brands',
plugins_url( '/elementor/assets/lib/font-awesome/css/brands.css', 'elementor' ),
[],
'5.15.3'
);
wp_enqueue_style(
'hfe-social-share-icons-fontawesome',
plugins_url( '/elementor/assets/lib/font-awesome/css/fontawesome.css', 'elementor' ),
[],
'5.15.3'
);
wp_enqueue_style(
'hfe-nav-menu-icons',
plugins_url( '/elementor/assets/lib/font-awesome/css/solid.css', 'elementor' ),
[],
'5.15.3'
);
}
if ( class_exists( '\ElementorPro\Plugin' ) ) {
wp_enqueue_style(
'hfe-widget-blockquote',
plugins_url( '/elementor-pro/assets/css/widget-blockquote.min.css', 'elementor' ),
[],
'3.25.0'
);
}
}
add_action( 'wp_enqueue_scripts', 'hfe_enqueue_font_awesome', 20 );