| Server IP : 194.30.32.123 / Your IP : 216.73.216.89 Web Server : Apache System : Linux 4f6650a08421 5.10.0-44-amd64 #1 SMP Debian 5.10.257-1 (2026-05-27) x86_64 User : ftpbegirale ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /expert/htwebs/www.begirale.com/public/wp-content/themes/exs/template-parts/header/ |
Upload File : |
<?php
/**
* The header template file
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WordPress
* @subpackage ExS
* @since 0.0.1
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
//options
$exs_fluid = exs_option( 'header_fluid' ) ? '-fluid' : '';
$exs_transparent = exs_option( 'header_transparent' ) || is_page_template( 'page-templates/header-overlap.php' ) || is_page_template( 'page-templates/header-overlap-full-width.php' ) ? 'transparent' : '';
$exs_absolute = exs_option( 'header_absolute' ) ? 'absolute' : '';
$exs_header_top_tall = exs_option( 'header_top_tall' ) ? 'header-tall' : '';
$exs_sticky = exs_option( 'header_sticky' );
$exs_search = exs_option( 'header_search' );
$exs_login_links = exs_option( 'header_login_links' );
$exs_login_links_hidden = exs_option( 'header_login_links_hidden' );
$exs_social_hidden_class= exs_option( 'header_toplogo_social_hidden' );
$exs_button_url = exs_option( 'header_button_url' );
$exs_button_text = exs_option( 'header_button_text' );
$exs_header_background = exs_option( 'header_background', '' );
$exs_header_orig_bg = $exs_header_background;
$exs_header_toplogo_bg = exs_option( 'header_toplogo_background', 'l' );
if ( is_page_template( 'page-templates/header-overlap.php' ) || is_page_template( 'page-templates/header-overlap-full-width.php' ) ) {
$exs_header_background = exs_get_transparent_class( $exs_header_background );
$exs_header_toplogo_bg = $exs_header_background;
}
$exs_font_size = exs_option( 'header_font_size', '' );
$exs_border_top = exs_option( 'header_border_top', '' );
$exs_border_bottom = exs_option( 'header_border_bottom', '' );
$exs_toplogo_border_top = exs_option( 'header_toplogo_border_top', '' );
$exs_meta = exs_get_theme_meta();
$exs_toggler_side_in_header = exs_option( 'header_toggler_menu_side', true );
$exs_toggler_main_in_header = exs_option( 'header_toggler_menu_main', true );
$exs_toggler_main_center = exs_option( 'header_toggler_menu_main_center', false ) ? 'mobile-menu-toggler-center' : '';
$exs_header_align_main_menu = exs_option( 'header_align_main_menu', '' );
$exs_header_align_main_menu = empty( $exs_header_align_main_menu ) ? 'menu-default' : $exs_header_align_main_menu;
$exs_logo_hidden_class = exs_option( 'header_logo_hidden' );
$exs_toplogo_hidden_class = exs_option( 'header_toplogo_hidden' );
$exs_meta_hidden_class = exs_option( 'header_toplogo_meta_hidden' );
?>
<div id="toplogo" class="toplogo <?php echo esc_attr( $exs_font_size . ' ' . $exs_header_toplogo_bg . ' ' . $exs_header_top_tall . ' ' . $exs_toplogo_hidden_class ); ?>">
<?php
if ( 'full' === $exs_toplogo_border_top ) {
?>
<hr class="section-hr">
<?php
}
if ( 'container' === $exs_toplogo_border_top ) {
?>
<hr class="section-hr container">
<?php
}
?>
<div class="container<?php echo esc_attr( $exs_fluid ); ?> container-md-flex pt-1 pb-1">
<?php
get_template_part( 'template-parts/header/logo/logo', exs_template_part( 'logo', '1' ) );
?>
<div class="<?php echo esc_attr( $exs_meta_hidden_class ); ?> icons-media flex-icons">
<?php
get_template_part( 'template-parts/site-meta', '', $exs_meta );
?>
</div>
</div><!-- .container -->
</div><!-- #toplogo -->
<?php if ( ! empty( $exs_sticky ) ) : ?>
<div id="header-affix-wrap" class="header-wrap <?php echo esc_attr( $exs_header_background . ' ' . $exs_transparent . ' ' . $exs_absolute ); ?>">
<?php endif; ?>
<header
id="header"
data-bg="<?php echo esc_attr( $exs_header_orig_bg ); ?>"
class="header header-8 no-logo <?php echo esc_attr( $exs_header_background . ' ' . $exs_header_align_main_menu . ' ' . $exs_font_size . ' ' . $exs_sticky . ' ' . $exs_transparent . ' ' . $exs_absolute . ' ' . $exs_toggler_main_center ); ?>">
<?php
if ( 'full' === $exs_border_top ) {
?>
<hr class="section-hr">
<?php
}
if ( 'container' === $exs_border_top ) {
?>
<hr class="section-hr container">
<?php
}
?>
<div class="container<?php echo esc_attr( $exs_fluid ); ?>">
<?php if ( ! empty( $exs_toggler_side_in_header ) && ( has_nav_menu( 'side' ) || is_active_sidebar( 'sidebar-side' ) ) ) : ?>
<button id="nav_side_toggle" class="nav-btn"
aria-controls="nav_side"
aria-expanded="false"
aria-label="<?php esc_attr_e( 'Side Menu Toggler', 'exs' ); ?>"
<?php if ( defined( 'AMP__VERSION' ) ) : ?>
on="tap:nav_side.toggleClass(class='active'),nav_side_toggle.toggleClass(class='active'),body.toggleClass(class='side-menu-active')"
<?php endif; ?>
>
<span></span>
</button>
<?php
endif; //toggler_side_in_header
//this logo will be visible only on small screens
//logo
if ( ! empty( $exs_logo_hidden_class ) ) :
echo '<span class="' . esc_attr( $exs_logo_hidden_class ) . '">';
endif;
get_template_part( 'template-parts/header/logo/logo', exs_template_part( 'logo', '1' ) );
if ( ! empty( $exs_logo_hidden_class ) ) :
echo '</span>';
endif;
?>
<div id="logo-align"></div>
<?php
get_template_part( 'template-parts/header/overlay' );
if ( has_nav_menu( 'primary' ) ) :
?>
<nav id="nav_top" class="top-nav" aria-label="<?php esc_attr_e( 'Top Menu', 'exs' ); ?>">
<?php
$exs_menu_css_class = exs_get_menu_class_based_on_top_items_count( 'primary' );
wp_nav_menu(
array(
'theme_location' => 'primary',
'menu_class' => 'top-menu ' . $exs_menu_css_class,
'container' => false,
)
);
if ( empty( $exs_toggler_main_in_header ) ) :
?>
<button id="nav_toggle" class="nav-btn"
aria-controls="nav_top"
aria-expanded="false"
aria-label="<?php esc_attr_e( 'Top Menu Toggler', 'exs' ); ?>"
<?php if ( defined( 'AMP__VERSION' ) ) : ?>
on="tap:nav_top.toggleClass(class='active'),nav_toggle.toggleClass(class='active'),body.toggleClass(class='top-menu-active')"
<?php endif; ?>
>
<span></span>
</button>
<?php
//echo closing button if main button is inside header section
else :
?>
<button id="nav_close" class="nav-btn active"
aria-controls="nav_top"
aria-expanded="true"
aria-label="<?php esc_attr_e( 'Top Menu Close', 'exs' ); ?>"
<?php if ( defined( 'AMP__VERSION' ) ) : ?>
on="tap:nav_top.toggleClass(class='active'),nav_toggle.toggleClass(class='active'),body.toggleClass(class='top-menu-active')"
<?php endif; ?>
>
<span></span>
</button>
<?php endif; //toggler_main_in_header ?>
</nav><!-- .top-nav -->
<?php
endif; //primary menu
if ( ! empty( $exs_search ) ) :
get_template_part( 'template-parts/header/header-search' );
endif; //search
if ( ! empty( $exs_login_links ) ) :
if ( ! empty( $exs_login_links_hidden ) ) {
echo '<span class="' . esc_attr( $exs_login_links_hidden ) . '">';
}
get_template_part( 'template-parts/header/login-links' );
if ( ! empty( $exs_login_links_hidden ) ) {
echo '</span>';
}
endif; //login_links
if ( class_exists( 'WooCommerce' ) ) :
get_template_part( 'template-parts/header/cart-dropdown' );
endif; //woocommerce
if ( class_exists( 'Easy_Digital_Downloads' ) ) :
get_template_part( 'template-parts/header/edd-cart-dropdown' );
endif; //edd
?>
<div class="social-links-wrap <?php echo esc_attr( $exs_social_hidden_class ); ?>">
<?php exs_social_links(); ?>
</div><!-- .social-links-wrap -->
<?php
/**
* Fires before header button
*
* @since ExS 1.9.2
*/
do_action( 'exs_action_header_before_header_button' );
if ( ! empty( $exs_button_text ) ) :
$exs_hidden_class = exs_option( 'header_button_hidden' );
?>
<a class="wp-block-button__link header-button <?php echo esc_attr( $exs_hidden_class ); ?>" href="<?php echo esc_url( $exs_button_url ); ?>">
<?php echo wp_kses_post( $exs_button_text ); ?>
</a>
<?php
endif; //header button
if ( ! empty( $exs_toggler_main_in_header ) && has_nav_menu( 'primary' ) ) :
?>
<button id="nav_toggle" class="nav-btn"
aria-controls="nav_top"
aria-expanded="false"
aria-label="<?php esc_attr_e( 'Top Menu Toggler', 'exs' ); ?>"
<?php if ( defined( 'AMP__VERSION' ) ) : ?>
on="tap:nav_top.toggleClass(class='active'),nav_toggle.toggleClass(class='active'),body.toggleClass(class='top-menu-active')"
<?php endif; ?>
>
<span></span>
</button>
<?php endif; //toggler_main_in_header ?>
</div><!-- .container -->
<?php
if ( 'container' === $exs_border_bottom ) {
?>
<hr class="section-hr container">
<?php
}
if ( 'full' === $exs_border_bottom ) {
?>
<hr class="section-hr">
<?php
}
?>
</header><!-- #header -->
<?php if ( ! empty( $exs_sticky ) ) : ?>
</div><!-- #header-affix-wrap-->
<?php endif; ?>