?AlkantarClanX12
| Current Path : /home/rankinh/villavanille/wp-content/plugins/drew-core/inc/header/layouts/standard/ |
| Current File : /home/rankinh/villavanille/wp-content/plugins/drew-core/inc/header/layouts/standard/helper.php |
<?php
if ( ! function_exists( 'drew_core_add_standard_header_global_option' ) ) {
/**
* This function set header type value for global header option map
*/
function drew_core_add_standard_header_global_option( $header_layout_options ) {
$header_layout_options['standard'] = array(
'image' => DREW_CORE_HEADER_LAYOUTS_URL_PATH . '/standard/assets/img/standard-header.png',
'label' => esc_html__( 'Standard', 'drew-core' ),
);
return $header_layout_options;
}
add_filter( 'drew_core_filter_header_layout_option', 'drew_core_add_standard_header_global_option' );
}
if ( ! function_exists( 'drew_core_set_standard_header_as_default_global_option' ) ) {
/**
* This function set header type as default option value for global header option map
*/
function drew_core_set_standard_header_as_default_global_option() {
return 'standard';
}
add_filter( 'drew_core_filter_header_layout_default_option_value', 'drew_core_set_standard_header_as_default_global_option' );
}
if ( ! function_exists( 'drew_core_register_standard_header_layout' ) ) {
/**
* Function which add header layout into global list
*
* @param array $header_layouts
*
* @return array
*/
function drew_core_register_standard_header_layout( $header_layouts ) {
$header_layouts['standard'] = 'DrewCore_Standard_Header';
return $header_layouts;
}
add_filter( 'drew_core_filter_register_header_layouts', 'drew_core_register_standard_header_layout' );
}