fictioneer/partials/_site-header.php
Tetrakern f250f9baae Changed header HTML/CSS
This removes the 100vw for the header background image, which should resolve issues with unwanted horizontal scrollbars in Firefox.
2023-03-08 10:36:53 +01:00

40 lines
1.2 KiB
PHP

<?php
/**
* Partial: Site Header
*
* Renders the site header.
*
* @package WordPress
* @subpackage Fictioneer
* @since 5.0
*
* @internal $args['post_id'] Current post ID or null.
* @internal $args['story_id'] Current story ID (if chapter) or null.
* @internal $args['header_image_url'] URL of the filtered header image or false.
* @internal $args['header_args'] Arguments passed to the header.php partial.
*/
?>
<header class="header hide-on-fullscreen">
<?php do_action( 'fictioneer_header', $args ); ?>
<div class="header__content">
<?php if ( has_custom_logo() ) : ?>
<div class="header__logo"><?php the_custom_logo(); ?></div>
<?php elseif ( display_header_text() ) : ?>
<div class="header__title">
<h1 class="header__title-heading"><a href="<?php echo esc_url( home_url() ); ?>" class="header__title-link" rel="home"><?php echo get_bloginfo( 'name' ); ?></a></h1>
<?php if ( ! empty( get_bloginfo( 'description' ) ) ) : ?>
<div class="header__title-tagline"><?php echo get_bloginfo( 'description' ); ?></div>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</header>