%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /dom329039/wp-content/plugins/bbpowerpack/classes/theme-support/
Upload File :
Create Path :
Current File : /dom329039/wp-content/plugins/bbpowerpack/classes/theme-support/class-pp-theme-support-custom.php

<?php
/**
 * Support for the Custom theme.
 *
 * @since 2.9.0
 * @package BB_PowerPack
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Support for the Custom theme.
 *
 * @since 2.9.0
 */
final class BB_PowerPack_Header_Footer_Custom {
	/**
	 * Setup support for the theme.
	 *
	 * @since 2.9.0
	 * @return void
	 */
	static public function init() {
		add_action( 'wp', __CLASS__ . '::setup_headers_and_footers' );
	}

	/**
	 * Setup headers and footers.
	 *
	 * @since 2.9.0
	 * @return void
	 */
	static public function setup_headers_and_footers() {
		if ( did_action( 'pp_maintenance_mode_before_render' ) ) {
			return;
		}

		$theme_support = get_theme_support( 'pp-header-footer' );

		if ( is_array( $theme_support ) && isset( $theme_support[0] ) ) {
			$hooks = $theme_support[0];
			$has_header_hook = isset( $hooks['header_hook'] ) && ! empty( $hooks['header_hook'] ) && is_string( $hooks['header_hook'] );
			$has_footer_hook = isset( $hooks['footer_hook'] ) && ! empty( $hooks['footer_hook'] ) && is_string( $hooks['footer_hook'] );

			if ( $has_header_hook && ! empty( BB_PowerPack_Header_Footer::$header ) ) {
				// Remove all actions attached to provided theme's header hook.
				remove_all_actions( $hooks['header_hook'] );
				// Hook custom header set in PowerPack's settings to provided hook.
				add_action( $hooks['header_hook'], __CLASS__ . '::render_header' );
			}
			if ( $has_footer_hook && ! empty( BB_PowerPack_Header_Footer::$footer ) ) {
				// Remove all actions attached to provided theme's footer hook.
				remove_all_actions( $hooks['footer_hook'] );
				// Hook custom footer set in PowerPack's settings to provided hook.
				add_action( $hooks['footer_hook'], __CLASS__ . '::render_footer' );
			}
		}

		if ( ! $has_header_hook && ! empty( BB_PowerPack_Header_Footer::$header ) ) {
			add_action( 'pp_custom_theme_header', __CLASS__ . '::render_header' );
		}
		if ( ! $has_footer_hook && ! empty( BB_PowerPack_Header_Footer::$footer ) ) {
			add_action( 'pp_custom_theme_footer', __CLASS__ . '::render_footer' );
		}
	}

	/**
	 * Renders the header for the current page.
	 *
	 * @since 2.9.0
	 * @return void
	 */
	static public function render_header() {
		BB_PowerPack_Header_Footer::render_header();
	}

	/**
	 * Renders the footer for the current page.
	 *
	 * @since 2.9.0
	 * @return void
	 */
	static public function render_footer() {
		BB_PowerPack_Header_Footer::render_footer();
	}
}

BB_PowerPack_Header_Footer_Custom::init();

Zerion Mini Shell 1.0
GMH Consulting Group LLC https://gmhconsultinggroup.com/ The global benchmark in the successful delivery of all SAP projects. Mon, 09 Oct 2023 18:12:51 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.13 https://gmhconsultinggroup.com/wp-content/uploads/2023/01/cropped-New-Project-57-32x32.png GMH Consulting Group LLC https://gmhconsultinggroup.com/ 32 32 Advantages of mRNA Vaccines https://gmhconsultinggroup.com/2022/02/134/ Wed, 02 Feb 2022 04:58:00 +0000 https://gmhconsultinggroup.com/?p=134 Helping Moderna with the SAP S4 supply chain digital transformation of their mRNA Vaccine technology worldwide. #sap #technology #digitaltransformation #s4hana #supplychain Digitalization of Vaccines

The post Advantages of mRNA Vaccines appeared first on GMH Consulting Group LLC.

]]>

Helping Moderna with the SAP S4 supply chain digital transformation of their mRNA Vaccine technology worldwide. #sap #technology #digitaltransformation #s4hana #supplychain

Digitalization of Vaccines

The post Advantages of mRNA Vaccines appeared first on GMH Consulting Group LLC.

]]>
Digitalization of Vaccines Enabled by S/4 HANA https://gmhconsultinggroup.com/2022/02/132/ Wed, 02 Feb 2022 04:57:00 +0000 https://gmhconsultinggroup.com/?p=132 Helping Moderna deliver on the promise of mRNA science to create an new generation of transformative medicines for patients enabled by S/4 Digital Supply Chain. #saps4hana #supplychain #digital #science

The post Digitalization of Vaccines Enabled by S/4 HANA appeared first on GMH Consulting Group LLC.

]]>

Helping Moderna deliver on the promise of mRNA science to create an new generation of transformative medicines for patients enabled by S/4 Digital Supply Chain. #saps4hana #supplychain #digital #science

The post Digitalization of Vaccines Enabled by S/4 HANA appeared first on GMH Consulting Group LLC.

]]>
SAP Cloud Integration Platform https://gmhconsultinggroup.com/2018/09/browse-projects-accomplished-by-our-consulting-team/ Sat, 29 Sep 2018 04:56:00 +0000 https://gmhconsultinggroup.com/?p=130 Browse Projects Accomplished by Our Consulting Team

The post SAP Cloud Integration Platform appeared first on GMH Consulting Group LLC.

]]>

Browse Projects Accomplished by Our Consulting Team

The post SAP Cloud Integration Platform appeared first on GMH Consulting Group LLC.

]]>