-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
executable file
·62 lines (51 loc) · 1.71 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
<?php
global $woocommerce;
include_once(dirname(__FILE__)."/inc/php/navigation.php");
$base_dir = get_stylesheet_directory_uri();
$stylesheet = "$base_dir/dist/main.css";
function render_menu($location)
{
wp_nav_menu(array('theme_location' => $location));
}
?>
<!DOCTYPE html>
<html <?php language_attributes();?>>
<head>
<meta charset="<?php bloginfo('charset');?>">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<link rel="pingback" href="<?php bloginfo('pingback_url');?>">
<?php wp_head();?>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha256-eZrrJcwDc/3uDhsdt61sL2oOBY362qM3lon1gyExkL0=" crossorigin="anonymous" />
<link href="<?=$stylesheet?>" rel="stylesheet">
</head>
<body <?php body_class();?>>
<?php if (!is_front_page()) {
?>
<!-- mobile version -->
<div class="d-block d-lg-none">
<div class="text-center">
<?=render_menu("main-mobile")?>
</div>
<div class="text-center">
<?=get_site_logo_html()?>
</div>
</div>
<!-- desktop version -->
<div class="container d-none d-lg-block">
<div class="row blog-header">
<div class="col-sm-auto text-left">
<?=render_menu("main-left")?>
</div>
<div class="col text-center">
<?=get_site_logo_html()?>
</div>
<div class="col-sm-auto text-right">
<?=render_menu("main-right")?>
<?=storefront_cart_link()?>
</div>
</div>
</div>
<?php
site_content_start();
} ?>