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
<!--begin text ad markup--> | |
<table class='letterhead-promotion' style='margin: 0 auto; max-width: 600px;'> | |
<tr class='letterhead-promotion__row'> | |
<td class='letterhead-promotion__row__cell' style='text-align: center; padding-bottom: 8px;'> | |
<p class='letterhead-promotion__row__cell__promoter-display-name' style='font-size: 85%;'>Advertisement from {{ promoterDisplayName }}</p> | |
</td> | |
</tr> | |
<tr class='letterhead-promotion__row'> | |
<td class='letterhead-promotion__row__cell'> | |
<h3 class='letterhead-promotion__row__cell__heading' style='margin: 0 0 10px 0;'>{{ heading }}</h3> |
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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
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
add_filter('ef_user_following_posts_query_args','any_posts_ef_user_following_posts_query_args',10,1); | |
function any_posts_ef_user_following_posts_query_args( $post_args ){ | |
$post_args['post_type'] = 'any'; | |
return $post_args; | |
} |
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
(function() { | |
var CSSCriticalPath = function(w, d, opts) { | |
var opt = opts || {}; | |
var css = {}; | |
var pushCSS = function(r) { | |
if(!!css[r.selectorText] === false) css[r.selectorText] = {}; | |
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/); | |
for(var i = 0; i < styles.length; i++) { | |
if(!!styles[i] === false) continue; | |
var pair = styles[i].split(": "); |
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
/* | |
Maintain ratio mixin. Great for responsive grids, or videos. | |
https://gist.github.com/brianmcallister/2932463 | |
$ratio - Ratio the element needs to maintain. | |
Examples | |
// A 16:9 ratio would look like this: | |
.element { |