Skip to content

Instantly share code, notes, and snippets.

# Apache configuration file
# httpd.apache.org/docs/2.2/mod/quickreference.html
# Note .htaccess files are an overhead, this logic should be in your Apache
# config if possible: httpd.apache.org/docs/2.2/howto/htaccess.html
# Techniques in here adapted from all over, including:
# Kroc Camen: camendesign.com/.htaccess
# perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/
# Sample .htaccess file of CMS MODx: modxcms.com
{exp:low_events:entries channel="broadcasts" unit="passed" show_active="no" limit="6" paginate="bottom" orderby="low_events:end" sort="desc"}
{if no_results}<h3>There are no broadcasts in the archives yet. Please check back later.</h3>{/if}
<figure class="{switch='tb2 db2|tb3 db3|tb4 db4'}">
<a href="{title_permalink='broadcasts/view'}">
{broadcast_image}
<img src="{image:url:medium}" alt="{image:title}" /></a>
{/broadcast_image}
<figcaption><a href="{title_permalink='broadcasts/view'}">{title}</a><br><a>{broadcast_date:start_date format="%j %F %Y"}</a></figcaption>
</figure>
.dc-all {
width: 100%;
float: left;
clear: left;
}
.dc1 {
width: 31.9865%;
float: left;
margin-right: -100%;
@niallthompson
niallthompson / gist:9534709
Created March 13, 2014 19:04
Project Fit Mixture
{
"convertHtmlOutput": null,
"customRubyPath": null,
"debug": false,
"domain": null,
"followLeader": false,
"lintScripts": false,
"modelSource": null,
"optimiseImages": true,
"optimiseSVG": true,
enquire.register("screen and (min-width: 768px)", {
match : function() {
$('.flexslider').flexslider({
animation: "fade",
slideshow: false,
controlNav: false,
controlsContainer: ".flexslider-container"
});
},