'; if ( !empty( $supermag_header_image_link)) { $target = ""; if( 1 == $supermag_header_image_link_new_tab ){ $target = 'target = _blank'; } $output .= ''; } $output .= $html; if ( !empty( $supermag_header_image_link)) { $output .= ' '; } $output .= ""; return $output; } add_filter( 'get_header_image_tag', 'supermag_header_image_markup', 99, 3 ); if ( ! function_exists( 'supermag_header_markup' ) ) : function supermag_header_markup() { if ( function_exists( 'the_custom_header_markup' ) ) { the_custom_header_markup(); } else { $header_image = get_header_image(); if( ! empty( $header_image ) ) { $supermag_customizer_all_values = supermag_get_theme_options(); $supermag_header_image_link = $supermag_customizer_all_values['supermag-header-image-link']; $supermag_header_image_link_new_tab = $supermag_customizer_all_values['supermag-header-image-link-new-tab']; echo '
'; if ( !empty( $supermag_header_image_link)) { $target = ""; if( 1 == $supermag_header_image_link_new_tab ){ $target = "target = _blank"; } ?> href="" title="" rel="home"> <?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?> "; } } } endif;