This repository has been archived by the owner on May 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
/
account_layout.liquid
164 lines (149 loc) · 8.54 KB
/
account_layout.liquid
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html>
<html class="no-touch no-js" ng-app="storefrontApp" ng-controller="mainController">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
{% if settings.favicon_enable %}
<link rel="shortcut icon" href="{{ 'images/favicon.png' | asset_url }}" type="image/png" />
{% endif %}
<title>
{{ page_title }}{% if current_tags %}{% assign current_tags_joined = current_tags | join: ', ' %} - {{ 'general.meta.tags' | t: current_tags_joined }}{% endif %}{% if current_page != 1 %} - {{ 'general.meta.page' | t: page: current_page }}{% endif %}{% unless page_title contains shop.name %} - {{ shop.name }}{% endunless %}
</title>
{% if page_description %}
<meta name="description" content="{{ page_description | escape }}" />
{% endif %}
{% include 'open-graph-tags' %}
<link rel="canonical" href="{{ canonical_url }}" />
{{ '//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css' | stylesheet_tag }}
<!--{{ '//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css' | stylesheet_tag }}-->
{{ 'bundle/account-styles.css' | static_asset_url | append_version | stylesheet_tag }}
{{ 'ajaxify.scss.css' | asset_url | stylesheet_tag }}
{{ 'default.scss.css' | asset_url | stylesheet_tag }}
{% include 'google-fonts' %}
<base href="{{ '/' | absolute_url }}" />
{{ 'bundle/scripts_dependencies.js' | static_asset_url | append_version | script_tag }}
{{ 'bundle/scripts.js' | static_asset_url | append_version | script_tag }}
{{ 'bundle/account-scripts.js' | static_asset_url | append_version | script_tag }}
{{ 'shop.js' | asset_url | script_tag }}
{{ content_for_header }}
<script>
var BASE_URL = '{{ "/" | full_url }}';
</script>
</head>
<body id="{{ page_title | handle }}" class="{% if customer %}customer-logged-in {% endif %}template-{{ template | replace: '.', ' ' | truncatewords: 1, '' | handle }}" ng-init="baseUrl='{{ '/' | absolute_url }}'">
{% include 'notification' %}
{% include 'recently-added-cart-item-dialog' %}
{% include 'recently-added-list-item-dialog' %}
{% include 'recently-create-new-list-dialog' %}
{% include 'list-settings-dialog' %}
{% include 'recently-added-actual-quote-request-item-dialog' %}
{% if settings.store_selector_enable %}
{% include 'top-header-selector' %}
{% endif %}
<header class="site-header" role="banner">
<div class="wrapper">
<div class="grid--full">
<div class="grid-item large--one-third">
{% if template == 'index' %}
<h1 class="header-logo" itemscope itemtype="http://schema.org/Organization">
{% else %}
<div class="h1 header-logo" itemscope itemtype="http://schema.org/Organization" />
{% endif %}
{% if settings.logo_use_image %}
<a href="{{ '/' | absolute_url }}" itemprop="url">
<img alt="{{ shop.name }}" src="{{ 'images/logo.png' | asset_url }}" itemprop="logo" />
</a>
{% else %}
<a href="{{ '/' | absolute_url }}" itemprop="url">{{ shop.name }}</a>
{% endif %}
{% if template == 'index' %}
</h1>
{% else %}
</div>
{% endif %}
</div>
<div class="grid-item large--two-third text-center large--text-right">
{% if settings.header_message != blank or shop.customer_accounts_enabled %}
<div class="site-header--text-links{% if settings.header_message == blank %} medium-down--hide{% endif %}">
{% if settings.header_message != blank %}
{{ settings.header_message }}
{% endif %}
{% comment %}
{% if shop.customer_accounts_enabled %}
<span class="site-header--meta-links medium-down--hide">
{% if customer %}
{% capture first_name %}
<a href="{{ '/account' | absolute_url }}">{{ customer.first_name }}</a>
{% endcapture %}
{{ 'layout.customer.logged_in_as_html' | t: first_name }} · {{ 'layout.customer.log_out' | t | customer_logout_link }}
{% else %}
{{ 'layout.customer.sign_in' | t | customer_login_link }}
{% if shop.customer_accounts_optional %}
<span class="site-header--spacer">{{ 'common.or' | t }}</span>
{{ 'layout.customer.create_account' | t | customer_register_link }}
{% endif %}
{% endif %}
</span>
{% endif %}
{% endcomment %}
<span class="site-header--meta-links medium-down--hide">
<span ng-if="customer && customer.isRegisteredUser && customer.operatorUserName" ng-cloak>
{{ 'layout.customer.logged_in_on_behalf_of_label' | t }} <a href="{{ 'account' | absolute_url }}" ng-bind="customer.firstName || customer.userName"></a> · {{ 'layout.customer.log_out' | t | customer_logout_link }}
</span>
<span ng-if="customer && customer.isRegisteredUser && !customer.operatorUserName" ng-cloak>
{{ 'layout.customer.logged_in_as_label' | t }} <a href="{{ 'account' | absolute_url }}" ng-bind="customer.firstName || customer.userName"></a> · {{ 'layout.customer.log_out' | t | customer_logout_link }}
</span>
<span ng-if="customer && !customer.isRegisteredUser" ng-cloak>
{{ 'layout.customer.sign_in' | t | customer_login_link }}
<span class="site-header--spacer">{{ 'common.or' | t }}</span>
{{ 'layout.customer.create_account' | t | customer_register_link }}
</span>
</span>
</div>
<br class="medium-down--hide" />
{% endif %}
{% include 'search-bar' %}
{% if settings.product_compare_enabled %}
<product-compare-list-bar></product-compare-list-bar>
{% endif %}
{% if shop.quotes_enabled %}
<a class="header-cart-btn cart-toggle" ng-controller="actualQuoteRequestBarController" ng-click="outerRedirect(baseUrl + 'quoterequest/#/' + actualQuoteRequest.number)">
<span class="fa fa-calculator"></span>
{{ 'layout.quotes.quote' | t }} <span id="quoteRequestCount" ng-class="{ 'visible-count': actualQuoteRequest.itemsCount > 0 }" ng-bind="actualQuoteRequest.itemsCount" ng-cloak></span>
</a>
{% endif %}
<a class="header-cart-btn cart-toggle" href="{{ 'cart' | absolute_url }}" ng-controller="cartBarController">
<span class="icon icon-cart"></span>
{{ 'layout.cart.cart' | t }} <span id="cartCount" ng-class="{ 'visible-count': cartItemsCount > 0 }" ng-bind="cartItemsCount" ng-cloak></span>
</a>
</div>
</div>
</div>
</header>
<nav class="nav-bar" role="navigation">
<div class="wrapper">
{% include 'search-bar' %}
{% include 'site-nav' %}
</div>
</nav>
<div id="mobileNavBar">
<div class="display-table-cell">
<a class="menu-toggle mobileNavBar-link">{{ 'layout.navigation.mobile_menu' | t }}</a>
</div>
<div class="display-table-cell">
<a class="cart-toggle mobileNavBar-link" href="{{ 'cart' | absolute_url }}" ng-click="toggleCartModal(isCartModalVisible)">
<span class="icon icon-cart"></span>
{{ 'layout.cart.cart' | t }} <span class="cartCount" ng-bind="cart.ItemsCount" ng-if="cart.ItemsCount > 0"></span>
</a>
</div>
</div>
<main class="wrapper main-content" role="main">
{{ content_for_layout }}
</main>
{% include 'footer' %}
<script>
window.quotesEnabled = {{ shop.quotes_enabled }};
</script>
</body>
</html>