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
{ | |
onChange: function(selectedDate, dateString) { | |
var date = selectedDate[0] ; | |
date.setDate(date.getDate()+1); | |
flatpickr('.endingDate', { | |
"minDate": date, | |
}); | |
} | |
} |
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 Rowspanizer Plugin (Modified) v0.1 | |
* https://github.com/marcosesperon/jquery.rowspanizer.js | |
* | |
* Copyright 2011, 2015 Marcos Esperón | |
* Released under the MIT license | |
* | |
* https://github.com/jquery-boilerplate/boilerplate/ | |
*/ |
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
$shortcodeDefaults = apply_filters('fluentform_info_shortcode_defaults', array( | |
'id' => null, // This is the form id | |
'info' => 'submission_count', // submission_count | created_at | updated_at | payment_total | |
'status' => 'all', // get submission count of a particular entry status favourites | unread | read | |
'with_trashed' => 'no', // yes | no | |
'substract_from' => 0, // [fluentform_info id="2" info="submission_count" substract_from="20"] | |
'hide_on_zero' => 'no', | |
'payment_status' => 'paid', // paid | all | pending | failed | |
'currency_formatted' => 'yes', | |
'date_format' => '' |
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
[fluentform_info id="354" info="submission_count" substract_from="20"] |
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
// Count Footer with fix | |
function myCustomFunction() { | |
var sum = 0; | |
var counts = 0; | |
$(".totals").each(function() { | |
var val = $.trim( $(this).text() ); | |
if ( val ) { | |
val = parseFloat( val.replace( /^\$/, "" ) ); | |
sum += !isNaN( val ) ? val : 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
{ | |
onChange: function(selectedDate, dateString) { | |
var date = selectedDate[0] ; | |
date.setDate(date.getDate()); | |
flatpickr('.endingDate', { | |
"minDate": date, | |
}); | |
} | |
} |
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
// Math summation on columns | |
var myClasses= "column_one, column_two, column_three"; //give your columns key, you can use multiple by using comma | |
var totalText = "Total: "; // you can change the 'Total' text here | |
if(!$table.find('tfoot').length){ | |
jQuery("<tfoot></tfoot>").appendTo($table); | |
} |
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 dynamic data to fluent form | |
add_filter('fluenform_rendering_field_data_select', function ($data, $form) { | |
// Add data to formID 91, you can change the id with your particular form id | |
if ($form->id != 91) { | |
return $data; | |
} | |
// select only the dropdown name attribute | |
// change 'dynamic_dropdown' name with your fields dropdown name | |
if (\FluentForm\Framework\Helpers\ArrayHelper::get($data, 'attributes.name') != 'dynamic_dropdown') { | |
return $data; |
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_filter('ninja_tables_item_attributes', function ($attributes) { | |
$latest = ninja_tables_DbTable()->where('table_id', $attributes['table_id'])->orderBy('id', 'DESC')->limit(1)->first(); | |
$value = json_decode($attributes['value'], true); | |
if ($latest) { | |
$latest = json_decode($latest->value, true); | |
if (isset($latest['id']) && isset($value['id'])) { | |
$value['id'] = $latest['id'] + 1; | |
} |
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 myClasses= "ratings"; //give your columns key. | |
var totalText = "Average: "; //give you text | |
if(!$table.find('tfoot').length){ | |
jQuery("<tfoot></tfoot>").appendTo($table); | |
} | |
function getSum(classes) |