Skip to content

Instantly share code, notes, and snippets.

View motorcitymobi's full-sized avatar

Cameron Cecchini motorcitymobi

View GitHub Profile
@motorcitymobi
motorcitymobi / page-clearing.php
Created July 8, 2013 13:20
Combining Zurb's Clearing with the Genesis Framework.
<?php
/*
Template Name: Clearing (Foundation)
*/
add_action( 'genesis_after', 'mobile_do_clearing_demo' );
function mobile_do_clearing_demo() { ?>
<!-- Check for Zepto support, load jQuery if necessary -->
@motorcitymobi
motorcitymobi / page-magellan.php
Created July 8, 2013 13:19
Combining Zurb's Magellan with the Genesis Framework.
<?php
/*
Template Name: Magellan (Foundation)
*/
add_action( 'genesis_after', 'mobile_do_magellan_demo' );
function mobile_do_magellan_demo() { ?>
<!-- Check for Zepto support, load jQuery if necessary -->
@motorcitymobi
motorcitymobi / page-reveal.php
Created July 8, 2013 13:18
Combining Zurb's Reveal with the Genesis Framework.
<?php
/*
Template Name: Modal (Foundation)
*/
add_action( 'genesis_after', 'mobile_do_reveal_demo' );
function mobile_do_reveal_demo() { ?>
<!-- Check for Zepto support, load jQuery if necessary -->
@motorcitymobi
motorcitymobi / page-orbit.php
Last active December 19, 2015 11:38
Combing Zurb's Orbit with the Genesis Framework.
<?php
/*
Template Name: Orbit (Foundation)
*/
add_action( 'genesis_after', 'mobile_do_orbit_demo' );
function mobile_do_orbit_demo() { ?>
<!-- Check for Zepto support, load jQuery if necessary -->
@motorcitymobi
motorcitymobi / page-section.php
Created July 8, 2013 13:15
Combining Zurb's Section with the Genesis Framework.
<?php
/*
Template Name: Section (Foundation)
*/
add_action( 'genesis_after', 'mobile_do_section_demo' );
function mobile_do_section_demo() { ?>
<!-- Check for Zepto support, load jQuery if necessary -->
@motorcitymobi
motorcitymobi / page-tooltips.php
Created July 8, 2013 13:09
Combining Zurb's Tooltips with the Genesis Framework.
<?php
/*
Template Name: Tool-Tips (Foundation)
*/
add_action( 'genesis_after', 'mobile_do_tooltip_demo' );
function mobile_do_tooltip_demo() { ?>
<!-- Check for Zepto support, load jQuery if necessary -->
@motorcitymobi
motorcitymobi / responsive-nav.js
Last active December 18, 2015 00:08
Responsive Navigation, inspired by the technique used in Brad Frost's Mobile-First Demo (http://bradfrostweb.com/demo/mobile-first/).
$(document).ready(function() {
$('body').addClass('js');
var $menu = $('#nav'),
$search = $('.search-bar'),
$menulink = $('.menu-link'),
$searchlink = $('.search-link');
$menulink.click(function() {
$menulink.toggleClass('active');
@motorcitymobi
motorcitymobi / Asset.txt
Created January 22, 2013 18:35
Call Post Thumbnail
<?php the_post_thumbnail( 'bfg_medium_img' ); ?>
@motorcitymobi
motorcitymobi / Asset.txt
Created January 22, 2013 18:35
+Footer Widgets
add_theme_support( 'genesis-footer-widgets', 3 );
@motorcitymobi
motorcitymobi / Asset.txt
Created January 22, 2013 18:35
Scroll to Top
JS:
//Scroll to Top
$(function() {
jQuery(window).scroll(function() {
if(jQuery(this).scrollTop() > 150) {
jQuery('.up').fadeIn();
} else {
jQuery('.up').fadeOut();
}