Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sitemap #28

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ desktop.ini
Thumbs.db
.sass-cache
*.cfg
node_modules
node_modules
package.json
.sass-cache/.DS_Store
Binary file added .sass-cache/.DS_Store
Binary file not shown.
7 changes: 7 additions & 0 deletions content/review-response-8.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: 'Review Response 8'
content_type: html
---
<p><span style="color: #ff6600;"><strong>Store Response:&nbsp;</strong></span></p>
<p style="padding-left: 30px;">Hi there,&nbsp;</p>
<p style="padding-left: 30px;">Sorry to hear you had a bad experience with the Ionic Band.&nbsp;We're sending you a replacement&nbsp;:)</p>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@
"responsive",
"electronics"
]
}
}
Binary file added pages/.DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions pages/blog-categories/code-breadcrumbs.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<ul class="breadcrumb list-inline">
<li><a href="/">Home</a></li>
<li><a href="/archives/blog">Blog</a></li>
<li>{{ category }}</li>
</ul>
1 change: 1 addition & 0 deletions pages/blog-categories/code-setup.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% global active_page = 'blog' %}
53 changes: 53 additions & 0 deletions pages/blog-categories/page-blog-categories.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
action: 'cmscontent:archive'
description: 'Blog Categories'
template: default
protocol: all
published: true
name: 'Blog Categories'
url: '/archives/:type/:category'
---
<section class="section-products-grid" id="products-grid-sidebar">
<div class="container">
<div class="row">
<div class="col-xs-12 col-md-3">
<div class="sidebar">
<div class="accordion-widget category-accordions">
<h2>Categories</h2>
{{ partial('blog-categories') }}
</div>
</div>
</div>
<div class="col-xs-12 col-md-9">
<div class="row">
<div class="col-xs-12 col-md-6">
<h1>{{ category }}</h1>
</div>
</div>

{% if archives | length > 0 %}
{% paginate archives by 5 %}
{% for post in pagination.items %}
<div>
<h2><a href="/blog/{{ post.guid }}">{{ post.title }}</a></h2>
<div>{{ post.excerpt | unescape }}</div>
<div><a href="/blog/{{ post.guid }}">Read More</a></div>
</div>
<hr/>
{% endfor %}
<div class="paging-holder">
{% navigation %}
</div>
{% endpaginate %}
{% else %}
<article>
<header>
<h4>Not found</h4>
<p>No {{ type }} posts found in category: {{ category }} {{ categoryID }}</p>
</header>
</article>
{% endif %}
</div>
</div>
</div>
</section>
5 changes: 5 additions & 0 deletions pages/blog-post/code-breadcrumbs.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<ul class="breadcrumb list-inline">
<li><a href="/">Home</a></li>
<li><a href="/archives/blog">Blog</a></li>
<li>{{ slug }}</li>
</ul>
82 changes: 55 additions & 27 deletions pages/blog-post/page-blog-post.htm
Original file line number Diff line number Diff line change
@@ -1,27 +1,55 @@
---
action: 'cmscontent:blog'
template: default
protocol: all
published: true
name: 'Blog Post'
url: /blog/:slug
---
<div class="row blog-posts">
<!-- BLOG -->
{% if featured_image %}
<img src="{{ featured_image.thumbnail(1000, 'auto')|default('http://placehold.it/1000x365') }}" width="1000" alt="{{ featured_image.alt }}"/>
{% endif %}
<em class="twelve columns">In {{ post.type }} | {{ post.published_on | date("F j, Y") }}</em>
{{ post.body | unescape }}
<!-- BIO -->
<div class="bio-container">
{% if profile_image %}
<img class="img-circle" src="{{ profile_image.thumbnail(252, 'auto')|default('http://placehold.it/100x100') }}" style="height: 100px; width: 100px;" alt="{{ profile_image.alt }}"/>
{% endif %}
<strong>{{ post.author_name }}</strong>
{{ post.user.getSocialLinks()|unescape }}
<div class="author-bio">
{{ post.user.user_bio|unescape }}
</div>
</div>
</div>
---
action: 'cmscontent:blog'
template: default
protocol: all
published: true
name: 'Blog Post'
url: '/blog/:slug'
---
{% if featured_image %}
<section class="section-home-banner">
<div class="container">
<img class="lazy" src="{{ featured_image.thumbnail(1000, 'auto')|default('http://placehold.it/1000x365') }}" width="1000" alt="{{ featured_image.alt }}"/>
</div>
</section>
{% endif %}

