mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-17 18:11:11 +02:00
1c2343e4ea
Removes default header text color and updates and updates selectors. Props laurelfulford, davidakennedy, Idealien Fixes #38391 Built from https://develop.svn.wordpress.org/trunk@39224 git-svn-id: http://core.svn.wordpress.org/trunk@39164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
35 lines
749 B
PHP
35 lines
749 B
PHP
<?php
|
|
/**
|
|
* Displays header image
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Twenty_Seventeen
|
|
* @since 1.0
|
|
* @version 1.0
|
|
*/
|
|
|
|
?>
|
|
<div class="custom-header">
|
|
<?php
|
|
|
|
// 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 -->
|