| Linux webm007.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 Path : /home/eglisebaa/www/wp-content/themes/hallelujah/ |
| Current File : /home/eglisebaa/www/wp-content/themes/hallelujah/header.php |
<?php
/**
* The Header: Logo and main menu
*
* @package WordPress
* @subpackage HALLELUJAH
* @since HALLELUJAH 1.0
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js
<?php
// Class scheme_xxx need in the <html> as context for the <body>!
echo ' scheme_' . esc_attr( hallelujah_get_theme_option( 'color_scheme' ) );
?>
">
<head>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php do_action( 'hallelujah_action_before_body' ); ?>
<div class="body_wrap">
<div class="page_wrap">
<?php
// Short links to fast access to the content, sidebar and footer from the keyboard
?>
<a class="hallelujah_skip_link skip_to_content_link" href="#content_skip_link_anchor" tabindex="1"><?php esc_html_e( "Skip to content", 'hallelujah' ); ?></a>
<?php if ( hallelujah_sidebar_present() ) { ?>
<a class="hallelujah_skip_link skip_to_sidebar_link" href="#sidebar_skip_link_anchor" tabindex="1"><?php esc_html_e( "Skip to sidebar", 'hallelujah' ); ?></a>
<?php } ?>
<a class="hallelujah_skip_link skip_to_footer_link" href="#footer_skip_link_anchor" tabindex="1"><?php esc_html_e( "Skip to footer", 'hallelujah' ); ?></a>
<?php
// Header
$hallelujah_header_type = hallelujah_get_theme_option( 'header_type' );
if ( 'custom' == $hallelujah_header_type && ! hallelujah_is_layouts_available() ) {
$hallelujah_header_type = 'default';
}
get_template_part( apply_filters( 'hallelujah_filter_get_template_part', "templates/header-{$hallelujah_header_type}" ) );
// Side menu
if ( in_array( hallelujah_get_theme_option( 'menu_style' ), array( 'left', 'right' ) ) ) {
get_template_part( apply_filters( 'hallelujah_filter_get_template_part', 'templates/header-navi-side' ) );
}
// Mobile menu
get_template_part( apply_filters( 'hallelujah_filter_get_template_part', 'templates/header-navi-mobile' ) );
// Single posts banner after header
hallelujah_show_post_banner( 'header' );
?>
<div class="page_content_wrap">
<?php
// Single posts banner on the background
if ( is_singular( 'post' ) || is_singular( 'attachment' ) ) {
hallelujah_show_post_banner( 'background' );
}
// Single post thumbnail and title
get_template_part( apply_filters( 'hallelujah_filter_get_template_part', 'templates/single-styles/' . hallelujah_get_theme_option( 'single_style' ) ) );
// Widgets area above page content
$hallelujah_body_style = hallelujah_get_theme_option( 'body_style' );
$hallelujah_widgets_name = hallelujah_get_theme_option( 'widgets_above_page' );
$hallelujah_show_widgets = ! hallelujah_is_off( $hallelujah_widgets_name ) && is_active_sidebar( $hallelujah_widgets_name );
if ( $hallelujah_show_widgets ) {
if ( 'fullscreen' != $hallelujah_body_style ) {
?>
<div class="content_wrap">
<?php
}
hallelujah_create_widgets_area( 'widgets_above_page' );
if ( 'fullscreen' != $hallelujah_body_style ) {
?>
</div><!-- </.content_wrap> -->
<?php
}
}
// Content area
?>
<div class="content_wrap<?php echo 'fullscreen' == $hallelujah_body_style ? '_fullscreen' : ''; ?>">
<div class="content">
<?php
// Skip link anchor to fast access to the content from keyboard
?>
<a id="content_skip_link_anchor" class="hallelujah_skip_link_anchor" href="#"></a>
<?php
// Widgets area inside page content
hallelujah_create_widgets_area( 'widgets_above_content' );