%s', esc_url( home_url( '/' ) ), esc_attr( get_bloginfo( 'name' ) ) ); // Description $description = get_bloginfo( 'description', 'display' ); // Determine which wrapping tags to use $wrap = ( is_front_page() || is_home() ) ? 'h1' : 'p'; // Site Description if ( $description || is_customize_preview() ) { $site_description = sprintf( '

%s

', esc_attr( $description ) ); } else { $site_description = ''; } // Site Logo $site_logo = sprintf( '%s', esc_url( get_theme_mod( 'amy_site_logo' ) ), esc_attr( get_bloginfo( 'name' ) ) ); // Build the logo $logo = sprintf( '', esc_url( home_url( '/' ) ), esc_attr( get_bloginfo( 'name' ) ), $site_logo ); // Build the title $title = sprintf( '<%1$s class="site-title" itemprop="headline">%2$s', $wrap, $url ); // Echo if ( get_theme_mod( 'amy_site_logo' ) ) { echo $logo; } else { echo $title . $site_description; } } endif; if ( ! function_exists( 'amy_header_image' ) ) : /** * Displays the header image or post thumbnail. * * Wraps the post thumbnail in an anchor element on index views, or a div * element when on single views. */ function amy_header_image() { global $post; if ( get_header_image() && ! is_singular() ) : ?>
ID, 'featured_image_open', true ) == '1' ) ? 'target="_blank"' : ''; $featured_image_url = get_post_meta( $post->ID, 'featured_image_url', true ); $header_image_url = ( get_option( 'amy_header_image_url' ) != '' ) ? get_option( 'amy_header_image_url' ) : home_url( '/' ); ?>
' : ''; ?> ' : ''; ?>