header = $template_ids[0]; $this->footer = $template_ids[1]; if ( defined( 'ELEMENTOR_VERSION' ) && is_callable( 'Elementor\Plugin::instance' ) ) { $this->elementor = \Elementor\Plugin::instance(); } if ( $this->header != null ) { add_filter( 'fl_header_enabled', '__return_false' ); add_action( 'fl_before_header', array( $this, 'add_plugin_header_markup' ) ); } if ( $this->footer != null ) { add_filter( 'fl_footer_enabled', '__return_false' ); add_action( 'fl_after_content', array( $this, 'add_plugin_footer_markup' ) ); } } // header actions public function add_plugin_header_markup() { if ( class_exists( '\FLTheme' ) ) { $header_layout = \FLTheme::get_setting( 'fl-header-layout' ); if ( 'none' == $header_layout || is_page_template( 'tpl-no-header-footer.php' ) ) { return; } } do_action( 'elementskit/template/before_header' ); ?>
header ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Displaying with Elementor content rendering ?>