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
'use strict'; | |
var gulp = require('gulp'), | |
toolkit = require('gulp-wp-toolkit'); | |
require('gulp-stats')(gulp); | |
toolkit.extendConfig({ | |
theme: { | |
name: "Infinity Pro", |
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
'use strict'; | |
var gulp = require('gulp'), | |
toolkit = require('gulp-wp-toolkit'); | |
require('gulp-stats')(gulp); | |
toolkit.extendConfig({ | |
theme: { | |
name: "Infinity Pro", |
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
'use strict'; | |
var gulp = require('gulp'), | |
toolkit = require('gulp-wp-toolkit'); | |
require('gulp-stats')(gulp); | |
toolkit.extendConfig( /* Gulp config overrides. */ ); | |
toolkit.extendTasks(gulp, /* Gulp task overrides. */ ); |
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
{ | |
"name": "infinity-pro", | |
"version": "1.1.3", | |
"devDependencies": { | |
"gulp": "^3.9.1", | |
"gulp-wp-toolkit": "^2.2.1", | |
"gulp-stats": "^0.0.4" | |
} | |
} |
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
<?php | |
add_filter( 'genesis_post_title_text', function () { | |
return __( 'Replacement Title Text', 'textdomain' ); | |
} ); |
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
<?php | |
add_filter( 'option_active_plugins', __NAMESPACE__ . '\disable_acf_on_frontend' ); | |
/** | |
* Disable ACF Pro on website frontend. | |
* | |
* Provides a performance boost if ACF frontend functions aren't being used. | |
* | |
* @since 1.0.0 | |
* @link https://www.billerickson.net/code/disable-acf-frontend/ |
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
<?php | |
define( 'GOOGLE_MAPS_API_KEY', 'your_key_here' ); | |
add_action( 'acf/init', __NAMESPACE__ . '\set_google_maps_api_key' ); | |
/** | |
* Set Google Maps API key for use in ACF Pro backend. | |
* | |
* @since 1.0.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
<?php | |
add_filter( 'gform_form_post_get_meta', __NAMESPACE__ . '\\enforce_gravity_forms_anti_spam_honeypot' ); | |
/** | |
* Enforce anti-spam honeypot on all Gravity forms. | |
* | |
* @param array $form The current form to be filtered. | |
* | |
* @return array | |
*/ |
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
/* ======================================================================== | |
* DOM-based Routing | |
* Based on http://goo.gl/EUTi53 by Paul Irish | |
* ======================================================================== */ | |
(function ($) { | |
var Whitespace = { | |
common: { | |
init: function () { | |
// Run everywhere. |
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 isIE(userAgent) { | |
userAgent = userAgent || navigator.userAgent; | |
return userAgent.indexOf("MSIE ") > -1 || userAgent.indexOf("Trident/") > -1 || userAgent.indexOf("Edge/") > -1; | |
} |