Theme Options $options = get_option('visualmodo'); $brand_scheme = $options['brand_scheme'] ?? '1'; $brand_name = $options['brand_name'] ?? get_bloginfo( 'name' ); $brand_alt = isset($options['brand_alt']) ? 'alt="'.$options['brand_alt'].'"' : ''; $header_color_theming = $options['header_color_theming'] ?? 'light-theme'; /*-----------------------------------------------------------------------------------*/ /* *. Light Theme - For Header With Dark Background. /*-----------------------------------------------------------------------------------*/ //URL $brand_light_theme = isset($options['brand_light_theme']['url']) ? $options['brand_light_theme']['url'].' 1x' : ''; $brand_retina_light_theme = isset($options['brand_retina_light_theme']['url']) ? ','.$options['brand_retina_light_theme']['url'].' 2x' : ''; $brand_mobile_light_theme = isset($options['brand_mobile_light_theme']['url']) ? $options['brand_mobile_light_theme']['url'].' 1x' : ''; $brand_retina_mobile_light_theme = isset($options['brand_retina_mobile_light_theme']['url']) ? ','.$options['brand_retina_mobile_light_theme']['url'].' 2x' : ''; /*-----------------------------------------------------------------------------------*/ /* *. Light Theme - High Contrast - For Header With Dark Background. /*-----------------------------------------------------------------------------------*/ //URL $brand_light_theme_contrast = isset($options['brand_light_theme_contrast']['url']) ? $options['brand_light_theme_contrast']['url'].' 1x' : ''; $brand_retina_light_theme_contrast = isset($options['brand_retina_light_theme_contrast']['url']) ? ','.$options['brand_retina_light_theme_contrast']['url'].' 2x' : ''; $brand_mobile_light_theme_contrast = isset($options['brand_mobile_light_theme_contrast']['url']) ? $options['brand_mobile_light_theme_contrast']['url'].' 1x' : ''; $brand_retina_mobile_light_theme_contrast = isset($options['brand_retina_mobile_light_theme_contrast']['url']) ? ','.$options['brand_retina_mobile_light_theme_contrast']['url'].' 2x' : ''; /*-----------------------------------------------------------------------------------*/ /* *. Dark Theme - For Header With Light Background. /*-----------------------------------------------------------------------------------*/ //URL $brand_dark_theme = isset($options['brand_dark_theme']['url']) ? $options['brand_dark_theme']['url'].' 1x' : ''; $brand_retina_dark_theme = isset($options['brand_retina_dark_theme']['url']) ? ','.$options['brand_retina_dark_theme']['url'].' 2x' : ''; $brand_mobile_dark_theme = isset($options['brand_mobile_dark_theme']['url']) ? $options['brand_mobile_dark_theme']['url'].' 1x' : ''; $brand_retina_mobile_dark_theme = isset($options['brand_retina_mobile_dark_theme']['url']) ? ','.$options['brand_retina_mobile_dark_theme']['url'].' 2x' : ''; /*-----------------------------------------------------------------------------------*/ /* *. Dark Theme - High Contrast - For Header With Light Background. /*-----------------------------------------------------------------------------------*/ //URL $brand_dark_theme_contrast = isset($options['brand_dark_theme_contrast']['url']) ? $options['brand_dark_theme_contrast']['url'].' 1x' : ''; $brand_retina_dark_theme_contrast = isset($options['brand_retina_dark_theme_contrast']['url']) ? ','.$options['brand_retina_dark_theme_contrast']['url'].' 2x' : ''; $brand_mobile_dark_theme_contrast = isset($options['brand_mobile_dark_theme_contrast']['url']) ? $options['brand_mobile_dark_theme_contrast']['url'].' 1x' : ''; $brand_retina_mobile_dark_theme_contrast = isset($options['brand_retina_mobile_dark_theme_contrast']['url']) ? ','.$options['brand_retina_mobile_dark_theme_contrast']['url'].' 2x' : ''; ?>