Skip to content

Instantly share code, notes, and snippets.

@milohuang
milohuang / f3-orbit-content-markup.html
Created August 1, 2012 15:31 — forked from smileyj68/f3-orbit-content-markup.html
Foundation 3 Orbit Content Markup
<div id="featuredContent">
<div>
<h4>This is a content slider.</h4>
<p>Each slide holds arbitrary content, like text or actions.</p>
</div>
<div>
<h4>We can include text and buttons, like this!</h4>
<p>We take no responsibility for what happens if you click this button.</p>
<p><a href="http://www.youtube.com/watch?v=dQw4w9WgXcQ" class="button" target="_blank">Rock My World!</a></p>
</div>
@milohuang
milohuang / f3-orbit-loading.css
Created August 1, 2012 15:34 — forked from smileyj68/f3-orbit-loading.css
Foundation 3 Orbit Loading
#featured { background: url(spinner.gif) center center #f4f4f4; height: 300px; }
#featured img { display: none; }
#featured.orbit { background: none; }
#featured.orbit img { display: block; }
<ul class="accordion">
<li>
<div class="title">
<h5>Accordion Panel 1</h5>
</div>
<div class="content">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim
@milohuang
milohuang / gist:5073573
Created March 2, 2013 22:34
Default Reverie enqueue for Sass.
/*
2. lib/enqueue-sass.php or enqueue-css.php
- enqueueing scripts & styles for Sass OR CSS
- please use either Sass OR CSS, having two enabled will ruin your weekend
*/
require_once('lib/enqueue-sass.php'); // do all the cleaning and enqueue if you Sass to customize Reverie
//require_once('lib/enqueue-css.php'); // to use CSS for customization, uncomment this line and comment the above Sass line
/*
@milohuang
milohuang / gist:5073581
Created March 2, 2013 22:36
Change settings to enable vanilla CSS for Reverie.
/*
2. lib/enqueue-sass.php or enqueue-css.php
- enqueueing scripts & styles for Sass OR CSS
- please use either Sass OR CSS, having two enabled will ruin your weekend
*/
//require_once('lib/enqueue-sass.php'); // do all the cleaning and enqueue if you Sass to customize Reverie
require_once('lib/enqueue-css.php'); // to use CSS for customization, uncomment this line and comment the above Sass line
/*
@milohuang
milohuang / gist:5073584
Created March 2, 2013 22:38
List of Foundation files.
css/foundation.min.css
css/normalize.css
style.css // the CSS in root directory will be loaded, customize it
@milohuang
milohuang / gist:5078976
Created March 4, 2013 00:01
Create a child theme of Reverie.
/*
Theme Name: Reverie Child Theme
Description: Child theme for the Reverie
Author: Your Name
Template: reverie
*/
@import url("../reverie/style.css");
/* Start child theme customization below */
<?php
/**
* Function: Average
* Calculates average of values taken from custom fields out of a WordPress loop. Built of Jason ;)
* Author: Baki Goxhaj
*/
function average( $post_no );
$no = 0;
$query = new WP_Query('posts_per_page=' . $post_no ); while( $query->have_posts() ) : $query->the_posts();
/*
* Customize Footnotify on your site by adding custom css.
*
* This file is NOT loaded by the script and must be
* implemented on the site in order to apply.
*
* More info: https://gist.github.com/1046538
*
*/
<?php
$temp = $wp_query;
$wp_query = null;
$wp_query = new WP_Query();
$wp_query->query('showposts=6&post_type=news'.'&paged='.$paged);
while ($wp_query->have_posts()) : $wp_query->the_post();
?>
<!-- LOOP: Usual Post Template Stuff Here-->