PluginProbe ʕ •ᴥ•ʔ
Ultimate Addons for Elementor / 1.0.10
Ultimate Addons for Elementor v1.0.10
2.8.8 2.6.0 2.6.1 2.6.2 2.7.0 2.7.1 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 v1.1.3 v1.1.4 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.3.0 1.3.1 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.10 1.6.11 1.6.12 1.6.13 1.6.14 1.6.15 1.6.16 1.6.17 1.6.18 1.6.19 1.6.2 1.6.20 1.6.21 1.6.22 1.6.23 1.6.24 1.6.25 1.6.26 1.6.27 1.6.28 1.6.29 1.6.3 1.6.30 1.6.31 1.6.32 1.6.33 1.6.34 1.6.35 1.6.36 1.6.37 1.6.38 1.6.39 1.6.4 1.6.40 1.6.41 1.6.42 1.6.43 1.6.44 1.6.45 1.6.46 1.6.47 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.3.0 2.3.1 2.3.2 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5.0 2.5.1 2.5.2
header-footer-elementor / themes / astra / class-hfe-astra-compat.php
header-footer-elementor / themes / astra Last commit date
class-hfe-astra-compat.php 8 years ago
class-hfe-astra-compat.php
68 lines
1 <?php
2 /**
3 * HFE_Astra_Compat setup
4 *
5 * @package header-footer-elementor
6 */
7
8 /**
9 * Astra theme compatibility.
10 */
11 class HFE_Astra_Compat {
12
13 /**
14 * Instance of HFE_Astra_Compat.
15 *
16 * @var HFE_Astra_Compat
17 */
18 private static $instance;
19
20 /**
21 * Initiator
22 */
23 public static function instance() {
24
25 if ( ! isset( self::$instance ) ) {
26 self::$instance = new HFE_Astra_Compat();
27
28 self::$instance->hooks();
29 }
30
31 return self::$instance;
32 }
33
34 /**
35 * Run all the Actions / Filters.
36 */
37 public function hooks() {
38
39 if ( hfe_header_enabled() ) {
40 add_action( 'template_redirect', array( $this, 'astra_setup_header' ), 10 );
41 add_action( 'astra_header', 'hfe_render_header' );
42 }
43
44 if ( hfe_footer_enabled() ) {
45 add_action( 'template_redirect', array( $this, 'astra_setup_footer' ), 10 );
46 add_action( 'astra_footer', 'hfe_render_footer' );
47 }
48
49 }
50
51 /**
52 * Disable header from the theme.
53 */
54 public function astra_setup_header() {
55 remove_action( 'astra_header', 'astra_header_markup' );
56 }
57
58 /**
59 * Disable footer from the theme.
60 */
61 public function astra_setup_footer() {
62 remove_action( 'astra_footer', 'astra_footer_markup' );
63 }
64
65 }
66
67 HFE_Astra_Compat::instance();
68