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
// ericB way | |
// good reference for all wp_query paramaters - http://www.billerickson.net/code/wp_query-arguments/ | |
<?php | |
$args = array( | |
'post_type' => 'press', | |
'posts_per_page' => -1, | |
//////Taxonomy Parameters - Show posts associated with certain taxonomy. | |
//Important Note: tax_query takes an array of tax query arguments arrays (it takes an array of arrays) | |
//This construct allows you to query multiple taxonomies by using the relation parameter in the first (outer) array to describe the boolean relationship between the taxonomy queries. |
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
@mixin vertical-align { | |
position: relative; | |
top: 50%; | |
-webkit-transform: translateY(-50%); | |
-ms-transform: translateY(-50%); | |
transform: translateY(-50%); | |
} | |
.element p { | |
@include vertical-align; |
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
// sweet accordion effect (using jQuery easing plugin) | |
$('.detail-title').click(function() { | |
var $f = $(this), | |
$content = $(this).next('.content'); | |
if(!$f.hasClass('menu-expanded')) { | |
$f.addClass('menu-expanded'); | |
$content.stop().slideDown(666, 'easeInOutExpo'); | |
} else { |
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
// spacer shortcode | |
// [spacer height="50"] | |
function spacer_func( $atts ) { | |
extract (shortcode_atts( array( | |
'height' => '', | |
), $atts )); | |
$height = ($height) ? ' '.$height : ''; | |
return '<div class="spacer cf" style="height:'. $height .'px"></div>'; |