File: /home/defaultwebsite/public/wp-content/themes/webgatha/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 WebGatha
* @since 1.0.0
*/
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
}
?>
<div id="page" class="<?php webgatha_page_classes(); ?>">
<a class="skip-link screen-reader-text" href="#content"><?php echo esc_html__( 'Skip to content', 'webgatha' ); ?></a>
<?php
if ( ! webgatha_is_maintenance_mode_in() && 'disable' !== webgatha_header_type() ) {
/**
* Fires before site header.
*
* @visible true
*/
do_action( 'webgatha_before_header_wrapper' );
$header_classes = webgatha_header_classes();
?>
<header id="masthead" class="<?php echo esc_attr( $header_classes ); ?>">
<?php
/**
* Fires before site header.
*
* @visible true
*/
do_action( 'webgatha_before_header' );
/**
* Get Header template
*/
get_template_part( 'template-parts/header/header-type/' . webgatha_header_type() );
/**
* Fires after site header.
*
* @visible true
*/
do_action( 'webgatha_after_header' );
?>
</header><!-- #masthead -->
<?php
/**
* Fires after site header.
*
* @visible true
*/
do_action( 'webgatha_after_header_wrapper' );
}
/**
* Fires before site content.
*
* @visible true
*/
do_action( 'webgatha_before_content' );
?>
<div id="content" class="site-content">
<?php
if ( ! is_front_page() ) {
get_template_part( 'template-parts/page-header/webgatha-page', 'header' );
}
$wrapper_classes = array( 'content-wrapper' );
if ( webgatha_is_vc_enabled() ) {
$wrapper_classes[] = 'content-wrapper-vc-enabled';
}
$wrapper_classes = implode( ' ', array_filter( array_unique( $wrapper_classes ) ) );
?>
<div class="<?php echo esc_attr( $wrapper_classes ); ?>">