<section class="section-blog-post-page">
<div class="container">
<div class="row">
<div class="single-blog-post-holder">
<div class="col-xs-12 col-sm-12 blog-holder">
<!-- BLOG -->
<div class="row">
<div class="col-xs-12 col-sm-6">
<h1>{{ post.title }}</h1>
</div>
<div class="col-xs-12 published-date">
<p><em>Published {{ post.published_on | date("F j, Y") }} In {{ post.type }}</em></p>
</div>
</div>
<div id="blog-content">
{{ post.body | unescape }}
</div>
<!-- BIO -->
<div class="bio-container">
{% if profile_image %}
<img class="img-circle" src="{{ profile_image.thumbnail(252, 'auto')|default('http://placehold.it/100x100') }}" style="height: 100px; width: 100px;" alt="{{ profile_image.alt }}"/>
{% endif %}
<strong>{{ post.author_name }}</strong>
<ul class="social-links">
{% for link in post.user.getSocialProfiles() %}
<li class="{{ link.name }}">
<a href="{{ link.link }}"><i class="icon icon-{{ link.name }}"></i><span>{{ link.name }}</span></a>
</li>
{% endfor %}
</ul>
<div class="author-bio">
{{ post.user.user_bio|unescape }}
</div>
</div>
</div>
</div>
</div>
</div>
</section>
56 changes: 36 additions & 20 deletions pages/blog/page-blog.htm
Original file line number Diff line number Diff line change
@@ -1,30 +1,46 @@
---
action: 'cmscontent:archive'
description: 'blog template'
template: default
protocol: all
published: true
name: Blog
url: /blog
url: '/archives/:type'
---
<div class="row">
<div class="content twelve columns">
{% set publishedPosts = 0 %}
{% for post in archives %}
{% if post.status == "published" %}
<section class="section-products-grid" id="products-grid-sidebar">
<div class="container">
<div class="row">
{% if archives | length > 0 or publishedPosts > 0 %}
{% paginate archives by 5 %}
{% set publishedPosts = 0 %}
<div class="col-xs-12 col-md-3">
<div class="sidebar">
<div class="accordion-widget category-accordions">
<h2>Categories</h2>
{{ partial('blog-categories') }}
</div>
</div>
</div>
<div class="col-xs-12 col-md-9">
{% for post in archives %}
{% if post.status == "published" %}
{% set publishedPosts = publishedPosts + 1 %}
{% endif %}
<div class="blog-posts">
<h2><a href="blog/{{ post.guid }}">{{ post.title }}</a></h2>
{% endif %}
<div>
<h2><a href="/blog/{{ post.guid }}">{{ post.title }}</a></h2>
<div>{{ post.excerpt | unescape }}</div>
<div><a href="blog/{{ post.guid }}">Read More</a></div>
</div>
<hr/>
{% endfor %}

{% if archives | length == 0 or publishedPosts == 0 %}
<div class="blog-posts">
<h2>No posts found</h2>
</div>
{% endif %}
<div><a href="/blog/{{ post.guid }}">Read More</a></div>
</div>
<hr/>
{% endfor %}
<div class="paging-holder">
{% navigation %}
</div>
</div>
{% endpaginate %}
{% else %}
<h2>No posts found</h2>
{% endif %}
</div>
</div>
</div>
</section>
3 changes: 1 addition & 2 deletions pages/contact/page-contact.htm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
name: Contact
url: /contact
---

<div class="container-fluid about-head">
<div class="container">
<div class="row">
Expand Down Expand Up @@ -34,6 +33,7 @@ <h3>Need to send a message?</h3>
<input type="hidden" name="redirect" value="{{ site_url('/') }}"/>
<input type="submit" class="btn-default btn" value="Submit"/>
<input type="text" name="hp" value="" style="display: none"/>

</div>
{{ close_form() }}
</div>
Expand All @@ -45,4 +45,3 @@ <h3>Contact Us here</h3>
</div>
</div>
</div>

