Skip to content

Instantly share code, notes, and snippets.

@tonkapark
Created December 4, 2011 02:16
Show Gist options
  • Save tonkapark/1428896 to your computer and use it in GitHub Desktop.
Save tonkapark/1428896 to your computer and use it in GitHub Desktop.
html page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{{ page.name }} &mdash; {{ store.name }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Language" content="en-us" />
<meta name="description" content="{{ page.meta_description }}" />
<meta name="keywords" content="{{ page.meta_keywords }}" />
<meta name="author" content="tonkapark.com" />
<link href="/products.rss" rel="alternate" title="Product RSS Feed" type="application/rss+xml" />
<link href="{{ theme | theme_css_url }}" media="screen" rel="Stylesheet" type="text/css" />
<script src="{{ 'prototype' | theme_js_url }}" type="text/javascript"></script>
<script src="{{ 'store' | theme_js_url }}" type="text/javascript"></script>
{{ head_content }}
</head>
<body id="{{ page.permalink }}-page" class="{{ page.permalink }} {{ page.category }}">
<div id="wrap">
<div id="topcart">
{{ cart.item_count | pluralize: 'item', 'items' }} | {{ cart.total | money_with_sign }}
| <a href="/cart" title="View Cart"><span>View Cart</span></a>
| <a href="/checkout" title="Checkout"><span>Checkout</span></a>
</div>
<div id="header"{% if theme.image != blank %} class="image"{% endif %}>
<h1><a href="/"><span>{{ store.name }}</span>{% if theme.image != blank %}<img src="{{ theme.image.url }}" />{% endif %}</a></h1>
</div>
<noscript>
<div class="error" id="error">
<ul>
<li>JavaScript must be enabled to use this store!</li>
</ul>
</div>
</noscript>
{% if errors != blank %}
<div id="error" class="error">
<ul>
{% for error in errors %}<li>{{ error }}</li>{% endfor %}
</ul>
</div>
{% endif %}
<div id="main">
<div id="main-content">
{% if page.category == 'custom' %}
{{ page_content | paragraphs }}
{% else %}
{{ page_content }}
{% endif %}
</div>
</div>
<div id="navigation">
<div id="pages" class="pod firstpod">
{% if theme.show_search %}
<div id="search">
<form id="search-form" name="search" action="/products" method="get">
<input id="search-input" name="search" type="text" value="Keyword Search" onfocus="javascript:this.value==this.defaultValue ? this.value = '' : ''" onblur="javascript:this.value == '' ? this.value = this.defaultValue : '' " /><button id="search-submit" name="search-submit" type="submit" title="GO"><span>GO</span></button>
</form>
</div>
{% endif %}
<h3 class="page-title"><span>Pages</span></h3>
<ul>
{% for page in pages.all %}<li>{{ page | link_to }}</li>{% endfor %}<li class="last">{{ pages.contact | link_to }}</li>
</ul>
</div>
<div id="categories" class="pod">
{% if artists.active != blank %}
<div id="artists">
<h3 class="artists-title"><span>Artists</span></h3>
<ul>
{% for artist in artists.active %}
<li><a href="{{ artist.url }}">{{ artist.name }}</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
<h3 class="categories-title"><span>Categories</span></h3>
<ul class="categories-list">
<li><a href="/products" title="All"><span>All</span></a></li>{% for category in categories.active %}<li>{{ category | link_to }}</li>{% endfor %}
</ul>
</div>
{% if theme.show_newest %}
<div id="newest" class="pod">
<h3 class="newest-title"><span>Newest Products</span></h3>
<ul class="newest-list">
{% for product in products.newest limit:5 %}<li>{{ product | link_to }}</li>{% endfor %}
</ul>
</div>
{% endif %}
{% if theme.show_top_selling %}
<div id="top-selling" class="pod">
<h3 class="top-selling-title"><span>Top Selling</span></h3>
<ul class="top-selling-list">
{% for product in products.top_selling limit:5 %}<li>{{ product | link_to }}</li>{% endfor %}
</ul>
</div>
{% endif %}
</div>
<div id="footer">
<div class="base">
<p>Copyright &copy; 2011 {{ store.name }}. {% if theme.show_products_feed %}<a href="/products.rss" title="Product RSS Feed"><span>Product RSS Feed</span></a>{% endif %} [<a href="http://tonkapark.com" title="Big Cartel Themes">Made By Tonka Park</a>]
</p>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment