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
// ========================================================================== | |
// Grid Generator Mixin | |
// | |
// Author: Derek Bess | |
// Requires: https://github.com/sass-mq/sass-mq | |
// Description: Creates a floated and flexbox grid system | |
// | |
// Container: @include make-container(); | |
// Row: @include make-row(); | |
// Grid: @include make-container(); |
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 get_edd_posts($per_page, $order, $category = '', $exclude_category = '') { | |
$exclude_categories = explode(',', $exclude_category); | |
$product_args = array( | |
'tax_query' => array ( | |
array( | |
'taxonomy' => 'download_category', // Download Category | |
'terms' => $exclude_categories, // Download Category Exclusions | |
'field' => 'slug', // Term Slug |
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 get_edd_parent_category() { | |
global $post; | |
$terms = wp_get_post_terms( | |
$post->ID, | |
'download_category', | |
array( | |
'parent' => 0 | |
) |
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 get_download_price() { | |
$price = edd_get_download_price(get_the_ID()); | |
if ( $price == "0.00" ) { | |
echo 'Free'; | |
} else { | |
echo '$'.$price; | |
} | |
} |