PluginProbe ʕ •ᴥ•ʔ
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor / 4.0.2
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor v4.0.2
4.0.2 4.0.1 4.0.0 3.10.02 3.10.01 3.9.10 3.9.9 3.9.8 3.9.7 3.9.5 3.9.6 3.9.3 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.3.0 2.3.1 2.3.1.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.4.0 2.5.0 2.5.1 2.5.10 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.2 2.6.3 2.7.0 2.7.2 2.7.3 2.7.4 2.7.5 2.8.0 2.8.1 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.2 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 3.4.9 3.5.0 3.5.1 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.6.0 3.6.1 3.7.0 3.7.1 3.7.2 3.7.3 3.7.4 3.7.5 3.7.6 3.7.7 3.7.8 3.7.9 3.8.0 3.8.1 3.8.2 3.9.0 3.9.1 3.9.2 trunk 1.2.6 1.2.7 1.2.9 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.10 1.5.11 1.5.12 1.5.2 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.0.9.1 2.0.9.2 2.0.9.3
elementskit-lite / modules / header-footer / theme-hooks / neve.php
elementskit-lite / modules / header-footer / theme-hooks Last commit date
astra.php 4 years ago bbtheme.php 4 years ago generatepress.php 4 years ago genesis.php 4 years ago my-listing-functions.php 4 years ago my-listing.php 4 years ago neve.php 4 years ago oceanwp.php 4 years ago theme-support.php 4 years ago twenty-nineteen.php 4 years ago
neve.php
69 lines
1 <?php
2 namespace ElementsKit_Lite\Modules\Header_Footer\Theme_Hooks;
3
4 defined( 'ABSPATH' ) || exit;
5
6 /**
7 * Neve theme compatibility.
8 */
9 class Neve {
10
11 /**
12 * Instance of Elementor Frontend class.
13 *
14 * @var \Elementor\Frontend()
15 */
16 private $elementor;
17
18 private $header;
19 private $footer;
20
21 /**
22 * Run all the Actions / Filters.
23 */
24 function __construct( $template_ids ) {
25 $this->header = $template_ids[0];
26 $this->footer = $template_ids[1];
27
28 if ( defined( 'ELEMENTOR_VERSION' ) && is_callable( 'Elementor\Plugin::instance' ) ) {
29 $this->elementor = \Elementor\Plugin::instance();
30 }
31
32 if ( $this->header != null ) {
33 add_action( 'template_redirect', array( $this, 'remove_theme_header_markup' ), 10 );
34 add_action( 'neve_do_header', array( $this, 'add_plugin_header_markup' ) );
35 }
36
37 if ( $this->footer != null ) {
38 add_action( 'template_redirect', array( $this, 'remove_theme_footer_markup' ), 10 );
39 add_action( 'neve_do_footer', array( $this, 'add_plugin_footer_markup' ) );
40 }
41 }
42
43 // header actions
44 public function remove_theme_header_markup() {
45 remove_all_actions( 'hfg_header_render' );
46 }
47
48 public function add_plugin_header_markup() {
49 do_action( 'elementskit/template/before_header' );
50 echo '<div class="ekit-template-content-markup ekit-template-content-header">';
51 echo \ElementsKit_Lite\Utils::render_elementor_content( $this->header ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Displaying with Elementor content rendering
52 echo '</div>';
53 do_action( 'elementskit/template/after_header' );
54 }
55
56 // footer actions
57 public function remove_theme_footer_markup() {
58 remove_all_actions( 'hfg_footer_render' );
59 }
60
61 public function add_plugin_footer_markup() {
62 do_action( 'elementskit/template/before_footer' );
63 echo '<div class="ekit-template-content-markup ekit-template-content-footer">';
64 echo \ElementsKit_Lite\Utils::render_elementor_content( $this->footer ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Displaying with Elementor content rendering
65 echo '</div>';
66 do_action( 'elementskit/template/after_footer' );
67 }
68 }
69