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
/*------------------------------------*\ | |
@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
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
<?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
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
wp_enqueue_script('duchateau_js', get_template_directory_uri() . $assets['js'], array(), null, true); | |
wp_localize_script( 'duchateau_js', 'wp_api', array( | |
'url' => esc_url_raw(get_json_url()), | |
'theme' => esc_url_raw(get_template_directory_uri()) | |
) ); |
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('plugins_loaded', 'remove_jetpack_widget_conditions',11); | |
function remove_jetpack_widget_conditions(){ | |
remove_action( 'init', array('Jetpack_Widget_Conditions','init') ); | |
} |
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
class InstagramFeed { | |
protected $keys; | |
public function __construct($user_id, $access_code) | |
{ | |
$this->keys = [ | |
'user_id' => $user_id, | |
'access_code' => $access_code, | |
]; |
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
class autoloader { | |
public static $loader; | |
public static function init() | |
{ | |
if (self::$loader == NULL) | |
self::$loader = new self(); | |
return self::$loader; |
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 | |
namespace Roots\Sage\Titles; | |
/** | |
* Page titles | |
*/ | |
function title() { | |
if (is_home()) { | |
if (get_option('page_for_posts', true)) { |