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
// This code will hide any row in responsive breakdown which doesn't have any data | |
// If all rows inside a + icon is empty, it will hide the +/- sign | |
function runAllThisStaff(){ | |
$table.find('tbody tr').each(function(){ | |
var clickedRow = jQuery(this); | |
var forCheck = clickedRow.find('td:not(:first-child)'); | |
forCheck.each(function(){ | |
var dataAvailable = jQuery(this).text().length; | |
if(jQuery(this).text().length === 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
$(document).ready(function(){ | |
var maxLength = 300; // give character length here | |
var colName = 'text'; // give your column key here | |
var readMoreText = "read more..."; // give read more text here | |
var readLessText = "read less..."; //give read less text here | |
function limitChar(){ | |
$(".ninja_clmn_nm_"+colName).each(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 | |
/* | |
* Dynamic item in fluent form dropdown. | |
*/ | |
add_filter('fluenform_rendering_field_data_select', function ($data, $form) { | |
if ($form->id != 91) { | |
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
<?php | |
/** | |
* | |
* ***** WooCommerce Purchase Validate Addon for Fluent Form ***** | |
* | |
* Subscription status file | |
* | |
* @package wpvafff | |
*/ |
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
// added by Ninja Support | |
$('[data-toggle=dropdown]').on('click', function (event) { | |
if (jQuery(window).width() > 767) { | |
window.location.href = $(this).attr('href'); | |
} | |
}); |
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
/* | |
* The following functions will add additional file types option to your file upload element | |
* In this case, You can enable .dwg file format | |
* Just add this snippet to your theme's functions.php file or relevant place. | |
*/ | |
add_filter('fluentform_file_type_options', function ($types) { | |
$types[] = [ | |
'label' => __('Autocad Files (dwg)', 'fluentform'), | |
'value' => 'dwg', |
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 runAll(){ | |
$(document).on('click', 'tbody tr', function(e){ | |
e.preventDefault(); | |
var url = $(this).find('a').attr('href'); | |
if(url != ""){ | |
window.open(url, '_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
var my_class = "addDollar"; // define your class name here | |
var my_content = "$"; // define your prefix text here | |
var myClasses = jQuery('.'+ my_class +' .ff-el-input--content'); | |
myClasses.prepend('<div class="ff_input-group-prepend"><span class="ff_input-group-text">'+my_content+'</span></div>'); | |
myClasses.addClass('ff_input-group'); |
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 imageTransformation(){ | |
$table.find('tbody .my_image').each(function(){ | |
var myImage = $(this).text(); | |
if (myImage.match(',')){ | |
var imageArray = myImage.split(','); | |
for ( var i = 0; i<imageArray.length; i++){ | |
imageArray[i] = "<img src='"+imageArray[i]+"'>"; | |
} | |
$(this).html(imageArray); | |