CoreFiles by mySites.guru
header-image.php35 lines, 786 bytes, from wordpress-4.7-beta3.zip
Raw History Compare with 4.7-beta2
md5
f352487c5b4a1f4dd5cb7267266a0658
sha1
323aa59482297bc4beecd487d7faa07b9c47f3ca
sha256
50e3fb6178b207bb347a81d5662d2a5bfdfafe9d0658a5df7ae7593780c17644
<?php
/**
 * Displays header image
 *
 * @package WordPress
 * @subpackage Twenty_Seventeen
 * @since 1.0
 * @version 1.0
 */

?>
<div class="custom-header">
	<?php
	$header_image = get_header_image();

	// Check if Custom Header image has been added.
	if ( has_custom_header() ) :
	?>

		<?php // Output the full custom header - video and/or image fallback. ?>
		<div class="custom-header-image">
			<?php the_custom_header_markup(); ?>
		</div>
		<?php get_template_part( 'template-parts/header/site', 'branding' ); ?>

	<?php else : ?>

		<?php // Otherwise, show a blank header. ?>
		<div class="custom-header-simple">
			<?php get_template_part( 'template-parts/header/site', 'branding' ); ?>
		</div><!-- .custom-header-simple -->

	<?php endif; ?>

</div><!-- .custom-header -->

The same content is in 3 releases, WordPress 4.7-beta1 to 4.7-beta3. See them all, or every version of this file.