-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
521 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Put your styles in this file. | ||
// Note: "@import" rules aren’t supported. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// Put your application javascript here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"current": "Default", | ||
"presets": { | ||
"Default": { } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[ | ||
{ | ||
"name": "theme_info", | ||
"theme_name": "Themekit template theme", | ||
"theme_version": "1.0.0", | ||
"theme_author": "Shopify", | ||
"theme_documentation_url": "https://github.com/Shopify/themekit", | ||
"theme_support_url": "https://github.com/Shopify/themekit/issues" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>{{ page_title }}</title> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<meta name="description" content="{{ page_description | escape }}"> | ||
<link rel="canonical" href="{{ canonical_url }}"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"> | ||
{{ content_for_header }} <!-- Header hook for plugins --> | ||
{{ 'application.css' | asset_url | stylesheet_tag }} | ||
{{ 'application.js' | asset_url | script_tag }} | ||
</head> | ||
<body> | ||
|
||
{% for link in linklists.main-menu.links %} | ||
{% assign child_list_handle = link.title | handleize %} | ||
{% if linklists[child_list_handle].links != blank %} | ||
<a href="{{ link.url }}">{{ link.title }}</a> | ||
[{% for childlink in linklists[child_list_handle].links %} | ||
<a href="{{ childlink.url }}">{{ childlink.title | escape }}</a> | ||
{% endfor %}] | ||
{% else %} | ||
<a href="{{ link.url }}">{{ link.title }}</a> | ||
{% endif %} | ||
{% endfor %} | ||
|
||
<a href="/cart">cart</a> | ||
|
||
{% if shop.customer_accounts_enabled %} | ||
{% if customer %} | ||
<a href="/account">account</a> | ||
{{ 'log out' | customer_logout_link }} | ||
{% else %} | ||
{{ 'log in ' | customer_login_link }} | ||
{{ 'register' | customer_register_link }} | ||
{% endif %} | ||
{% endif %} | ||
|
||
<main role="main"> | ||
{{ content_for_layout }} | ||
</main> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"general": { | ||
"404": { | ||
"title": "Not found", | ||
"subtext_html": "The page you were looking for does not exist" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h1>{{ 'general.404.title' | t }}</h1> | ||
<p>{{ 'general.404.subtext_html' | t }}</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{% assign number_of_comments = article.comments_count %} | ||
{% if comment and comment.created_at %} | ||
{% assign number_of_comments = article.comments_count %} | ||
{% endif %} | ||
|
||
<h1>{{ article.title }}</h1> | ||
{% capture author %}<strong>{{ article.author }}</strong>{% endcapture %} | ||
{% capture date %}<time datetime="{{ article.published_at | date: '%Y-%m-%d' }}">{{ article.published_at | date: format: 'month_day_year' }}</time>{% endcapture %} | ||
{{ article.author }} @ {{ article.created_at }} | ||
|
||
<div>{{ article.content }}</div> | ||
{% if blog.comments_enabled? %} | ||
<h2>{{ number_of_comments }} comments</h2> | ||
{% paginate article.comments by 5 %} | ||
{% for comment in article.comments %} | ||
<div> | ||
<div>{{ comment.content }}</div> | ||
{{ comment.author }} @ {{ comment.created_at }} | ||
</div> | ||
{% endfor %} | ||
{% if paginate.pages > 1 %} | ||
{{ paginate | default_pagination }} | ||
{% endif %} | ||
{% endpaginate %} | ||
|
||
<div> | ||
{% form 'new_comment', article %} | ||
{{ form.errors | default_errors }} | ||
<label for="CommentAuthor">name</label> | ||
<input type="text" name="comment[author]" id="CommentAuthor" placeholder="name" value="{{ form.author }}" autocapitalize="words"> | ||
|
||
<label for="CommentEmail">email</label> | ||
<input type="email" name="comment[email]" id="CommentEmail" placeholder="email" value="{{ form.email }}" autocorrect="off" autocapitalize="off"> | ||
|
||
<label for="CommentBody">message</label> | ||
<textarea name="comment[body]" id="CommentBody" placeholder="message">{{ form.body }}</textarea> | ||
|
||
<input type="submit" value="post"> | ||
{% endform %} | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% paginate blog.articles by 5 %} | ||
|
||
<h1>{{ blog.title }}</h1> | ||
{% for article in blog.articles %} | ||
<div> | ||
<h2><a href="{{ article.url }}">{{ article.title }}</a></h2> | ||
{{ article.author }} @ {{ article.created_at }} | ||
<div> | ||
{% if article.excerpt.size > 0 %} | ||
{{ article.excerpt }} | ||
{% else %} | ||
<p>{{ article.content | strip_html | truncatewords: 100 }}</p> | ||
{% endif %} | ||
</div> | ||
</div> | ||
{% endfor %} | ||
|
||
{% if paginate.pages > 1 %} | ||
{{ paginate | default_pagination }} | ||
{% endif %} | ||
|
||
{% endpaginate %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{% if cart.item_count > 0 %} | ||
<h1>cart</h1> | ||
<form action="/cart" method="post" novalidate> | ||
<table> | ||
<thead> | ||
<th colspan="2">Prod</th> | ||
<th>Price</th> | ||
<th>Qty</th> | ||
<th>total</th> | ||
</thead> | ||
<tbody> | ||
{% for item in cart.items %} | ||
<tr> | ||
<td> | ||
<a href="{{ item.url | within: collections.all }}"> | ||
<img src="{{ item | img_url: 'medium' }}" alt="{{ item.title | escape }}"> | ||
</a> | ||
</td> | ||
<td> | ||
<a href="{{ item.url }}">{{ item.product.title }}</a> | ||
{{ item.variant.title }} | ||
<a href="/cart/change?line={{ forloop.index }}&quantity=0">remove</a> | ||
</td> | ||
<td>{{ item.price | money }}</td> | ||
<td> | ||
<input type="number" name="updates[]" id="updates_{{ item.key }}" value="{{ item.quantity }}" min="0"> | ||
</td> | ||
<td> | ||
{% if item.original_line_price != item.line_price %}{{ item.original_line_price | money }}{% endif %} | ||
{{ item.line_price | money }} | ||
{% for discount in item.discounts %}{{ discount.title }}{% endfor %} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
<div> | ||
<p>sub total : {{ cart.total_price | money }}</p> | ||
<button type="submit" name="update">Update</button> | ||
<button type="submit" name="checkout">Checkout</button> | ||
</div> | ||
</form> | ||
{% else %} | ||
<h2>cart</h2> | ||
Cart is empty | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% paginate collection.products by 2 %} | ||
<h1>{{ collection.title }}</h1> | ||
{% for product in collection.products %} | ||
<div> | ||
<a href="{{ product.url | within: collection }}">{{ product.title }}</a> | ||
{{ product.price | money }} | ||
{% unless product.available %}<br><strong>sold out</strong>{% endunless %} | ||
<a href="{{ product.url | within: collection }}"> | ||
<img src="{{ product.featured_image.src | img_url: 'large' }}" alt="{{ product.featured_image.alt | escape }}"> | ||
</a> | ||
</div> | ||
{% else %} | ||
<p>no matches</p> | ||
{% endfor %} | ||
{% if paginate.pages > 1 %} | ||
{{ paginate | default_pagination }} | ||
{% endif %} | ||
{% endpaginate %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% paginate collection.products by 2 %} | ||
<h1>{{ collection.title }}</h1> | ||
{% for product in collection.products %} | ||
<div> | ||
<a href="{{ product.url | within: collection }}">{{ product.title }}</a> | ||
{{ product.price | money }} | ||
{% unless product.available %}<br><strong>sold out</strong>{% endunless %} | ||
<a href="{{ product.url | within: collection }}"> | ||
<img src="{{ product.featured_image.src | img_url: 'large' }}" alt="{{ product.featured_image.alt | escape }}"> | ||
</a> | ||
</div> | ||
{% else %} | ||
<p>no matches</p> | ||
{% endfor %} | ||
{% if paginate.pages > 1 %}{{ paginate | default_pagination }}{% endif %} | ||
{% endpaginate %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!-- /templates/customers/account.liquid --> | ||
|
||
{% if customer.default_address %} | ||
<h2>Address</h2> | ||
<p>{{ customer.default_address.address1 }}</p> | ||
{% if customer.default_address.address2 != "" %} | ||
<p>{{ customer.default_address.address2 }}</p> | ||
{% endif %} | ||
<p>{{ customer.default_address.city}}, {% if address.province_code %}{{ customer.default_address.province_code }}, {% endif %}{{ customer.default_address.country }}</p> | ||
<p>{{ customer.default_address.zip }}</p> | ||
<p>{{ customer.default_address.phone }}</p> | ||
{% endif %} | ||
|
||
<div id="customer_orders"> | ||
<h2>Orders</h2> | ||
{% paginate customer.orders by 10 %} | ||
{% if customer.orders.size != 0 %} | ||
{% for order in customer.orders %} | ||
<!-- order details here --> | ||
{% endfor %} | ||
{% else %} | ||
<p>You haven't placed any orders yet.</p> | ||
{% endif %} | ||
{{ paginate | default_pagination }} | ||
{% endpaginate %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!-- /templates/customers/activate_account.liquid --> | ||
{% form 'activate_customer_password' %} | ||
{{ form.errors | default_errors }} | ||
<div class="password"> | ||
<label for="password">Password</label> | ||
<input type="password" name="customer[password]" /> | ||
</div> | ||
<div class="password_confirm"> | ||
<label for="password_confirmation">Password Confirmation</label> | ||
<input type="password" name="customer[password_confirmation]" /> | ||
</div> | ||
<div class="action_bottom"> | ||
<input type="submit" value="Activate Account" /> | ||
<span>or</span> | ||
<input type="submit" name="decline" value="Decline Invitation" /> | ||
</div> | ||
{% endform %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!-- /templates/customers/addresses.liquid --> | ||
|
||
<h2>New Address</h2> | ||
{% form 'customer_address', customer.new_address %} | ||
|
||
{{ form.errors | default_errors }} | ||
|
||
<label for="first_name">First Name</label> | ||
<input type="text" value="" name="address[first_name]" size="30" /> | ||
|
||
<label for="last_name">Last Name</label> | ||
<input type="text" value="" name="address[last_name]" size="30" /> | ||
|
||
<label for="company">Company</label> | ||
<input type="text" value="" name="address[company]" /> | ||
|
||
<label for="address1">Address 1</label> | ||
<input type="text" value="" name="address[address1]" /> | ||
|
||
<label for="address2">Address 2</label> | ||
<input type="text" value="" name="address[address2]" /> | ||
|
||
<label for="city">City</label> | ||
<input type="text" value="" name="address[city]" /> | ||
|
||
<!-- See docs for @shopify/theme-addresses to support Country and Province --> | ||
<label for="country">Country</label> | ||
<select name="address[country]" /></select> | ||
|
||
<label for="province">Province</label> | ||
<select name="address[province]" /></select> | ||
|
||
<label for="zip">Zip/Post Code</label> | ||
<input type="text" value="" name="address[zip]" /> | ||
|
||
<label for="phone">Phone Number</label> | ||
<input type="tel" value="" name="address[phone]" /> | ||
|
||
{% endform %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!-- /templates/customers/login.liquid --> | ||
|
||
<h2>Login</h2> | ||
{% form 'customer_login' %} | ||
|
||
{{ form.errors | default_errors }} | ||
|
||
<label for="customer_email">Email Address</label> | ||
<input type="email" name="customer[email]" /> | ||
|
||
<label for="customer_password">Password</label> | ||
<input type="password" name="customer[password]" /> | ||
|
||
<input type="submit" value="Sign In" /> | ||
|
||
{% endform %} | ||
|
||
<h2>Forgot Password</h2> | ||
{% form 'recover_customer_password' %} | ||
|
||
{{ form.errors | default_errors }} | ||
|
||
<label for="customer_email">Email Address</label> | ||
<input type="email" name="email" /> | ||
|
||
<input type="submit" value="Submit" /> | ||
|
||
{% endform %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!-- /templates/customers/order.liquid --> | ||
|
||
<h2>Billing Address</h2> | ||
<p><span>Payment Status:</span> <span class="status_{{ order.financial_status }}">{{ order.financial_status }}</span></p> | ||
<p>{{ order.billing_address.name }}</p> | ||
<p>{{ order.billing_address.company }}</p> | ||
<p>{{ order.billing_address.street }}</p> | ||
<p>{{ order.billing_address.city }}, {{ order.billing_address.province }}</p> | ||
<p>{{ order.billing_address.country }} {{ order.billing_address.zip }}</p> | ||
<p>{{ order.billing_address.phone }}</p> | ||
|
||
<h2>Shipping Address</h2> | ||
<p><span>Fulfillment Status:</span><span class="status_{{ order.fulfillment_status }}">{{ order.fulfillment_status }}</span></p> | ||
<p>{{ order.shipping_address.name }}</p> | ||
<p>{{ order.shipping_address.company }}</p> | ||
<p>{{ order.shipping_address.street }}</p> | ||
<p>{{ order.shipping_address.city }}, {{ order.shipping_address.province }}</p> | ||
<p>{{ order.shipping_address.country }} {{ order.shipping_address.zip }}</p> | ||
<p>{{ order.shipping_address.phone }}</p> | ||
|
||
<h2>Order Items</h2> | ||
<table> | ||
{% for line_item in order.line_items %} | ||
<tr> | ||
<td>{{ line_item.title | link_to: line_item.product.url }}</td> | ||
<td>{{ line_item.sku }}</td> | ||
<td>{{ line_item.original_price | money }}</td> | ||
<td>{{ line_item.quantity }}</td> | ||
<td>{{ line_item.line_price | money }}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- /templates/customers/register.liquid --> | ||
|
||
{% form 'create_customer' %} | ||
|
||
{{ form.errors | default_errors }} | ||
|
||
<label for="first_name">First Name</label> | ||
<input type="text" value="" name="customer[first_name]" size="30" /> | ||
|
||
<label for="last_name">Last Name</label> | ||
<input type="text" value="" name="customer[last_name]" size="30" /> | ||
|
||
<label for="email">Email Address</label> | ||
<input type="email" value="" name="customer[email]" size="30" /> | ||
|
||
<label for="password">Password</label> | ||
<input type="password" value="" name="customer[password]" size="30" /> | ||
|
||
<input type="submit" value="Create" /> | ||
|
||
{% endform %} |
Oops, something went wrong.