Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/geniouskin/wp-content/themes/ixlab/tmpl/ |
Upload File : |
<?php
/**
* The template for displaying header
*/
defined( 'ABSPATH' ) or die();
$contact_info = ixlab_option( 'header__info__text' );
$header_nav_extras = ixlab_option( 'header__extras' );
$sliding_sidebarLable = ixlab_option( 'sliding__sidebarLable' );
$header_classes = array( 'site-header' );
$header_classes[] = sprintf( 'header-%s', ixlab_option( 'header__style' ) );
$header_style = ixlab_option( 'header__style' );
$current_post = get_queried_object();
if ($current_post instanceof WP_Post) {
/**
* Override layout and alignment settings for the specific entry
*/
$_header_style = get_field( 'headerStyles', $current_post->ID );
}
if ( isset( $_header_style ) && $_header_style != 'default' ) {
$header_style = $_header_style;
}
$header_classes = array(
"site-header",
"header-{$header_style}"
);
if ( ixlab_option( 'header__width' ) === 'on' ) {
$header_classes[] = 'header-full';
}
if ( ixlab_option( 'header__shadow' ) === 'on' ) {
$header_classes[] = 'header-shadow';
}
if ( ixlab_option( 'header__transparent' ) === 'on' ) {
$header_classes[] = 'header-transparent';
}
?>
<?php if ( ixlab_option( 'header__topbar' ) === 'on' ): ?>
<?php get_template_part( 'tmpl/header-topbar' ); ?>
<?php endif ?>
<div id="site-header" class="<?php echo esc_attr( join( ' ', $header_classes ) ) ?>">
<div class="site-header-inner wrap">
<?php if ( is_active_sidebar( 'off-canvas-left' ) ): ?>
<a href="javascript:;" data-target="off-canvas-left" class="off-canvas-toggle">
<span><?php echo ixlab_cleanup( $sliding_sidebarLable ) ?></span>
</a>
<?php endif; ?>
<div class="header-brand">
<a href="<?php echo esc_attr( home_url() ) ?>">
<?php ixlab_logo( ixlab_option( 'header__logo' ) ) ?>
</a>
</div>
<nav class="navigator" itemscope="itemscope" itemtype="https://schema.org/SiteNavigationElement">
<?php
wp_nav_menu(array(
'theme_location' => 'primary',
'container' => false,
'menu_class' => 'menu menu-primary',
'fallback_cb' => 'ixlab_page_menu',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'depth' => 0
));
?>
</nav>
<div class="header-info-text"><?php if ( ! empty( $contact_info ) ): ?><?php echo do_shortcode( $contact_info ) ?><?php endif ?><?php ixlab_social_icons( array( 'location' => 'nav' ) ) ?></div>
<?php if ( ! empty( $header_nav_extras ) ): ?>
<ul class="navigator menu-extras">
<?php foreach ( $header_nav_extras as $type ): ?>
<?php get_template_part( 'tmpl/header-icon', $type ); ?>
<?php endforeach ?>
</ul>
<?php endif ?>
<?php if ( has_nav_menu( 'sliding' ) ): ?>
<?php get_template_part( 'tmpl/header-sliding-toggle' ) ?>
<?php endif ?>
</div>
<!-- /.site-header-inner -->
</div>
<!-- /.site-header -->
<?php if ( ixlab_option( 'header__sticky' ) === 'on' ): ?>
<?php get_template_part( 'tmpl/header-sticky' ); ?>
<?php endif ?>