Skip to content

Instantly share code, notes, and snippets.

View 3Easy's full-sized avatar

@3Easy 3Easy

View GitHub Profile
@3Easy
3Easy / ee_nav_nested_list.html
Created November 21, 2010 03:03
EE Nav Nested List Date Heading & Date Footer
<ul class="nav">
{exp:weblog:entries channel="project" status="open|index"}
{date_heading display="yearly"}
<li>
<h2>{entry_date format="%Y"}</h2>
<ul>
{/date_heading}
{date_heading display="monthly"}
@3Easy
3Easy / ee_config.php
Last active August 4, 2017 08:40
Sample ExpressionEngine 2.x Config Files
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| ExpressionEngine Config Items
|--------------------------------------------------------------------------
|
| The following items are for use with ExpressionEngine. The rest of
| the config items are for use with CodeIgniter, some of which are not
| observed by ExpressionEngine, e.g. 'permitted_uri_chars'
@3Easy
3Easy / saleprice.html
Created December 22, 2011 12:49
BrilliantRetail 1.0.4.0 Sale Price
<!-- ExpressionEngine BrilliantRetail
<div class="price_wrapper sale">
{price_html}
</div>
<div class="price_wrapper">
{price_html}
</div>
-->
<div class="price_wrapper sale">
@3Easy
3Easy / SPOT Tracker
Created June 22, 2012 05:14
Extract the Lat and Long Coordinates using Javascript
<article>
<p>@bobbridgestock Bobs SPOT Tracker Latitude:-34.8474 Longitude:150.59785 GPS location Date/Time:06/21/2012 12:36:40 E... http://t.co/RJPPcoY4</p>
<article>
@3Easy
3Easy / Grid
Last active December 11, 2015 23:59
Foundation Grid Rows & Columns
<div class="row">
<div class="six columns">
<p>Any kind of content in a column</p>
</div>
<div class="six columns">
<p>So long as columns add up to twelve</p>
</div>
</div>
@3Easy
3Easy / Panel
Last active December 12, 2015 00:08
Foundation Panel
<div class="panel">
<p>A good looking panel</p>
</div>
<div class="panel radius">
<p>Outstanding panel, with <em>radius</em></p>
</div>
@3Easy
3Easy / Complex Grid
Last active December 12, 2015 00:09
Complex Grid
<div class="row">
<div class="twelve columns">
<div class="row">
<div class="three columns">
<p class="panel">Three</p>
</div>
<div class="four columns">
<p class="panel">Four</p>
</div>
<div class="five columns">
@3Easy
3Easy / Short Grid
Last active December 12, 2015 00:59
Short Grid
<div class="row">
<div class="eight columns end">
<p>Add a class of 'end' to the last column if there are less than twelve to avoid an element floating right.</p>
</div>
</div>
@3Easy
3Easy / ee_video.php
Last active December 16, 2015 10:19
ExpressionEngine Video Embed
{exp:channel:entries channel="video" limit="1"}
<h2>{title}</h2>
{video_embed}
{if video_embed_type == "vimeo"}
<iframe src="http://player.vimeo.com/video/{video_embed_key}?badge=0" width="600" height="400" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
{/if}
{if video_embed_type == "youtube"}
<iframe width="600" height="400" src="http://www.youtube.com/embed/{video_embed_key}" frameborder="0" allowfullscreen></iframe>
{/if}
{/video_embed}
@3Easy
3Easy / gist:4e2ca319bbdfd99d4400
Last active August 29, 2015 14:04
Store Orders CSV Export
{exp:http_header content_type="text/csv" content_disposition="attachment" filename="squiddies-orders-{current_time format="%Y%m%d-%H%i"}.csv"}Order ID, Email, Shipping Name, Shipping Address 1, Shipping Address 2, Shipping City, Shipping State, Shipping Postcode, Shipping Country, Order Items
{exp:store:orders order_status="new"}
{order_id}, {order_email}, {shipping_name}, {shipping_address1}, {shipping_address2}, {shipping_city}, {shipping_state_name}, {shipping_postcode}, {shipping_country_name}, {items}{sku} x {item_qty} {/items}{/exp:store:orders}