_s: Simplify header image markup in admin appearance page.

This commit is contained in:
obenland 2013-09-25 14:55:08 -07:00
parent f572468099
commit 083d8a580d
1 changed files with 3 additions and 4 deletions

View File

@ -113,14 +113,13 @@ if ( ! function_exists( '_s_admin_header_image' ) ) :
* @see _s_custom_header_setup(). * @see _s_custom_header_setup().
*/ */
function _s_admin_header_image() { function _s_admin_header_image() {
$style = sprintf( ' style="color:#%s;"', get_header_textcolor() ); $style = sprintf( ' style="color:#%s;"', get_header_textcolor() );
$header_image = get_header_image();
?> ?>
<div id="headimg"> <div id="headimg">
<h1 class="displaying-header-text"><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1> <h1 class="displaying-header-text"><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
<div class="displaying-header-text" id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div> <div class="displaying-header-text" id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>
<?php if ( ! empty( $header_image ) ) : ?> <?php if ( get_header_image() ) : ?>
<img src="<?php echo esc_url( $header_image ); ?>" alt=""> <img src="<?php header_image(); ?>" alt="">
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php <?php