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
$.fn.preBind = function(type, data, fn) { | |
var currentBindings = this.data('events')[type]; | |
var currentBindingsLastIndex = currentBindings.length - 1; | |
var newBindings = []; | |
// bind the event | |
this.bind(type, data, fn); | |
// move the new event to the top of the array | |
newBindings.push(currentBindings[currentBindingsLastIndex]); |
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
jQuery(function($){ | |
$(document).on('gform_post_render', function(e, form_id){ | |
$('#gform_ajax_frame_'+form_id).attr('src', 'about:blank'); | |
}); | |
}); |
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
/** | |
* Retrieve the stored shopping cart and pass it to the callback. | |
*/ | |
sync : function(){ | |
return $.get('/modules/booking/content/functions.cfc?method=getCartJSONAjax&returnFormat=json'); | |
}, |
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
#! /usr/bin/env php | |
<?php | |
echo "MySQL root Password: "; | |
system('stty -echo'); | |
$root_password = trim(fgets(STDIN)); | |
system('stty echo'); | |
// add a new line since the users CR didn't echo | |
echo "\n"; |
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
jQuery(function($){ | |
if( $('body').hasClass('disable-scribd') ) return; | |
// check for a disable variable | |
var pairs = window.location.search.replace(/^\?/, '').split('&'); | |
var disabled = false; | |
$.each(pairs, function(i, pair){ | |
var keyval = pair.split('='); | |
if( keyval[0] == 'disable-scribd' ){ | |
disabled = true; | |
return false; |
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 | |
class acf_fix_local_fields | |
{ | |
public function __construct() | |
{ | |
add_action('acf/include_fields', array($this, 'fix_local_fields'), 20 ); | |
} | |
public function fix_local_fields() |
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 post_height(){ | |
var msg = JSON.stringify({event:'size', height: document.body.scrollHeight}); | |
window.top.postMessage(msg, '*'); | |
} | |
var onload = window.onload; | |
window.onload = function(){ | |
if( onload && typeof onload =='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
<?php | |
/* | |
Plugin Name: ACF Customizer Patch | |
Plugin URI: https://gist.github.com/fabrizim/9c0f36365f20705f7f73 | |
Description: A class to allow acf widget fields to be stored with normal widget settings and allow for use in customizer. | |
Author: Mark Fabrizio | |
Version: 1.0 | |
Author URI: http://owlwatch.com/ | |
*/ | |
class acf_customizer_patch |
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
RewriteRule ^(.+\.axd.*) ./proxy/index.php [NC,L] | |
RewriteRule ^((images|Documentation|DesktopModules|tabid/(364|622|623|624|625|626|627|628|650)|(P|p)ortals|Scripts|Developers|js|Home/Login|Gizmox/Store|Gizmox/Solutions|Gizmox/Landing)/.*) ./proxy/index.php [L] |
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 | |
add_filter('mce_css', 'theme_mce_less'); | |
function theme_mce_less($css) | |
{ | |
$handle = 'editor'; | |
$less_plugin = WPLessPlugin::getInstance(); | |
wp_enqueue_style($handle, get_stylesheet_directory_uri()."/assets/stylesheets/editor.less"); | |
$less_plugin->processStylesheets(); | |
global $wp_styles; |