twentyeleven_admin_header_image

Definition:
function twentyeleven_admin_header_image() { ?>

Custom header image markup displayed on the Appearance > Header admin panel.
Referenced via add_custom_image_header() in twentyeleven_setup().

Source code

function twentyeleven_admin_header_image() { ?>

	<div id="headimg">

		<?php

		if ( 'blank' == get_theme_mod( 'header_textcolor', HEADER_TEXTCOLOR ) || '' == get_theme_mod( 'header_textcolor', HEADER_TEXTCOLOR ) )

			$style = ' style="display:none;"';

		else

			$style = ' style="color:#' . get_theme_mod( 'header_textcolor', HEADER_TEXTCOLOR ) . ';"';

		?>

		<h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>

		<div id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>

		<?php $header_image = get_header_image();

		if ( ! empty( $header_image ) ) : ?>

			<img src="<?php echo esc_url( $header_image ); ?>" alt="" />

		<?php endif; ?>

	</div>

<?php }

14709

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: