mixitup function update
This commit is contained in:
parent
a2c3397031
commit
1f14202b81
|
@ -198,8 +198,15 @@ function mep_event_list($atts, $content = null)
|
|||
</div>
|
||||
<script>
|
||||
jQuery(document).ready(function() {
|
||||
|
||||
var containerEl = document.querySelector('#mep_event_list_<?php echo esc_attr($unq_id); ?>');
|
||||
var mixer = mixitup(containerEl);
|
||||
var mixer = mixitup(containerEl, {
|
||||
selectors: {
|
||||
target: '.mep-event-list-loop',
|
||||
control: '[data-mixitup-control]'
|
||||
}
|
||||
});
|
||||
|
||||
<?php if ($pagination == 'carousal') { ?>
|
||||
jQuery('#mep-carousel<?php echo esc_attr($cid); ?>').owlCarousel({
|
||||
autoplay: <?php echo mep_get_option('mep_autoplay_carousal', 'carousel_setting_sec', 'true'); ?>,
|
||||
|
|
|
@ -22,9 +22,9 @@ if (!function_exists('mep_display_event_cat_name_in_list')) {
|
|||
}
|
||||
?>
|
||||
<div class="mep-event-cat-controls">
|
||||
<button type="button" class="mep-cat-control" data-filter="all"><?php esc_html_e('All', 'mage-eventpress'); ?></button>
|
||||
<button type="button" class="mep-cat-control" data-mixitup-control data-filter="all"><?php esc_html_e('All', 'mage-eventpress'); ?></button>
|
||||
<?php foreach ($terms as $_terms) { ?>
|
||||
<button type="button" class="mep-cat-control" data-filter=".<?php echo esc_attr($unq_id.'mage-' . $_terms->term_id); ?>"><?php echo esc_html($_terms->name); ?></button>
|
||||
<button type="button" class="mep-cat-control" data-mixitup-control data data-filter=".<?php echo esc_attr($unq_id.'mage-' . $_terms->term_id); ?>"><?php echo esc_html($_terms->name); ?></button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -57,8 +57,8 @@ if (!function_exists('mep_display_event_org_name_in_list')) {
|
|||
}
|
||||
?>
|
||||
<div class="mep-event-cat-controls">
|
||||
<button type="button" class="mep-cat-control" data-filter="all"><?php esc_html_e('All', 'mage-eventpress'); ?></button><?php foreach ($terms as $_terms) { ?>
|
||||
<button type="button" class="mep-cat-control" data-filter=".<?php echo esc_attr($unq_id.'mage-' . $_terms->term_id); ?>"><?php echo esc_html($_terms->name); ?></button><?php } ?>
|
||||
<button type="button" class="mep-cat-control" data-mixitup-control data-filter="all"><?php esc_html_e('All', 'mage-eventpress'); ?></button><?php foreach ($terms as $_terms) { ?>
|
||||
<button type="button" class="mep-cat-control" data-mixitup-control data data-filter=".<?php echo esc_attr($unq_id.'mage-' . $_terms->term_id); ?>"><?php echo esc_html($_terms->name); ?></button><?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
|
Loading…
Reference in New Issue