This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
cookthebooks-legacy/template-parts/header/site-branding.php
2023-09-08 01:45:46 -07:00

29 lines
723 B
PHP

<?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 -->