| 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/templates/ |
| Current File : /home/eglisebaa/www/wp-content/themes/hallelujah/templates/header-default.php |
<?php
/**
* The template to display default site header
*
* @package WordPress
* @subpackage HALLELUJAH
* @since HALLELUJAH 1.0
*/
$hallelujah_header_css = '';
$hallelujah_header_image = get_header_image();
$hallelujah_header_video = hallelujah_get_header_video();
if ( ! empty( $hallelujah_header_image ) && hallelujah_trx_addons_featured_image_override( is_singular() || hallelujah_storage_isset( 'blog_archive' ) || is_category() ) ) {
$hallelujah_header_image = hallelujah_get_current_mode_image( $hallelujah_header_image );
}
?><header class="top_panel top_panel_default
<?php
echo ! empty( $hallelujah_header_image ) || ! empty( $hallelujah_header_video ) ? ' with_bg_image' : ' without_bg_image';
if ( '' != $hallelujah_header_video ) {
echo ' with_bg_video';
}
if ( '' != $hallelujah_header_image ) {
echo ' ' . esc_attr( hallelujah_add_inline_css_class( 'background-image: url(' . esc_url( $hallelujah_header_image ) . ');' ) );
}
if ( is_single() && has_post_thumbnail() ) {
echo ' with_featured_image';
}
if ( hallelujah_is_on( hallelujah_get_theme_option( 'header_fullheight' ) ) ) {
echo ' header_fullheight hallelujah-full-height';
}
$hallelujah_header_scheme = hallelujah_get_theme_option( 'header_scheme' );
if ( ! empty( $hallelujah_header_scheme ) && ! hallelujah_is_inherit( $hallelujah_header_scheme ) ) {
echo ' scheme_' . esc_attr( $hallelujah_header_scheme );
}
?>
">
<?php
// Background video
if ( ! empty( $hallelujah_header_video ) ) {
get_template_part( apply_filters( 'hallelujah_filter_get_template_part', 'templates/header-video' ) );
}
// Main menu
if ( hallelujah_get_theme_option( 'menu_style' ) == 'top' ) {
get_template_part( apply_filters( 'hallelujah_filter_get_template_part', 'templates/header-navi' ) );
}
// Mobile header
if ( hallelujah_is_on( hallelujah_get_theme_option( 'header_mobile_enabled' ) ) ) {
get_template_part( apply_filters( 'hallelujah_filter_get_template_part', 'templates/header-mobile' ) );
}
// Page title and breadcrumbs area
get_template_part( apply_filters( 'hallelujah_filter_get_template_part', 'templates/header-title' ) );
// Header widgets area
get_template_part( apply_filters( 'hallelujah_filter_get_template_part', 'templates/header-widgets' ) );
?>
</header>