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
{ | |
mode: "range", | |
onClose: function(selectedDates, dateStr, instance) { | |
if (selectedDates.length === 2) { | |
// Get the start and end dates | |
var startDate = selectedDates[0]; | |
var endDate = selectedDates[1]; | |
// Calculate the number of nights | |
var nightCount = Math.round( |
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
add_filter('fluentform/submissions_widgets', array($this, 'pushPdfButtons'), 10, 3); | |
public function pushPdfButtons($widgets, $data, $submission) | |
{ | |
$formId = $submission->form->id; | |
$feeds = $this->getFeeds($formId); | |
if (!$feeds) { | |
return $widgets; | |
} | |
$widgetData = [ |
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
$table.on('after.ft.sorting after.ft.filtering', function() { | |
// Code to run when "No Result Found" message appears | |
$('.footable-empty td').html('<a href="your-registration-page-url" target="_blank">Click here to register</a>'); | |
}); |
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
// 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 | |
// Ensure that the rendering code only runs once | |
var hasRendered = false; | |
if(!$table.find('tfoot').length){ | |
jQuery("<tfoot></tfoot>").appendTo($table); |
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
/* | |
::::::::::::::::::: | |
:: Column freeze :: | |
::::::::::::::::::: | |
*/ | |
#footable_parent_NT_ID tbody tr td:nth-child(1), #footable_parent_NT_ID thead th:nth-child(1){ | |
position: sticky; | |
position: -webkit-sticky; | |
left: 0; | |
z-index: 1; |
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
^(((11)(:[3-5][\d])? ?[pP]\.?)|((12|[1-6])(:[0-3][\d])? ?[aA]\.?))[mM]\.?$ |
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
add_filter('ninja_table_search_time_delay', function ($tableId) { | |
return -1; | |
}); |
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
jQuery( document ).ready(function() { | |
jQuery(".footable-add").click(function(){ | |
const urlParams = new URLSearchParams(window.location.search); | |
const firstField = urlParams.get('custom');// your value from url | |
const secondField = urlParams.get('custom2');// your value from url | |
const firstInput = jQuery('.nt_input_YourColumnKey')// target your input field | |
const secondInput = jQuery('.nt_input_YourColumnKey')// target your input field | |
firstInput.attr("value", firstField);//insert your params value in input | |
secondInput.attr("value", secondField);//insert your params value in input |
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
#footable_parent_NT_ID table:not(.ninja_has_filter) tbody, #footable_parent_NT_ID table:not(.ninja_has_filter) tfoot, #footable_parent_NT_ID table:not(.ninja_has_filter) .footable-header { | |
display: none !important; | |
} |