mirror of
git://develop.git.wordpress.org/
synced 2025-02-28 18:43:03 +01:00
git-svn-id: https://develop.svn.wordpress.org/trunk@17775 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fbe565a5bd
commit
23113b69bc
@ -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…
x
Reference in New Issue
Block a user