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'), | |
plumber = require( 'gulp-plumber' ), | |
watch = require( 'gulp-watch' ), | |
livereload = require( 'gulp-livereload' ), | |
minifycss = require( 'gulp-minify-css' ), | |
jshint = require( 'gulp-jshint' ), | |
stylish = require( 'jshint-stylish' ), | |
uglify = require( 'gulp-uglify' ), | |
rename = require( 'gulp-rename' ), | |
notify = require( 'gulp-notify' ), |
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 SLUG TO BODY CLASS *****************/ | |
// Add specific CSS class by filter | |
add_filter('body_class','glocal_class_names'); | |
function glocal_class_names($classes) { | |
// add 'class-name' to the $classes array | |
global $post; | |
$post_slug_class = $post->post_name; | |
$classes[] = $post_slug_class . ' page-' . $post_slug_class; |
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
# Logs | |
logs | |
*.log | |
# Runtime data | |
pids | |
*.pid | |
*.seed | |
# Directory for instrumented libs generated by jscoverage/JSCover |
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
/** | |
* This gist demonstrates how to properly load jQuery within the context of WordPress-targeted JavaScript so that you don't | |
* have to worry about using things such as `noConflict` or creating your own reference to the jQuery function. | |
* | |
* @version 1.0 | |
*/ | |
(function( $ ) { | |
"use strict"; | |
$(function() { |
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() { | |
function log( message ) { | |
$( "<ul>" ).html(message).prependTo( "#log" ); | |
$( "#log" ).scrollTop( 0 ); | |
} | |
$( "#page" ).autocomplete({ | |
source: function( request, response ) { | |
$.ajax({ |
NewerOlder