git-svn-id: http://svn.automattic.com/wordpress/trunk@17775 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
db11985bda
commit
62edbb753b
|
@ -286,7 +286,10 @@ function twentyeleven_admin_header_image() { ?>
|
||||||
?>
|
?>
|
||||||
<h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo home_url( '/' ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
|
<h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo home_url( '/' ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
|
||||||
<div id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>
|
<div id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>
|
||||||
<img src="<?php esc_url ( header_image() ); ?>" alt="" />
|
<?php $header_image = get_header_image();
|
||||||
|
if ( ! empty( $header_image ) ) : ?>
|
||||||
|
<img src="<?php esc_url( $header_image ); ?>" alt="" />
|
||||||
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php }
|
<?php }
|
||||||
endif; // twentyeleven_admin_header_image
|
endif; // twentyeleven_admin_header_image
|
||||||
|
|
|
@ -61,7 +61,8 @@
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// Check to see if the header image has been removed
|
// Check to see if the header image has been removed
|
||||||
if ( get_header_image() != '' ) :
|
$header_image = get_header_image();
|
||||||
|
if ( ! empty( $header_image ) ) :
|
||||||
?>
|
?>
|
||||||
<a href="<?php echo home_url( '/' ); ?>">
|
<a href="<?php echo home_url( '/' ); ?>">
|
||||||
<?php
|
<?php
|
||||||
|
@ -83,7 +84,7 @@
|
||||||
// Has the text been hidden?
|
// Has the text been hidden?
|
||||||
if ( 'blank' == get_header_textcolor() ) :
|
if ( 'blank' == get_header_textcolor() ) :
|
||||||
?>
|
?>
|
||||||
<div class="only-search<?php if ( get_header_image() != '' ) : ?> with-image<?php endif; ?>">
|
<div class="only-search<?php if ( ! empty( $header_image ) ) : ?> with-image<?php endif; ?>">
|
||||||
<?php get_search_form(); ?>
|
<?php get_search_form(); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Reference in New Issue