-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
116 lines (92 loc) · 3.88 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
/**
* The header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package understrap
*/
$container = get_theme_mod( 'understrap_container_type' );
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="<?php bloginfo( 'name' ); ?> - <?php bloginfo( 'description' ); ?>">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="hfeed site" id="page">
<!-- <div id = "topInfo" class = "hidden-xs-up">
<div id = "topMessage" class = "text-center">
<p><?php the_field('message_text', 'option'); ?><a href = "<?php the_field('message_link', 'option'); ?>"><?php the_field('link_text', 'option'); ?></a></p>
</div>
<div class="close" aria-label="Close">
<span aria-hidden="true">×</span>
</div>
</div>
<div id = "bannerPull"><i class="fa fa-arrow-down" aria-hidden="true"></i></div> -->
<!-- <div class = "col-md-4">
<div id = "topSocial" class = "text-center">
<a href = "https://www.instagram.com/mizzicosmetics/" target = "_blank"><i class="fa fa-instagram" aria-hidden="true"></i></a>
<a href = "https://twitter.com/lipluxect" target = "_blank"><i class="fa fa-twitter" aria-hidden="true"></i></a>
<a href = "https://www.facebook.com/MIZZICOSMETICS/" target = "_blank"><i class="fa fa-facebook" aria-hidden="true"></i></a>
</div>
</div> -->
</div>
<!-- ******************* The Navbar Area ******************* -->
<div class="wrapper-fluid wrapper-navbar" id="wrapper-navbar">
<a class="skip-link screen-reader-text sr-only" href="#content"><?php _e( 'Skip to content',
'understrap' ); ?></a>
<nav class="navbar navbar-toggleable-md navbar-default">
<div class="<?php echo esc_html( $container ); ?>">
<button class="menu-toggle"></button>
<!-- The WordPress Menu goes here -->
<?php
wp_nav_menu(
array(
'theme_location' => 'primary',
'container' => 'nav',
'container_class' => 'main_menu',
'menu_class' => 'main_menu',
'fallback_cb' => '',
//'walker' => new WP_Bootstrap_Navwalker(),
)
); ?>
<!-- Your site title as branding in the menu -->
<?php if ( ! has_custom_logo() ) { ?>
<a class="navbar-brand" rel="home" href=/mc"<?php echo esc_url( home_url( '/' ) ); ?>"
title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
<?php bloginfo( 'name' ); ?>
</a>
<?php } else {
the_custom_logo();
} ?><!-- end custom logo -->
<div id = "headerLinks">
<a href = "<?php echo get_permalink( woocommerce_get_page_id( 'shop' ) );
?>" id = "headerShop" class = "btn btn-outline-primary btn-inline">SHOP <i class="fa fa-shopping-cart" aria-hidden="true"></i></a>
<div id = "cartContents">
<a href = "<?php echo wc_get_cart_url(); ?>"><i class="fa fa-shopping-bag" aria-hidden="true"></i></a>
<?php
$cartCount = WC()->cart->get_cart_contents_count();
if ($cartCount != 0) {
echo '<span>' . $cartCount . '</span>';
}
?>
</div>
<?php
$myaccount_page_id = get_option( 'woocommerce_myaccount_page_id' );
if ( $myaccount_page_id ) {
$myaccount_page_url = get_permalink( $myaccount_page_id );
} ?>
<a href = "<?php echo $myaccount_page_url ?>"><i class="fa fa-user" aria-hidden="true"></i></a>
</div>
</nav><!-- .container -->
</div><!-- .site-navigation -->
</div><!-- .wrapper-navbar end -->