*
* @package Namaha
*/
?>
>
>
0;
// If the logo container opacity is 0 then it's transparent
$is_logo_container_transparent = $logo_container_opacity == 0;
// TODO: All of these can probably be replaced with just:
if ( ( $is_logo_container_translucent || $is_logo_container_transparent ) && !$show_slider && !$show_header_image ) {
$is_logo_container_translucent = false;
$is_logo_container_transparent = false;
}
$header_classes = array();
$navigation_menu_alignment = get_theme_mod( 'namaha-navigation-menu-alignment', customizer_library_get_default( 'namaha-navigation-menu-alignment' ) );
if ( $is_logo_container_translucent && !( $mobile_sticky_disabled && wp_is_mobile() ) ) {
$header_classes[] = 'translucent ';
}
if ( $is_logo_container_transparent && !( $mobile_sticky_disabled && wp_is_mobile() ) ) {
$header_classes[] = 'transparent ';
}
if ( $navigation_menu_alignment == 'inline' ) {
$header_classes[] = 'left-aligned';
$header_classes[] = 'inline-navigation-menu';
} else {
$header_classes[] = get_theme_mod( 'namaha-header-alignment', customizer_library_get_default( 'namaha-header-alignment' ) );
}
*/
global $is_logo_container_translucent;
$is_logo_container_translucent = get_theme_mod( 'namaha-translucent-header', customizer_library_get_default( 'namaha-translucent-header' ) );
if ( $is_logo_container_translucent && !$show_slider && !$show_header_image ) {
$is_logo_container_translucent = false;
}
$header_classes = array();
$navigation_menu_alignment = get_theme_mod( 'namaha-navigation-menu-alignment', customizer_library_get_default( 'namaha-navigation-menu-alignment' ) );
if ( $is_logo_container_translucent ) {
$header_classes[] = 'translucent ';
}
if ( $navigation_menu_alignment == 'inline' ) {
$header_classes[] = 'left-aligned';
$header_classes[] = 'inline-navigation-menu';
} else {
$header_classes[] = get_theme_mod( 'namaha-header-alignment', customizer_library_get_default( 'namaha-header-alignment' ) );
}
if ( $show_slider || $show_header_image ) {
$header_classes[] = 'has-header-media';
}
if ( ( $show_slider && $slider_type == 'default' ) || $show_header_image ) {
$header_classes[] = 'forced-solid';
}
?>