Skip to content

Instantly share code, notes, and snippets.

View reachkamrul's full-sized avatar
😁

Md Kamrul Islam reachkamrul

😁
View GitHub Profile
//add this css
#footable_parent_NT_ID .foo-table[id^='footable_']:not(.ninja_has_filter) tbody,#footable_parent_NT_ID .foo-table[id^='footable_']:not(.ninja_has_filter) tfoot,#footable_parent_NT_ID .foo-table[id^='footable_']:not(.ninja_has_filter) .footable-header {
display: none !important;
}
// add this javascript
add_filter('fluentform/date_i18n', function ($strings) {
$strings = array(
'months' => [
'shorthand' => [
__('Jan', 'fluentform'),
__('Fev', 'fluentform'),
__('Mar', 'fluentform'),
__('Avr', 'fluentform'),
__('Mai', 'fluentform'),
function runAll (){
// write all your custom javascript here
}
runAll();
$table.on('after.ft.filtering', function() {
runAll();
});
$table.on('after.ft.paging', function() {
/*
* Custom Editor SmartCode
* {my_author}
*/
add_filter('fluentform_editor_shortcode_callback_my_author', function ($val) {
global $post;
$author_id = $post->post_author;
$my_author = get_the_author_meta( 'email', $author_id );
return $my_author;
// define your name attributes here
var radioField = "---";
var firstNfield = "---";
var surNField = "---";
var showHere ="---";
$(":input").bind("keyup change", function(e) {
var title = jQuery("input[data-name='"+radioField+"']:checked").val();
var firstName = jQuery("input[data-name='"+firstNfield+"']").val();
var surname = jQuery("input[data-name='"+surNField+"']").val();
<?php global $current_user; wp_get_current_user(); ?>
<?php
if ( is_user_logged_in() ) {
$getEmail = $current_user->user_email;
$getID = $current_user->user_id;
echo do_shortcode('[ninja_tables id="580" filter_column="name" filter=" ' . $getID . '" ] ');
}
?>
/*!
* jQuery Rowspanizer Plugin (Modified) v0.2
* https://github.com/marcosesperon/jquery.rowspanizer.js
*
* Copyright 2011, 2015 Marcos Esperón
* Released under the MIT license
*
* https://github.com/jquery-boilerplate/boilerplate/
*/
$(document).ready(function(){
var myData = jQuery('.foo-table td.from').text();
jQuery('.fluentform input.to').val(myData);
// jQuery('.fluentform input.to').attr('readonly','1');
})
add_filter('ninja_table_raw_sql_placeholders', function ($value) {
$value['{name}'] = 'kamrul';
return $value;
});
jQuery('.readonly').attr('readonly', 'true');