<?php

if ( ! function_exists( 'calla_elated_register_header_standard_type' ) ) {
	/**
	 * This function is used to register header type class for header factory file
	 */
	function calla_elated_register_header_standard_type( $header_types ) {
		$header_type = array(
			'header-standard' => 'CallaElated\Modules\Header\Types\HeaderStandard'
		);
		
		$header_types = array_merge( $header_types, $header_type );
		
		return $header_types;
	}
}

if ( ! function_exists( 'calla_elated_init_register_header_standard_type' ) ) {
	/**
	 * This function is used to wait header-function.php file to init header object and then to init hook registration function above
	 */
	function calla_elated_init_register_header_standard_type() {
		add_filter( 'calla_elated_register_header_type_class', 'calla_elated_register_header_standard_type' );
	}
	
	add_action( 'calla_elated_before_header_function_init', 'calla_elated_init_register_header_standard_type' );
}