HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: /home/bournesociety.org.uk/public_html-20250117120021/wp-content/themes/inspiro/header.php
<?php
/**
 * The header for our theme
 *
 * This is the template that displays all of the <head> section and everything up until <div id="content">
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package Inspiro
 * @subpackage Inspiro_Lite
 * @since Inspiro 1.0.0
 * @version 1.0.0
 */

?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>" />
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	<?php wp_head(); ?>

</head>

<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<div id="page" class="site">
	<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'inspiro' ); ?></a>

	<header id="masthead" class="site-header" role="banner">
		<?php get_template_part( 'template-parts/navigation/navigation', 'primary' ); ?>
	</header><!-- #masthead -->

    <?php
        $hero_show = inspiro_get_theme_mod( 'hero_enable' );
    ?>

	<?php
	// Display custom header only on first page.

    if (!is_page_template( 'page-templates/homepage-no-hero.php' )) {
    	if ( isset( $paged ) && $paged < 2 && $hero_show ) {
    		if ( is_front_page() && is_home() ) { // Default homepage.
    			get_template_part( 'template-parts/header/header', 'image' );
    		} elseif ( is_front_page() ) { // static homepage.
    			get_template_part( 'template-parts/header/header', 'image' );
    		} elseif ( is_page() && inspiro_is_frontpage()) {
    			get_template_part( 'template-parts/header/header', 'image' );
    		} elseif ( is_page_template( 'page-templates/homepage-builder-bb.php' ) ) {
    			get_template_part( 'template-parts/header/header', 'image' );
    		}
    	}
    }
	?>

	<div class="site-content-contain">
		<div id="content" class="site-content">