*
* **********************
* at the beggining of theme development, here was classes array
* which was in body_class($_astha_classes) and finally we have transferred to inc/template-functions.php
* Because, we wanted to handle class from function.
* AND it will help to support custom header, imean: custom header file, which will control from any other plugin
* and class will stay at body tag
* @since 1.0.0.59
* **********************
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @since 1.0.0.0
* @package Astha
*/
/**
* To identify as Another
* of shop or default header, we able to set variable at the top of the file
*/
$_wc_astha = $custom_header = false;
$astha_header = 'header-one';
$topbar_layout = 'topbar-one';
if( astha_is_woocommerce() ){
$_wc_astha = '_wc';
}
/**
* Default Header one is set as default header
* @default header-one $astha_header
*/
$header_layout = astha_option( 'layout_header', $astha_header, false, $_wc_astha );
$topbar_layout = astha_option( 'layout_topbar', $topbar_layout, false, $_wc_astha );
/**
* Checking Custom Header, If found numeric header from customizer
* AND
* custom header class adding at the body tag
*
* @since 1.0.0.44 Actually at 1.0.0.56
* @by Saiful
*/
if( is_numeric( $header_layout ) ){
$custom_header = true; //Custom Header is not Activated Yet.
$header_class = 'custom-header custom-header-' . $header_layout;
}else{
$header_class = $header_layout;
}
?>
>
>