-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
59 lines (54 loc) · 1.73 KB
/
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
<?php
/**
* Template for displaying the header
*
* @link https://github.com/keitaroinc/keitaro-theme
*
* @package WordPress
* @subpackage Keitaro
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js no-svg">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<?php wp_head(); ?>
<?php get_template_part( SNIPPETS_DIR . '/google-site-tag' ); ?>
<?php get_template_part( SNIPPETS_DIR . '/lead-feeder' ); ?>
<?php get_template_part( SNIPPETS_DIR . '/hotjar' ); ?>
</head>
<body <?php body_class(); ?>>
<?php get_template_part( SNIPPETS_DIR . '/facebook-pixel' ); ?>
<?php get_template_part( SNIPPETS_DIR . '/lead-forensics' ); ?>
<?php
$container_wrapper_class = 'container-fluid';
$container_bg_class = '';
if ( ! is_front_page() ) :
$container_bg_class = 'container-bg container-bottom-border';
endif;
?>
<div class="sticky-top bg-white <?php echo esc_html( $container_bg_class ); ?> <?php echo esc_html( $container_wrapper_class ); ?>">
<div class="row">
<div class="col-xl-10 offset-xl-1">
<nav class="navbar navbar-expand-xl navbar-light">
<?php get_template_part( SNIPPETS_DIR . '/header/logo' ); ?>
<?php get_template_part( SNIPPETS_DIR . '/navigation/main-menu' ); ?>
</nav>
</div>
</div>
</div>
<?php
if ( ! is_front_page() ) :
?>
<div class="container-fluid navbar-breadcrumbs">
<div class="row">
<div class="col-xl-10 offset-xl-1">
<?php get_template_part( SNIPPETS_DIR . '/navigation/breadcrumb' ); ?>
</div>
</div>
</div>
<?php
endif;