first commit
This commit is contained in:
28
template-parts/header/site-branding.php
Normal file
28
template-parts/header/site-branding.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Template part for displaying the site branding section.
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package PressBook
|
||||
*/
|
||||
|
||||
if ( get_header_image() ) {
|
||||
?>
|
||||
<div class="site-branding" style="background-image: url(<?php header_image(); ?>);">
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<div class="site-branding">
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="u-wrapper site-branding-wrap">
|
||||
<div class="<?php echo esc_attr( PressBook\Options\SiteIdentity::logo_title_class() ); ?>">
|
||||
<img alt="OGS" id="wordmark">
|
||||
<!-- .site-title-tagline -->
|
||||
</div><!-- .site-logo-title -->
|
||||
|
||||
<?php get_template_part( 'template-parts/header/top-banner' ); ?>
|
||||
</div><!-- .site-branding-wrap -->
|
||||
</div><!-- .site-branding -->
|
||||
Reference in New Issue
Block a user