| Server IP : 198.38.94.67 / Your IP : 216.73.217.74 Web Server : LiteSpeed System : Linux d6054.dxb1.stableserver.net 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64 User : azfilmst ( 1070) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/azfilmst/www/wp-content/themes/frames/templates/header/ |
Upload File : |
<?php
/**
* @package HaruTheme
* @version 1.0.0
* @author Administrator <admin@harutheme.com>
* @copyright Copyright (c) 2017, HaruTheme
* @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
* @link http://harutheme.com
*/
$header_class = array( 'haru-header haru-header--main', 'haru-header--desktop' );
$header_transparent = get_post_meta( get_the_ID(), 'haru_header_transparent', true );
// Shop
if ( class_exists( 'WooCommerce' ) ) {
if ( is_shop() || is_tax( 'product_cat' ) || is_tax( 'product_tag' ) ) {
$shop_page_id = get_option( 'woocommerce_shop_page_id' );
$header_transparent = get_post_meta( $shop_page_id, 'haru_header_transparent', true );
}
}
// Blog
if ( ( $header_transparent == '' ) || ( $header_transparent == '-1' ) || ( $header_transparent == 'default' ) ) {
$header_transparent = haru_get_option( 'haru_header_transparent', '0' );
}
if ( $header_transparent == '1' ) {
$header_class[] = 'haru-header--transparent';
}
$header_transparent_skin = get_post_meta( get_the_ID(), 'haru_header_transparent_skin', true );
// Shop
if ( class_exists( 'WooCommerce' ) ) {
if ( is_shop() || is_tax( 'product_cat' ) || is_tax( 'product_tag' ) ) {
$shop_page_id = get_option( 'woocommerce_shop_page_id' );
$header_transparent_skin = get_post_meta( $shop_page_id, 'haru_header_transparent_skin', true );
}
}
// Blog
if ( ( $header_transparent_skin == '' ) || ( $header_transparent_skin == '-1' ) || ( $header_transparent_skin == 'default' ) ) {
$header_transparent_skin = haru_get_option( 'haru_header_transparent_skin', 'light' );
}
if ( $header_transparent == '1' ) {
$header_class[] = 'haru-header--transparent-' . $header_transparent_skin;
}
$header_sticky = get_post_meta( get_the_ID(), 'haru_header_sticky', true );
// Shop
if ( class_exists( 'WooCommerce' ) ) {
if ( is_shop() || is_tax( 'product_cat' ) || is_tax( 'product_tag' ) ) {
$shop_page_id = get_option( 'woocommerce_shop_page_id' );
$header_sticky = get_post_meta( $shop_page_id, 'haru_header_sticky', true );
}
}
// Blog
if ( ( $header_sticky == '' ) || ( $header_sticky == '-1' ) || ( $header_sticky == 'default' ) ) {
$header_sticky = haru_get_option( 'haru_header_sticky', '0' );
}
if ( $header_sticky == '1' ) {
$header_class[] = 'haru-header--sticky';
}
$header_sticky_element = get_post_meta( get_the_ID(), 'haru_header_sticky_element', true );
// Shop
if ( class_exists( 'WooCommerce' ) ) {
if ( is_shop() || is_tax( 'product_cat' ) || is_tax( 'product_tag' ) ) {
$shop_page_id = get_option( 'woocommerce_shop_page_id' );
$header_sticky_element = get_post_meta( $shop_page_id, 'haru_header_sticky_element', true );
}
}
// Blog
if ( ( $header_sticky_element == '' ) || ( $header_sticky_element == '-1' ) || ( $header_sticky_element == 'default' ) ) {
$header_sticky_element = haru_get_option( 'haru_header_sticky_element', 'header' );
}
if ( $header_sticky == '1' ) {
$header_class[] = 'haru-header--sticky-' . $header_sticky_element;
}
// Header Sidebar
$header_id = apply_filters( 'haru_get_header_layout', haru_get_header_layout() );
$header_sidebar = get_post_meta( $header_id, 'haru_header_sidebar', true );
if ( $header_sidebar == '1' ) {
$header_class[] = 'haru-header--sidebar';
$header_sidebar_hidden = get_post_meta( $header_id, 'haru_header_sidebar_hidden', true );
$header_class[] = 'haru-header--sidebar-hidden-' . $header_sidebar_hidden;
}
?>
<header id="haru-header" class="<?php echo esc_attr( join( ' ', $header_class ) ); ?>">
<div class="haru-header__desktop">
<?php
$header_id = apply_filters( 'haru_get_header_layout', haru_get_header_layout() );
haru_render_header_layout( $header_id );
?>
</div>
</header>