This repository has been archived by the owner on Jul 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
113 lines (93 loc) · 5.46 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
<!DOCTYPE HTML>
<html prefix="og: http://ogp.me/ns#">
<head>
<title>{content_meta_title}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!-- Site Meta Data -->
<meta name="keywords" content="{content_meta_keywords}">
<meta name="description" content="{content_meta_description}">
<!-- Site Open Graph Meta Data -->
<meta property="og:title" content="{content_meta_title}">
<meta property="og:type" content="{og_type}">
<meta property="og:url" content="{content_url}">
<meta property="og:image" content="{content_image}">
<meta property="og:description" content="{og_description}">
<meta property="og:site_name" content="{og_site_name}">
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,200,300,600,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="<?php print mw_includes_url(); ?>css/ui.css"/>
<link rel="stylesheet" type="text/css" href="<?php print TEMPLATE_URL; ?>css/style.css"/>
<link rel="stylesheet" type="text/css" href="<?php print TEMPLATE_URL; ?>css/colors.css"/>
<script>
AddToCartModalContent = window.AddToCartModalContent || function (title) {
var html = ''
+ '<section>'
+ '<span class="sm-icon-bag2"></span>'
+ '<h5>' + title + '</h5>'
+ '<p><?php _e("has been added to your cart"); ?></p>'
+ '<a href="javascript:;" onclick="mw.tools.modal.remove(\'#AddToCartModal\')" class="mw-ui-btn"><?php _e("Continue shopping"); ?></a>'
+ '<a href="<?php print checkout_url(); ?>" class="mw-ui-btn mw-ui-btn-invert"><?php _e("Checkout"); ?></a></section>';
return html;
}
</script>
<script>mw.require('<?php print TEMPLATE_URL; ?>js/functions.js', true);</script>
</head>
<?php
$template_settings = get_option('shopmagdata', 'mw-template-shopmag');
if ($template_settings != false) {
$template_settings = json_decode($template_settings, true);
} else {
$template_settings = array();
}
?>
<body class="<?php print(implode(' ', $template_settings)); ?> <?php print helper_body_classes(); ?>">
<div id="wrapper">
<div id="content-master">
<div id="header-holder">
<div id="header">
<div class="mw-wrapper">
<div class="mw-ui-row-nodrop" id="header-row">
<div class="mw-ui-col" id="logocolumn">
<div class="mw-ui-col-container">
<module type="logo" id="logo"/>
</div>
</div>
<div class="mw-ui-col" id="menucolumn">
<div class="mw-ui-col-container">
<div class="header-menu">
<span class="mw-icon-menu menu-button"></span>
<module type="menu" template="default" id="header-navigation"/>
</div>
</div>
</div>
<div class="mw-ui-col sm-header-tools" id="headertoolscolumn">
<div class="mw-ui-col-container">
<div class="header-shopcarts-holder">
<module type="shop/cart" template="small" class="header-shopcart no-settings"/>
<div class="mw-dopdown-cart">
<module type="shop/cart" template="dropdown" class="no-settings"/>
</div>
</div>
<?php if (is_logged() == false and get_option('enable_user_registration') == 'y') { ?>
<a href="<?php print login_url(); ?>" style="color:white;margin: 25px 20px 0 0;float: right;">Sign In</a>
<?php } ?>
<?php if (is_logged() == true) { ?>
<div class="mw-dropdown mw-dropdown-sm user-dropdown" data-readonly="true">
<span class="mw-dropdown-value mw-ui-btn mw-dropdown-button mw-dropdown-val mw-ui-btn-icon"><span class="sm-icon-user"></span></span>
<div class="mw-dropdown-content" style="display: none;">
<ul>
<li><a href="<?php print site_url(); ?>profile/#section=profile">Profile</a></li>
<li><a href="<?php print site_url(); ?>profile/#section=orders">My orders</a></li>
<li><a href="<?php print logout_url(); ?>">Logout</a></li>
</ul>
</div>
</div>
<?php } ?>
<module type="search" template="minimal" id="header-search">
</div>
</div>
</div>
</div>
</div><!-- /#header -->
</div><!-- /#header-holder -->