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
function get_posts($params) { | |
$container = $('#container-async'); | |
$content = $container.find('.content'); | |
$status = $container.find('.status'); | |
$status.text('Loading posts ...'); | |
$.ajax({ | |
url: bobz.ajax_url, |
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
<?php | |
/** | |
* AJAC filter posts by taxonomy term | |
*/ | |
function vb_filter_posts_mt() { | |
if( !isset( $_POST['nonce'] ) || !wp_verify_nonce( $_POST['nonce'], 'bobz' ) ) | |
die('Permission denied'); | |
/** |
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
$('.sc-ajax-filter-multi').on('click', 'a[data-filter], .pagination a', function(event) { | |
if(event.preventDefault) { event.preventDefault(); } | |
$this = $(this); | |
/** | |
* Set filter active | |
*/ | |
if ($this.data('filter')) { | |
$page = 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
//Backend visual composer add-on code | |
vc_map(array( | |
'name' => 'Accordions', | |
'base' => 'maxima_accordion', | |
'category' => 'Maxima', | |
'params' => array( | |
array( | |
'type' => 'textfield', | |
'name' => __('Title', 'rrf-maxima'), |
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
vc_map( | |
array( | |
'name' => __('Timeline', 'text-domain'), | |
'base' => 'akyos_timeline', | |
'description' => __('Une timeline', 'text-domain'), | |
'category' => __('Akyos Elements', 'text-domain'), | |
'params' => array( | |
array( | |
'type' => 'param_group', | |
'value' => '', |
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
Visit : https://increativeweb.com/create-visual-composer-with-param_group | |
============================= | |
Sample 1 | |
//Backend visual composer add-on code | |
vc_map(array( | |
'name' => 'Accordions', | |
'base' => 'maxima_accordion', | |
'category' => 'Maxima', |
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 the following piece of code to your functions.php file. | |
add_shortcode('getMembership-lists', 'ajax_membership_table_shortcode'); | |
// WITH AJAX LOAD TABLE | |
function membership_datatables_scripts() { | |
wp_register_style('datatables_style', '//cdn.datatables.net/1.11.1/css/jquery.dataTables.min.css'); | |
wp_enqueue_style('datatables_style'); |