32 changes: 16 additions & 16 deletions pages/product/code-breadcrumbs.htm
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{% set category = product ? product.categories[0] : null %}

<div class="container-fluid product-breadcrumb text-center">
<h4>
<a href="/">Home</a>
<span>/</span>
{% if category %}
{% for parent in category.listAllParents() %}
<a href="/category/{{ parent.fullUrlName }}">{{ parent.name }}</a>
<span>/</span>
{% endfor %}
<a href="/category/{{ category.fullUrlName }}">{{ category.name }}</a>
<span>/</span>
{% endif %}
<a href="/product/{{ product.url_name }}">{{ product.name }}</a>
</h4>
{% set category = product ? product.categories[0] : null %}
<div class="container-fluid product-breadcrumb text-center">
<h4>
<a href="/">Home</a>
<span>/</span>
{% if category %}
{% for parent in category.listAllParents() %}
<a href="/category/{{ parent.fullUrlName }}">{{ parent.name }}</a>
<span>/</span>
{% endfor %}
<a href="/category/{{ category.fullUrlName }}">{{ category.name }}</a>
<span>/</span>
{% endif %}
<a href="/product/{{ product.url_name }}">{{ product.name }}</a>
</h4>
</div>
6 changes: 1 addition & 5 deletions pages/product/page-product.htm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
name: Product
url: '/product/:urlName'
---

{{ open_form({'class': 'custom', 'onsubmit': 'return false'}) }}
{% if product %}
<div class="container-fluid" id="product-page">
Expand All @@ -16,9 +15,6 @@
<h2>We are sorry, the requested product was not found.</h2>
{% endif %}
{{ close_form() }}

{{ partial('shop-product-review-form') }}
{{ partial('shop-product-review') }}




56 changes: 56 additions & 0 deletions pages/review/review.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
template: default
protocol: all
published: true
name: review
url: /review
---
{{ open_form({'data-ajax-handler': 'system:onSendMessage', 'data-test': 'true'}) }}
<h3>Review this product</h3>
<div class="row">
<div class="twelve columns">
<input type="text" id="contact_name" name="fields[name]" value="" placeholder="Your name"/>
<span class="error"/>
</div>
</div>
<div class="row">
<div>
<input type="text" id="contact_email" name="fields[email]" value="" placeholder="Email address"/>
<span class="error"/>
</div>
</div>
<div class="row">
<div>
<input type="text" id="subject" name="fields[subject]" value="" placeholder="Subject"/>
<span class="error"/>
</div>
</div>
<div class="row">
<div>
<textarea id="contact_message" name="fields[message]" value="" rows="10" placeholder="Your review"></textarea>
<span class="error"/>
</div>
</div>
<div class="row">
<div class="rating">
<span>☆</span><span>☆</span><span>☆</span><span>☆</span><span>☆</span>
</div>
<div>
<select id="item_rating" name="fields[item_rating]">
<option value="" diabled>-</option>
<option value="1">&starf;&star;&star;&star;&star;</option>
<option value="2">&starf;&starf;&star;&star;&star;</option>
<option value="3">&starf;&starf;&starf;&star;&star;</option>
<option value="4">&starf;&starf;&starf;&starf;&star;</option>
<option value="5">&starf;&starf;&starf;&starf;&starf;</option>
</select>
<span class="error"/>
</div>
</div>
<input type="submit" class="button" value="Submit"/>
<input type="text" name="hp" value="" style="display: none"/>
<input type="hidden" name="fields[shop_customer_id]" value="{{customer.id}}"/>
<input type="hidden" name="fields[shop_product_id]" value="{{product.id}}"/>
<input type="hidden" name="template" value="system:product-review"/>
<input type="hidden" name="fields[message_type]" value="review"/>
{{ close_form() }}
13 changes: 13 additions & 0 deletions pages/robots/page-robots.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
template: robots
protocol: all
published: true
name: Robots
url: /robots
---
# robots.txt for http://www.example.com/
User-agent: *
Disallow: /cyberworld/map/ # This is an infinite virtual URL space
Disallow: /tmp/ # these will soon disappear
Disallow: /foo.html
Sitemap: https://storename.lemonstand.com/sitemap
Loading