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
$.each($("table").find("td:nth-child(2)"),function(index,value){ | |
if("action" === $(value).text()){ | |
$(value).parents("tr").fadeOut(); | |
} | |
}); |
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 only_skip_2871($view_id){ | |
return '2871' == $view_id ? true : false; | |
} | |
add_filter( 'gravityview/dt/index/skip', 'only_skip_2871', 10 ); | |
function skip_all_except_2871($view_id){ | |
return '2871' == $view_id ? false : true; | |
} | |
add_filter( 'gravityview/dt/index/skip', 'skip_all_except_2871', 10 ); |
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( 'gform_save_field_value', 'save_field_value', 10, 4 ); | |
function save_field_value( $value, $lead, $field, $form ) { | |
$output_ids = array(); | |
global $files_to_sideload; | |
if(!isset($files_to_sideload) || empty($files_to_sideload)){ | |
$files_to_sideload = array(); | |
} | |
//if not the form with fields to encode, just return the unaltered value without checking the 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
var count = 0; | |
var delete_buttons = []; | |
var dom = { | |
uploads: jQuery( "#gform_preview_2_1" ) | |
}; | |
(function($) { | |
function showImagePreview( file ) { | |
var target = "#"+file.id; | |
var item = $( "<li></li>" ).prependTo( target ); | |
var title = $(target).find("strong").html(); |
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 $ = jQuery; | |
$.each($(".databox").find("input[type='checkbox']"), function(){ | |
var label = $(this).next("label").text(); | |
if (label.indexOf('wp-content') > -1 && $(this).attr('disabled') !== true && $(this).attr('disabled') !== 'disabled'){ | |
console.log('check-me'); | |
$(this).attr('checked',true); | |
} else { | |
console.log('no-check'); | |
$(this).attr('checked', 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 | |
/** | |
* Remove wp_footer hooks from an incompatible plugins and/or themes test test | |
*/ | |
function remove_wp_footer_actions() { | |
if ( is_single() && ( SI_Invoice::is_invoice_query() || SI_Estimate::is_estimate_query() ) ) { | |
// plugins usually hook on the default priority, also | |
// core doesn't add anything on priority 10 so | |
// we can assume all hooks are from plugins and themes. |
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
/** | |
* Custom js script at post edit screen | |
* | |
* @package gravityview-edit-datatables-options | |
* @license GPL2+ | |
* @author Marc Gratch | |
* @link http://marcgratch.com | |
* @copyright Copyright 2015, Marc Gratch | |
* | |
* @since 1.0.0 |
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: GravityView - Edit DataTables Options | |
* Plugin URI: http://gravityview.co/extensions/datatables/ | |
* Description: This plugin is used to override the datatables data source and extend it. | |
* Version: 1.0 | |
* Author: Katz Web Services, Inc. , Marc Gratch | |
* Author URI: http://www.katzwebservices.com | |
* License: GPLv2 or later | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
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 | |
/** | |
* The template for displaying search results pages. | |
* | |
* @package WordPress | |
* @subpackage Twenty_Fifteen | |
* @since Twenty Fifteen 1.0 | |
*/ | |
get_header(); ?> |
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 add_referring_pic_data_query( $vars ){ | |
$vars[] = "title"; | |
$vars[] = 'description'; | |
$vars[] = 'caption'; | |
return $vars; | |
} | |
add_filter( 'query_vars', 'add_referring_pic_data_query' ); |