function update

This commit is contained in:
magepeopleteam 2021-11-29 11:49:04 +00:00
parent 9681126348
commit fd662c569f
4 changed files with 14 additions and 10 deletions

View File

@ -18,7 +18,7 @@ function mep_add_admin_scripts($hook)
if ($hook == 'post-new.php' || $hook == 'post.php') {
if ('mep_events' === $post->post_type) {
wp_enqueue_style('mep-jquery-ui-style', plugin_dir_url(__DIR__) . 'css/jquery-ui.css', array());
wp_enqueue_script('gmap-scripts', plugin_dir_url(__DIR__) . 'js/mkb-admin.js', array('jquery', 'jquery-ui-core'), 1, true);
wp_enqueue_script('gmap-scripts', plugin_dir_url(__DIR__) . 'js/mkb-admin.js', array('jquery', 'jquery-ui-core'),time(), true);
}
}
@ -85,11 +85,11 @@ function mep_event_enqueue_scripts()
//wp_enqueue_script('mep-lazysizes', plugin_dir_url(__DIR__) . 'js/lazysizes.min.js', array(), 1, true);
wp_enqueue_script('filter_pagination', plugin_dir_url(__DIR__) . 'js/filter_pagination.js', array(), time(), true);
wp_enqueue_script('mp_event_custom_script', plugin_dir_url(__DIR__) . 'js/mp_event_custom_script.js', array(), 1.1, true);
wp_enqueue_script('mp_event_custom_script', plugin_dir_url(__DIR__) . 'js/mp_event_custom_script.js', array(), time(), true);
wp_enqueue_script('mep-timeline-min', plugin_dir_url(__DIR__) . 'js/timeline.min.js', array('jquery'), 1, true);
wp_enqueue_script('mep-event-custom-scripts', plugin_dir_url(__DIR__) . 'js/mkb-scripts.js', array(), 1, true);
wp_enqueue_script('mep-event-custom-scripts', plugin_dir_url(__DIR__) . 'js/mkb-scripts.js', array(), time(), true);
wp_localize_script('jquery', 'mep_ajax', array( 'mep_ajaxurl' => admin_url( 'admin-ajax.php')));

View File

@ -3348,7 +3348,6 @@ if (!function_exists('mep_cart_display_user_list')) {
$recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_meta($event_id, 'mep_enable_recurring', true) : 'no';
$time_status = get_post_meta($event_id, 'mep_disable_ticket_time', true) ? get_post_meta($event_id, 'mep_disable_ticket_time', true) : 'no';
$event_label = mep_get_option('mep_event_label', 'general_setting_sec', 'Events');
foreach ($user_info as $userinf) {
@ -3383,8 +3382,13 @@ if (!function_exists('mep_cart_display_user_list')) {
<li><?php echo esc_attr(mep_get_reg_label($event_id, 'Website')) . ": ";
echo esc_attr($userinf['user_website']); ?></li> <?php } ?>
<?php if ($userinf['user_vegetarian']) { ?>
<li><?php echo esc_attr(mep_get_reg_label($event_id, 'Vegetarian')) . ": ";
echo esc_attr($userinf['user_vegetarian']); ?></li> <?php } ?>
<li>
<?php
$vegetarian=strtolower($userinf['user_vegetarian'])=='yes'?esc_html__('Yes','mage-eventpress'):esc_html__('No','mage-eventpress');
echo esc_attr(mep_get_reg_label($event_id, 'Vegetarian')) . ": ";
echo esc_html($vegetarian);
?>
</li> <?php } ?>
<?php if (sizeof($custom_forms_id) > 0) {
foreach ($custom_forms_id as $key => $value) {
?>
@ -3398,11 +3402,11 @@ if (!function_exists('mep_cart_display_user_list')) {
echo ": " . esc_attr($userinf['user_ticket_type']); ?></li> <?php } ?>
<?php if ($recurring == 'everyday' && $time_status == 'no') { ?>
<li><?php echo esc_attr($event_label);
<li><?php
esc_html_e(' Date', 'mage-eventpress');
echo ": "; ?><?php echo esc_attr(get_mep_datetime($userinf['user_event_date'], 'date-text')); ?></li>
<?php } else { ?>
<li><?php echo esc_attr($event_label);
<li><?php
esc_html_e(' Date', 'mage-eventpress');
echo ": "; ?><?php echo esc_attr(get_mep_datetime($userinf['user_event_date'], 'date-time-text')); ?></li>
<?php } ?>

View File

@ -82,6 +82,6 @@
});
$(document).on('keyup change', '.mp_ticket_type_table [name="option_name_t[]"],.mp_ticket_type_table [name="option_name[]"]', function () {
let n = $(this).val();
$(this).val(n.replace(/[^a-z0-9-_\s]/gi, ''));
$(this).val(n.replace(/[@%'":;&_]/g, ''));
});
}(jQuery));

View File

@ -11,7 +11,7 @@
&nbsp;<span class="mep_date_scdl_separator"> - </span>&nbsp;
<?php
if ($start_date != $end_date) {
esc_html(get_mep_datetime($end_datetime, 'date-text'));
echo esc_html(get_mep_datetime($end_datetime, 'date-text'));
}
echo ' ' . esc_html(get_mep_datetime($end_datetime, 'time'));
?>