| Current File : /home/pariaqke/johmay.com/wp-content/themes/tanda/header-v1.php |
<?php
global $tanda_options;
/**
* Header file for the Tanda WordPress default theme.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package tanda
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<!-- ========== Meta Tags ========== -->
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php if ( ! ( function_exists( 'has_site_icon' ) && has_site_icon() ) ) { ?>
<!-- ========== Favicon Icon ========== -->
<link rel="shortcut icon" href="<?php echo esc_url($tanda_options['favicon']['url']); ?>" type="image/x-icon">
<?php } wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php if ( isset($tanda_options['enable_preloader']) && $tanda_options['enable_preloader'] ) : ?>
<!-- Preloader Start -->
<div id="site-preloader" class="site-preloader">
<div class="loader-wrap">
<div class="ring">
<span></span>
</div>
</div>
</div>
<!-- Preloader Ends -->
<?php endif; ?>
<?php if ( isset($tanda_options['enable_top_bar']) && $tanda_options['enable_top_bar'] ) : ?>
<!-- Start Header Top
============================================= -->
<div class="top-bar-area inc-pad bg-theme text-light">
<div class="container">
<div class="row align-center">
<div class="col-lg-6 info">
<ul>
<li>
<i class="<?php echo esc_attr($tanda_options['t_icon1']); ?>"></i> <?php echo esc_html($tanda_options['t_text1']); ?>
</li>
<li>
<i class="<?php echo esc_attr($tanda_options['t_icon2']); ?>"></i> <a href="mailto:<?php echo rawurlencode($tanda_options['t_text2']); ?>"><?php echo esc_html($tanda_options['t_text2']); ?></a>
</li>
</ul>
</div>
<div class="col-lg-6 text-right item-flex">
<div class="info">
<ul>
<li>
<i class="<?php echo esc_attr($tanda_options['t_icon3']); ?>"></i> <?php echo esc_html($tanda_options['t_text3']); ?>
</li>
</ul>
</div>
<div class="social">
<ul>
<li>
<a href="<?php echo esc_url($tanda_options['sl1']); ?>">
<i class="<?php echo esc_attr($tanda_options['sicon1']); ?>"></i>
</a>
</li>
<li>
<a href="<?php echo esc_url($tanda_options['sl2']); ?>">
<i class="<?php echo esc_attr($tanda_options['sicon2']); ?>"></i>
</a>
</li>
<li>
<a href="<?php echo esc_url($tanda_options['sl3']); ?>">
<i class="<?php echo esc_attr($tanda_options['sicon3']); ?>"></i>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- End Header Top -->
<?php endif; ?>
<!-- Header
============================================= -->
<header id="home">
<!-- Start Navigation -->
<nav class="navbar navbar-default active-border navbar-sticky bootsnav">
<div class="container">
<?php if ( isset($tanda_options['enable_button']) && $tanda_options['enable_button'] ) : ?>
<!-- Start Atribute Navigation -->
<div class="attr-nav inc-border">
<ul>
<li class="contact">
<i class="<?php echo esc_attr($tanda_options['h_icon1']); ?>"></i>
<p><?php echo esc_html($tanda_options['h_title1']); ?> <strong><a href="tel:<?php echo rawurlencode($tanda_options['h_text1']); ?>"><?php echo esc_html($tanda_options['h_text1']); ?></a></strong></p>
</li>
</ul>
</div>
<!-- End Atribute Navigation -->
<?php endif; ?>
<!-- Start Header Navigation -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-menu">
<i class="fa fa-bars"></i>
</button>
<a class="navbar-brand" href="<?php echo esc_url(home_url('/')); ?>">
<img src="<?php echo esc_url($tanda_options['sticky-logo']['url']); ?>" class="logo" alt="<?php echo esc_attr__( 'Logo', 'tanda' )?>">
</a>
</div>
<!-- End Header Navigation -->
<!-- Collect the nav links, forms, and other content for toggling -->
<?php
wp_nav_menu( array(
'theme_location' => 'main-menu',
'depth' => 8, // 1 = no dropdowns, 2 = with dropdowns.
'container' => 'div',
'container_class' => 'collapse navbar-collapse',
'container_id' => 'navbar-menu',
'menu_class' => 'nav navbar-nav navbar-center',
'fallback_cb' => 'tanda_Bootstrap_Navwalker::fallback',
'items_wrap' => '<ul data-in="#" data-out="#" class="%2$s" id="%1$s">%3$s</ul>',
'walker' => new tanda_Bootstrap_Navwalker(),
) );
?>
</div>
</nav>
<!-- End Navigation -->
</header>
<!-- End Header -->