This file contains hidden or 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
var gulp = require('gulp'), | |
less = require('gulp-less'), | |
autoprefix = require('gulp-autoprefixer'), | |
sourcemaps = require('gulp-sourcemaps'), | |
rename = require('gulp-rename'), | |
concat = require('gulp-concat'), | |
minifyCSS = require('gulp-minify-css'), | |
jshint = require('gulp-jshint'), | |
uglify = require('gulp-uglify'), | |
livereload = require('gulp-livereload'), |
This file contains hidden or 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 | |
echo paginate_links( array( | |
'format' => 'page/%#%', | |
'show_all' => true, | |
'prev_text' => __('<'), | |
'next_text' => __('>'), | |
)); |
This file contains hidden or 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 ProductCatController($scope, $http) { | |
$scope.childCategoriesTemplate = wp_api.theme + "/templates/angular/child-categories.html"; | |
$http.get(wp_api.url + '/taxonomies/product_cat/terms'). | |
success(function(data) { | |
var container = document.getElementById("product-category-container"); | |
$scope.container = { | |
taxonomyParent: container.getAttribute("data-taxonomy-parent") | |
}; |
This file contains hidden or 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
/*------------------------------------*\ | |
@CSSWIZARDRY-GRIDS | |
\*------------------------------------*/ | |
/** | |
* CONTENTS | |
* VARIABLES............Your settings. | |
* GRID SETUP...........Build the grid structure. | |
* WIDTHS...............Build our responsive widths around our breakpoints. | |
*/ |
This file contains hidden or 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_action('pre_get_posts', function( $query ) { | |
if ( ! is_admin() && is_archive('employee') && $query->is_main_query() ) { | |
$query->set( 'orderby', 'title' ); | |
$query->set( 'order', 'ASC' ); | |
} | |
return $query; | |
}); |
This file contains hidden or 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
.banner { | |
.search-container { | |
@media (min-width: @screen-md-min) and (max-width: @screen-md-max) { | |
padding: 0; | |
} | |
} | |
} |
This file contains hidden or 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 | |
// Taken from http://wordpress.org/support/topic/why-does-blog-become-current_page_parent-with-custom-post-type | |
function remove_parent_classes($class) { | |
// check for current page classes, return false if they exist. | |
return ($class == 'active') ? FALSE : TRUE; | |
} | |
add_filter('nav_menu_css_class', function ($classes) { | |
switch (get_post_type()) |
This file contains hidden or 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
$competitor->featured = new WP_Query([ | |
'post_type' => 'train', | |
'train-categories' => 'workouts', | |
'posts_per_page' => 2, | |
'post__in' => get_option( 'sticky_posts' ), | |
]); |
This file contains hidden or 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($) { | |
jQuery(window).load(function($){ | |
// Turn off the page loader | |
jQuery('#ajax-loader').fadeOut(500); | |
}); | |
})(jQuery); | |
This file contains hidden or 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
<div id="primary" class="content-area site-archives col-xs-12"> | |
<?php if( function_exists('bcn_display') ) { | |
bcn_display(); | |
} ?> | |
<main id="main" class="site-main" role="main"> | |
<?php while ( have_posts() ) : the_post(); | |
get_template_part( 'content', 'page' ); |