Skip to content

Instantly share code, notes, and snippets.

<div id="pagination">
{% if pages.page_count > 1 %}
{% if pages.current != pages.first %}
<a href="{{ category | category_paginated_url: pages.first }}">First</a>
{% endif %}
{% if pages.current.previous %}
<a href="{{ category | category_paginated_url: pages.current.previous }}">Prev</a>
{% endif %}
@rdallaire
rdallaire / _dynamic_displays.liquid
Created August 28, 2013 17:19
Changeable Liquid Heading
{% tagged_with 'yugiohheading1' do products limit:1 %}{% for product in products %}
<h4 class="widgettitle">{{ product.name }}</h4>
{% endfor %}{% endtagged_with %}
updateCart: function() {
console.log('update cart');
//
var items = $('ul.cart-line-items').find('li');
var itemsL = items.length;
var i = 0;
@rdallaire
rdallaire / gist:6556249
Created September 13, 2013 21:21
cssheading
zencoding custom
type 'cssheading' and make it show
/* ==============================================================================
/* ====== CSS MAIN HEADING
/* ============================================================================= */
@rdallaire
rdallaire / custom.css
Created September 17, 2013 20:06
alert
/* ==============================================================================
/* ====== ALERT Overlay
/* ============================================================================= */
.alert-overlay {
background: rgba(0,0,0,0.8);
height: 200px;
left: 50%;
margin-left: -100px;
margin-top: -100px;
{% find_products category_name:'Magic Products' order:sell_price do products limit:8 %}
<div class="product-container large-12 columns">
<ul class="to-swipe medium-grid4x large-grid4x">
{% include "plugins/gridlist/markup" with product %}
</ul>
</div>
{% endfind_products %}
{% find_products category_name:'Legacy of Darkness' order:sell_price do products limit:8 reverse %}
{% for product in products %}
<li class="product">
<a href="{{ product.buylist_aware_url }}">
<span class="image"><img src="{{ product.main_photo | photo_url: "medium" }}" /></span>
<span class="name">{{ product.name }}</span>
<span class="price">{{ product.sell_price }}</span>
</a>
</li>
/* ==============================================================================
/* ====== PRODUCT PRICE & QTY BOX
/* ============================================================================= */
.product-price-qty {
background: #f7f7f7;
border: 1px solid #d0d0d0;
display: inline-block;
height: 36px;
line-height: 36px;
@rdallaire
rdallaire / 0_reuse_code.js
Created September 27, 2013 21:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@rdallaire
rdallaire / functions.php
Created September 30, 2013 05:02
testing
}
// display widget
function widget($args, $instance) {