This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//font size mixin for using rems with px fallback | |
//usage: @include font-size(1.2); | |
@mixin font-size($sizeValue: 1.6) { | |
font-size: ($sizeValue * 10) + px; | |
font-size: $sizeValue + rem; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//section padding mixin | |
//you'll need breakpoint and to set your breakpoint variables as well | |
//usage @include pad(60, 60); | |
@mixin pad($topValue: 140, $bottomValue: 140) { | |
padding-top: $topValue / 2 + px; | |
padding-bottom: $bottomValue / 2 + px; | |
@include breakpoint($small) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Display Droplr images inline. | |
This responder illustrates using Propane's requestJSON service to request | |
JSON from remote (non-authenticated) servers and have the results passed | |
to a callback of your choosing. | |
*/ | |
var displayDroplrImages = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AL : Alabama | |
AK : Alaska | |
AZ : Arizona | |
AR : Arkansas | |
CA : California | |
CO : Colorado | |
CT : Connecticut | |
DE : Delaware | |
DC : Dist of Columbia | |
FL : Florida |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////// | |
// Rewrite Rules | |
/////////////////////////////////// | |
//rewrite rules | |
add_filter('rewrite_rules_array','wp_insertMyRewriteRules'); | |
add_filter('query_vars','wp_insertMyRewriteQueryVars'); | |
add_filter('init','flushRules'); | |
// Remember to flush_rules() when adding rules |