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
/* Modernizr 2.6.2 (Custom Build) | MIT & BSD | |
* Build: http://modernizr.com/download/#-inlinesvg-svg-svgclippaths-touch-shiv-mq-cssclasses-teststyles-prefixes-ie8compat-load | |
*/ | |
;window.Modernizr=function(a,b,c){function y(a){j.cssText=a}function z(a,b){return y(m.join(a+";")+(b||""))}function A(a,b){return typeof a===b}function B(a,b){return!!~(""+a).indexOf(b)}function C(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:A(f,"function")?f.bind(d||b):f}return!1}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n={svg:"http://www.w3.org/2000/svg"},o={},p={},q={},r=[],s=r.slice,t,u=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style |
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
jQuery(document).ready(function($) { //noconflict wrapper | |
$('input#submit').addClass('button'); | |
});//end noconflict |
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
<?php | |
$custom_query = new WP_Query(array( | |
'post__in' => array(4, 9, 12 /* whatever your post ID's are here */), | |
'orderby' => 'post__in', | |
)); | |
while ($custom_query->have_posts()) { | |
$custom_query->the_post(); | |
get_template_part( 'content', get_post_format() ); | |
} |
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
zip -r archive.zip directory -x "*/\.DS_Store" | |
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
jQuery(document).ready(function($) { | |
//http://stackoverflow.com/questions/15534385/slide-two-divs-at-the-same-time/15545241#15545241 | |
$(document) | |
.foundation('tooltips') | |
.foundation('orbit', { | |
timer_speed: 0 | |
}); | |
$(document).ready(function () { | |
var fromSlide1 = false; | |
var fromSlide2 = false; |
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
/** | |
* Set the fullscreen background image using a smaller image for small (ie mobile screens) | |
* http://pippinsplugins.com/retrieve-attachment-id-from-image-url/ | |
*/ | |
//get id of attachment by full url | |
// http://pippinsplugins.com/retrieve-attachment-id-from-image-url/ | |
function _sf_get_image_id($image_url) { | |
global $wpdb; | |
$prefix = $wpdb->prefix; |
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
<?php | |
//based on http://wp.tutsplus.com/tutorials/business/how-to-share-adsense-revenue-with-your-authors/ | |
//Set Adsense client ID. | |
$ad_client_id = ' '; | |
// Create Custom Settings Menu | |
add_action('admin_menu', 'adsenser_menu'); | |
function adsenser_menu() { | |
//Create Sub-Level Menu Page under Settings | |
add_submenu_page( 'options-general.php', 'Adsenser Settings', 'Adsenser', 'manage_options', 'adsenser_settings_page', 'adsenser_settings_page'); |
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
/* Arc movement */ | |
.wrapper { | |
width: 500px; | |
margin: 300px 0 0; | |
transition: all 1s; | |
transform-origin: 50% 50%; | |
} | |
.inner { | |
display: inline-block; |
OlderNewer