Theme Options
$anzu_brand_display = get_theme_mod( 'anzu_brand_display', 'anzu-brand--logo-title-tagline-right' );
$anzu_site_title_switch = get_theme_mod( 'anzu_site_title_switch', '1' );
$anzu_tagline_switch = get_theme_mod( 'anzu_tagline_switch', '' );
$anzu_logo_switch = get_theme_mod( 'anzu_logo_switch', '1' );
?>
Theme Options
$anzu_mobile_light_logo_switch = get_theme_mod( 'anzu_mobile_light_logo_switch', '' );
$anzu_mobile_dark_logo_switch = get_theme_mod( 'anzu_mobile_dark_logo_switch', '' );
$anzu_transparent_light_logo_switch = get_theme_mod( 'anzu_transparent_light_logo_switch', '' );
$anzu_transparent_dark_logo_switch = get_theme_mod( 'anzu_transparent_dark_logo_switch', '' );
$anzu_sticky_light_logo_switch = get_theme_mod( 'anzu_sticky_light_logo_switch', '' );
$anzu_sticky_dark_logo_switch = get_theme_mod( 'anzu_sticky_dark_logo_switch', '' );
$anzu_retina_light_logo_switch = get_theme_mod( 'anzu_retina_light_logo_switch', '' );
$anzu_retina_dark_logo_switch = get_theme_mod( 'anzu_retina_dark_logo_switch', '' );
$anzu_header_theme_mode = get_theme_mod( 'anzu_header_dark_mode', '' ) ? 'dark' : 'light';
$anzu_transparent_header_switch = get_theme_mod( 'anzu_transparent_header_switch', '' );
$anzu_metabox_transparent_header = ! empty ( get_post_meta( get_the_ID(), 'anzu_metabox_transparent_header', true ) ) ? get_post_meta( get_the_ID(), 'anzu_metabox_transparent_header', true ) : '';
/*-----------------------------------------------------------------------------------*/
/* *. Default Logo.
/*-----------------------------------------------------------------------------------*/
$anzu_default_light_logo = get_theme_mod( 'anzu_light_logo', '' );
$anzu_retina_default_light_logo = get_theme_mod( 'anzu_retina_light_logo', '' );
$anzu_default_dark_logo = get_theme_mod( 'anzu_dark_logo', '' );
$anzu_retina_default_dark_logo = get_theme_mod( 'anzu_retina_dark_logo', '' );
/*-----------------------------------------------------------------------------------*/
/* *. Mobile Logo.
/*-----------------------------------------------------------------------------------*/
$anzu_mobile_light_logo = ! empty ( get_theme_mod( 'anzu_mobile_light_logo', '' ) ) && $anzu_mobile_light_logo_switch ? get_theme_mod( 'anzu_mobile_light_logo' ) : $anzu_default_light_logo;
$anzu_retina_mobile_light_logo = ! empty ( get_theme_mod( 'anzu_retina_mobile_light_logo', '' ) ) && $anzu_mobile_light_logo_switch ? get_theme_mod( 'anzu_retina_mobile_light_logo' ) : $anzu_retina_default_light_logo;
$anzu_mobile_dark_logo = ! empty ( get_theme_mod( 'anzu_mobile_dark_logo', '' ) ) && $anzu_mobile_dark_logo_switch ? get_theme_mod( 'anzu_mobile_dark_logo' ) : $anzu_default_dark_logo;
$anzu_retina_mobile_dark_logo = ! empty ( get_theme_mod( 'anzu_retina_mobile_dark_logo', '' ) ) && $anzu_mobile_dark_logo_switch ? get_theme_mod( 'anzu_retina_mobile_dark_logo' ) : $anzu_retina_default_dark_logo;
/*-----------------------------------------------------------------------------------*/
/* *. Transparent Logo.
/*-----------------------------------------------------------------------------------*/
$anzu_transparent_light_logo = ! empty ( get_theme_mod( 'anzu_transparent_light_logo', '' ) ) && $anzu_transparent_light_logo_switch ? get_theme_mod( 'anzu_transparent_light_logo' ) : $anzu_default_light_logo;
$anzu_retina_transparent_light_logo = ! empty ( get_theme_mod( 'anzu_retina_transparent_light_logo', '' ) ) && $anzu_transparent_light_logo_switch ? get_theme_mod( 'anzu_retina_transparent_light_logo' ) : $anzu_retina_default_light_logo;
$anzu_transparent_dark_logo = ! empty ( get_theme_mod( 'anzu_transparent_dark_logo', '' ) ) && $anzu_transparent_dark_logo_switch ? get_theme_mod( 'anzu_transparent_dark_logo' ) : $anzu_default_dark_logo;
$anzu_retina_transparent_dark_logo = ! empty ( get_theme_mod( 'anzu_retina_transparent_dark_logo', '' ) ) && $anzu_transparent_dark_logo_switch ? get_theme_mod( 'anzu_retina_transparent_dark_logo' ) : $anzu_retina_default_dark_logo;
/*-----------------------------------------------------------------------------------*/
/* *. Sticky Logo.
/*-----------------------------------------------------------------------------------*/
$anzu_sticky_light_logo = ! empty ( get_theme_mod( 'anzu_sticky_light_logo', '' ) ) && $anzu_sticky_light_logo_switch ? get_theme_mod( 'anzu_sticky_light_logo' ) : $anzu_default_light_logo;
$anzu_retina_sticky_light_logo = ! empty ( get_theme_mod( 'anzu_retina_sticky_light_logo', '' ) ) && $anzu_sticky_light_logo_switch ? get_theme_mod( 'anzu_retina_sticky_light_logo' ) : $anzu_retina_default_light_logo;
$anzu_sticky_dark_logo = ! empty ( get_theme_mod( 'anzu_sticky_dark_logo', '' ) ) && $anzu_sticky_dark_logo_switch ? get_theme_mod( 'anzu_sticky_dark_logo' ) : $anzu_default_dark_logo;
$anzu_retina_sticky_dark_logo = ! empty ( get_theme_mod( 'anzu_retina_sticky_dark_logo', '' ) ) && $anzu_sticky_dark_logo_switch ? get_theme_mod( 'anzu_retina_sticky_dark_logo' ) : $anzu_retina_default_dark_logo;
/*-----------------------------------------------------------------------------------*/
/* *. Transparent Header.
/*-----------------------------------------------------------------------------------*/
$transparent_header = '';
if ( $anzu_metabox_transparent_header ) {
$transparent_header = '1';
if ( $anzu_metabox_transparent_header == 'anzu-transparent-header--theme-light-mode' ) {
$anzu_transparent_header_theme_mode = 'light';
} else if ( $anzu_metabox_transparent_header == 'anzu-transparent-header--theme-dark-mode' ) {
$anzu_transparent_header_theme_mode = 'dark';
}
} else if ( $anzu_transparent_header_switch ) {
$anzu_transparent_header_pages = get_theme_mod( 'anzu_transparent_header_pages', '1' );
$anzu_transparent_header_posts = get_theme_mod( 'anzu_transparent_header_posts', '1' );
$anzu_transparent_header_blog_page = get_theme_mod( 'anzu_transparent_header_blog_page', '' );
$anzu_transparent_header_404_archives_search = get_theme_mod( 'anzu_transparent_header_404_archives_search', '' );
$anzu_transparent_header_theme_color = get_theme_mod( 'anzu_transparent_header_theme_color', 'anzu-transparent-header--theme-dark-mode' );
if ( ( is_page() || is_single() || is_home() || is_404() ) && $anzu_transparent_header_pages ) {
$transparent_header = "1";
}
if ( $anzu_transparent_header_theme_color == 'anzu-transparent-header--theme-light-mode' ) {
$anzu_transparent_header_theme_mode = 'light';
} else if ( $anzu_transparent_header_theme_color == 'anzu-transparent-header--theme-dark-mode' ) {
$anzu_transparent_header_theme_mode = 'dark';
}
}
$sticky_header = "";
$anzu_license_options = get_option( 'anzu_license_option_name' );
$anzu_license = isset( $anzu_license_options['anzu_license_key'] ) ? $anzu_license_options['anzu_license_key'] : '';
if ( strlen($anzu_license) == 40 && preg_match('/\d/', $anzu_license) && preg_match('/[a-zA-Z]/', $anzu_license) ) {
/*-----------------------------------------------------------------------------------*/
/* *. Sticky Header.
/*-----------------------------------------------------------------------------------*/
$anzu_metabox_sticky_header = ! empty ( get_post_meta( get_the_ID(), 'anzu_metabox_sticky_header', true ) ) ? get_post_meta( get_the_ID(), 'anzu_metabox_sticky_header', true ) : get_theme_mod( 'anzu_sticky_header_background_on_scroll', 'anzu-sticky-header--background-default' );
$anzu_sticky_header_switch = get_theme_mod( 'anzu_sticky_header_switch', '' );
if ( $anzu_sticky_header_switch ) {
$anzu_sticky_header_pages = get_theme_mod( 'anzu_sticky_header_pages', '1' );
$anzu_sticky_header_posts = get_theme_mod( 'anzu_sticky_header_posts', '1' );
$anzu_sticky_header_blog_page = get_theme_mod( 'anzu_sticky_header_blog_page', '' );
$anzu_sticky_header_404_archives_search = get_theme_mod( 'anzu_sticky_header_404_archives_search', '' );
if ( is_page() && $anzu_sticky_header_pages ) {
$sticky_header = "1";
} else if ( is_single() && $anzu_sticky_header_posts ) {
$sticky_header = "1";
} else if ( is_home() && $anzu_sticky_header_blog_page ) {
$sticky_header = "1";
} else if ( ( is_404() || is_archive() || is_search() ) && $anzu_sticky_header_404_archives_search ) {
$sticky_header = "1";
}
}
}
$logo_states_transparent = ($transparent_header == '1') ? 'transparent' : '';
$logo_states_sticky = ($sticky_header == '1') ? 'sticky' : '';
$logo_states = array_filter(array('default', $logo_states_transparent, $logo_states_sticky));
?>