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 | |
/** | |
* This file will activate the Airplane Mode plugin if not already activated. This is helpful when you do not have internet connection and you're unable to reach the WP Admin Plugins page to activate the plugin. | |
*/ | |
// get WP bootstrap | |
define('WP_USE_THEMES', false); | |
require(__DIR__ . '/wp/wp-blog-header.php'); | |
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 | |
/** | |
* Registers Shortcode UI for gravityforms shortcode | |
* | |
* @package theme | |
*/ | |
if ( ! function_exists( '_theme_gravityform_shortcode_ui' ) ) { | |
/** |
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( 'acf/load_field', 'mytheme_set_field_name' ); | |
function mytheme_set_field_name( $field ){ | |
if( is_admin() ){ | |
$screen = get_current_screen(); | |
if( $screen->id == 'acf-field-group' ) | |
return $field; |
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 | |
public function sync_active() { | |
if( get_transient( 'rets_data_sync_active' ) ) | |
return; | |
set_transient( 'rets_data_sync_active', 'PAUSE', HOUR_IN_SECONDS * 4 ); | |
global $rets_sync_db; | |
$rets_sync_db->add_filter( 'field_L_Status', 'Active' ); | |
$listings = $rets_sync_db->get_listings(); |
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( $ ){ | |
'use strict'; | |
function auto_fit_soliloquy( parent_selector ){ | |
// resize the slider container | |
var $soliloquy = $( parent_selector + ' .soliloquy-container'), | |
$all_items = $('.soliloquy-slider,.soliloquy-viewport,.soliloquy-item', $soliloquy ), | |
$container = $('.soliloquy-item', $soliloquy ), | |
window_height = $(window).height(); |
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 | |
function acf_sync_field( $sync_field, $value, $post_id, $field ){ | |
// vars | |
$source_field = $field['name']; | |
$source_global_name = 'is_updating_' . $source_field; | |
$sync_global_name = 'is_updating_' . $sync_field; | |
// get this value early before anything is updated |
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($) { | |
var waveDragDrop = { | |
init: function(){ | |
this.setupInvoiceDragDrop(); | |
this.setupEstimateDragDrop(); | |
}, | |
setupInvoiceDragDrop: 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
jQuery(function($){ | |
$('.gform_fields input[type="text"], .gform_fields input[type="email"], .gform_fields input[type="tel"], .gform_fields textarea').fadeLabel(); | |
}); |
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
margin-bottom: 12px; | |
font: normal 1.1em "Lucida Sans Unicode", serif; | |
background: url(img/quote.gif) no-repeat; | |
padding-left: 28px; | |
color: #555; |
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
ORDER BY CASE | |
WHEN `col` = ‘item’ THEN 1 | |
WHEN `col` = ‘thing’ THEN 2 | |
WHEN `col` = ‘stuff’ THEN 3 | |
WHEN `col` = ‘boom’ THEN 4 | |
ELSE 5 | |
END |