/var/www/html_us/wp-content/themes/elessi-theme/header.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
/**
 * The template for displaying the header
 *
 * @package nasatheme
 */

global $nasa_opt;
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta name="google-site-verification" content="B6laSHp0lT59kWnEoaMauMUZnwltwvrF8_w9FRt-_Ts" />
<meta name="google-site-verification" content="EQbhXo1PYeQAP2M3V6bG54Yb8zBKSVdPoGAGOWHaMyg">
<meta charset="<?php bloginfo('charset'); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<?php /*meta name="viewport" content="width=device-width, initial-scale=1" / */?>
<meta name="viewport" content="<?php echo apply_filters('nasa_viewport_content''width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'); ?>" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if (isset($nasa_opt['site_favicon']) && $nasa_opt['site_favicon']): ?>
<link rel="shortcut icon" href="<?php echo esc_attr($nasa_opt['site_favicon']); ?>" />
<?php else:
wp_site_icon();
endif; 
?>
<?php wp_head
(); ?>
    <!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16777649630"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'AW-16777649630');
</script>
</head>
<body <?php body_class(); ?>>
<?php
wp_body_open
();
do_action('nasa_theme_before_load');

$mobile = isset($nasa_opt['nasa_in_mobile']) && $nasa_opt['nasa_in_mobile'] ? true false;
$tab_style = (NASA_WOO_ACTIVED && is_product() && !$mobile && apply_filters('nasa_single_product_tabs_style''2d-no-border') == 'scroll-down')? true false;
$mobile_app =  $mobile && isset($nasa_opt['mobile_layout']) && $nasa_opt['mobile_layout'] !== 'df' true false;
$header_type = isset($nasa_opt['header-type']) && in_array($nasa_opt['header-type'], ['5''7']) ? true false;

$class_h $tab_style .' site-header';
$fixed_nav_header = (!isset($nasa_opt['fixed_nav']) || $nasa_opt['fixed_nav']);
$fixed_nav apply_filters('nasa_header_sticky'$fixed_nav_header);
if (
$fixed_nav && !$tab_style) :
    
$class_h .= ' nasa-header-sticky-wrap';
    
$class_h .= NASA_CORE_USER_LOGGED && current_user_can('manage_options') ? ' ns-has-wpadminbar' '';
    
$class_h .= isset($nasa_opt['enable_post_top']) && $nasa_opt['enable_post_top'] ? ' ns-has-post' '';
    
$class_h .= isset($nasa_opt['topbar_on']) && $nasa_opt['topbar_on'] && !$mobile_app && !$header_type ' ns-has-topbar' '';
endif;
?>

<!-- Start Wrapper Site -->
<div id="wrapper">

<!-- Start Header Site -->
<header id="header-content" class="<?php echo esc_attr($class_h); ?>">
<?php do_action('nasa_before_header_structure'); ?>
<?php do_action
('nasa_header_structure'); ?>
<?php do_action
('nasa_after_header_structure'); ?>
</header>
<!-- End Header Site -->

<!-- Start Main Content Site -->
<main id="main-content" class="site-main light nasa-after-clear">