• File: my-listing-functions.php
  • Full Path: /home/bravrvjk/hpgt.org/wp-content/plugins/elementskit-lite/modules/header-footer/theme-hooks/my-listing-functions.php
  • Date Modified: 05/24/2022 3:35 PM
  • File size: 1.49 KB
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

if ( ! function_exists( 'hfe_render_header' ) ) {
	function hfe_render_header() {
		global $elementskit_template_ids;
		if ( $elementskit_template_ids[0] == null ) {
			return;
		}

		do_action( 'elementskit/template/before_header' );
		echo '<div class="ekit-template-content-markup ekit-template-content-header">';
			echo \ElementsKit_Lite\Utils::render_elementor_content( $elementskit_template_ids[0] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped --  Displaying with Elementor content rendering
		echo '</div>';
		do_action( 'elementskit/template/after_header' );
	}
}

if ( ! function_exists( 'get_hfe_header_id' ) ) {
	function get_hfe_header_id() {
		global $elementskit_template_ids;
		return $elementskit_template_ids[0];
	}
}

if ( ! function_exists( 'hfe_render_footer' ) ) {
	function hfe_render_footer() {
		global $elementskit_template_ids;
		if ( $elementskit_template_ids[1] == null ) {
			return;
		}

		do_action( 'elementskit/template/before_header' );
		echo '<div class="ekit-template-content-markup ekit-template-content-header">';
			echo \ElementsKit_Lite\Utils::render_elementor_content( $elementskit_template_ids[1] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped --  Displaying with Elementor content rendering
		echo '</div>';
		do_action( 'elementskit/template/after_header' );
	}
}

if ( ! function_exists( 'get_hfe_footer_id' ) ) {
	function get_hfe_footer_id() {
		global $elementskit_template_ids;
		return $elementskit_template_ids[1];
	}
}