version 3.5.5 released

This commit is contained in:
magepeopleteam 2021-11-24 06:51:57 +00:00
parent bf79a0a805
commit 7674ea0733
14 changed files with 88 additions and 58 deletions

View File

@ -1,3 +1,5 @@
#mep_event_date_sch li a{display: -webkit-flex;display: flex;-webkit-flex-direction: column;flex-direction: column;color:inherit;}
.mep-hidden { .mep-hidden {
display: none !important; display: none !important;
} }
@ -355,7 +357,7 @@ span.mep_warning {
} }
ul#mep_event_date_sch li span { ul#mep_event_date_sch li span {
display: inline; display: -webkit-flex;display: flex;
font-size: 13px; font-size: 13px;
} }

View File

@ -130,8 +130,6 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
$ticket_type_arr = $cart_item['event_ticket_info']; $ticket_type_arr = $cart_item['event_ticket_info'];
$event_extra_service = $cart_item['event_extra_service']; $event_extra_service = $cart_item['event_extra_service'];
$event_recurring_date = $cart_item['event_recurring_date']; $event_recurring_date = $cart_item['event_recurring_date'];
$event_label = mep_get_option('mep_event_label', 'general_setting_sec', 'Events');
$recurring = get_post_meta($eid, 'mep_enable_recurring', true) ? get_post_meta($eid, 'mep_enable_recurring', true) : 'no'; $recurring = get_post_meta($eid, 'mep_enable_recurring', true) ? get_post_meta($eid, 'mep_enable_recurring', true) : 'no';
$time_status = get_post_meta($eid, 'mep_disable_ticket_time', true) ? get_post_meta($eid, 'mep_disable_ticket_time', true) : 'no'; $time_status = get_post_meta($eid, 'mep_disable_ticket_time', true) ? get_post_meta($eid, 'mep_disable_ticket_time', true) : 'no';
@ -145,8 +143,7 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
foreach ($ticket_type_arr as $_event_recurring_date) { foreach ($ticket_type_arr as $_event_recurring_date) {
if ($hide_date_status == 'no') { if ($hide_date_status == 'no') {
?> ?>
<li><?php echo esc_html($event_label); <li><?php esc_html_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_html(get_mep_datetime($_event_recurring_date['event_date'], 'date-time-text')); ?></li>
esc_html_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_html(get_mep_datetime($_event_recurring_date['event_date'], 'date-time-text')); ?></li>
<?php <?php
} }
} }
@ -163,8 +160,7 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
foreach ($ticket_type_arr as $_event_recurring_date) { foreach ($ticket_type_arr as $_event_recurring_date) {
if ($hide_date_status == 'no') { if ($hide_date_status == 'no') {
?> ?>
<li><?php echo esc_html($event_label); <li><?php esc_html_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_html(get_mep_datetime($_event_recurring_date['event_date'], 'date-time-text')); ?></li>
esc_html_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_html(get_mep_datetime($_event_recurring_date['event_date'], 'date-time-text')); ?></li>
<?php <?php
} }
} }
@ -182,8 +178,7 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
foreach ($ticket_type_arr as $_event_recurring_date) { foreach ($ticket_type_arr as $_event_recurring_date) {
if ($hide_date_status == 'no') { if ($hide_date_status == 'no') {
?> ?>
<li><?php echo esc_html($event_label); <li><?php esc_html_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_html(get_mep_datetime($_event_recurring_date['event_date'], 'date-text')); ?></li>
esc_html_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_html(get_mep_datetime($_event_recurring_date['event_date'], 'date-text')); ?></li>
<?php <?php
} }
} }
@ -202,16 +197,14 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
} else { } else {
if ($hide_date_status == 'no') { if ($hide_date_status == 'no') {
?> ?>
<li><?php echo esc_html($event_label); <li><?php esc_html_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_html(get_mep_datetime($cart_item['event_cart_display_date'], 'date-time-text')); ?></li>
esc_html_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_html(get_mep_datetime($cart_item['event_cart_display_date'], 'date-time-text')); ?></li>
<?php <?php
} }
} }
} }
if ($hide_location_status == 'no') { if ($hide_location_status == 'no') {
?> ?>
<li><?php echo esc_html($event_label); <li><?php esc_html_e(" Location", 'mage-eventpress'); ?>: <?php echo esc_html($cart_item['event_cart_location']); ?></li>
esc_html_e(" Location", 'mage-eventpress'); ?>: <?php echo esc_html($cart_item['event_cart_location']); ?></li>
<?php <?php
} }
if (is_array($ticket_type_arr) && sizeof($ticket_type_arr) > 0) { if (is_array($ticket_type_arr) && sizeof($ticket_type_arr) > 0) {

View File

@ -2861,16 +2861,25 @@ if (!function_exists('get_event_list_js')) {
}); });
if (input < children) { if (input < children) {
jQuery('#dadainfo_<?php echo esc_attr($count); ?>').empty(); let target=jQuery('#dadainfo_<?php echo esc_attr($count); ?>');
children = 0; while (input < children) {
} target.children().last().remove();
children--;
}
} else {
for (let i = children + 1; i <= input; i++) {
for (var i = children + 1; i <= input; i++) { let target=jQuery(this).closest('tr').next().find('[name="mp_form_builder_same_attendee"]');
jQuery('#dadainfo_<?php echo esc_attr($count); ?>').append( if (target.is(":checked")) {
jQuery('<div/>') jQuery('#dadainfo_<?php echo esc_attr($count); ?>').append(
.attr("id", "newDiv" + i) jQuery('<div/>').attr("id", "newDiv" + i).html("<?php do_action('mep_reg_fields', $id); ?>").css('display','none')
.html("<?php do_action("mep_reg_fields", $id); ?>") );
); }else{
jQuery('#dadainfo_<?php echo esc_attr($count); ?>').append(
jQuery('<div/>').attr("id", "newDiv" + i).html("<?php do_action('mep_reg_fields', $id); ?>")
);
}
}
} }
}); });
<?php <?php
@ -3574,15 +3583,25 @@ if (!function_exists('mep_single_page_js_script')) {
}); });
}); });
if (input < children) { if (input < children) {
jQuery('#dadainfo_<?php echo esc_attr($count); ?>').empty(); let target=jQuery('#dadainfo_<?php echo esc_attr($count); ?>');
children = 0; while (input < children) {
} target.children().last().remove();
for (var i = children + 1; i <= input; i++) { children--;
jQuery('#dadainfo_<?php echo esc_attr($count); ?>').append( }
jQuery('<div/>') } else {
.attr("id", "newDiv" + i) for (var i = children + 1; i <= input; i++) {
.html("<?php do_action('mep_reg_fields', $event_start_date, $event_id, $ticket_type); ?>")
); let target=jQuery(this).closest('tr').next().find('[name="mp_form_builder_same_attendee"]');
if (target.is(":checked")) {
jQuery('#dadainfo_<?php echo esc_attr($count); ?>').append(
jQuery('<div/>').attr("id", "newDiv" + i).html("<?php do_action('mep_reg_fields', $event_start_date, $event_id, $ticket_type); ?>").css('display','none')
);
}else{
jQuery('#dadainfo_<?php echo esc_attr($count); ?>').append(
jQuery('<div/>').attr("id", "newDiv" + i).html("<?php do_action('mep_reg_fields', $event_start_date, $event_id, $ticket_type); ?>")
);
}
}
} }
}); });
<?php <?php
@ -4439,6 +4458,7 @@ if (!function_exists('mep_event_list_date_schedule')) {
if (strtotime(current_time('Y-m-d H:i')) < strtotime($_more_date['event_more_start_date'] . ' ' . $_more_date['event_more_start_time'])) { if (strtotime(current_time('Y-m-d H:i')) < strtotime($_more_date['event_more_start_date'] . ' ' . $_more_date['event_more_start_time'])) {
?> ?>
<li> <li>
<a href="<?php echo get_the_permalink($event_id).esc_attr('?date=' . strtotime($start_datetime)); ?>">
<span class='mep-more-date'> <span class='mep-more-date'>
<i class="fa fa-calendar"></i> <i class="fa fa-calendar"></i>
<?php echo get_mep_datetime($_more_date['event_more_start_date'] . ' ' . $_more_date['event_more_start_time'], 'date-text'); ?> <?php echo get_mep_datetime($_more_date['event_more_start_date'] . ' ' . $_more_date['event_more_start_time'], 'date-text'); ?>
@ -4452,6 +4472,7 @@ if (!function_exists('mep_event_list_date_schedule')) {
?> ?>
</span> </span>
</a>
</li> </li>
<?php <?php
} }

View File

@ -381,9 +381,9 @@ function mep_event_add_to_cart_section($atts, $content = null)
{ {
$defaults = array( $defaults = array(
"event" => "0", "event" => "0",
"cart-btn-label" => "Register For This Event", "cart-btn-label" => __( 'Register For This Event', 'mage-eventpress' ),
"ticket-label" => "Ticket Type", "ticket-label" => __( 'Ticket Type', 'mage-eventpress' ),
"extra-service-label" => "Extra Service" "extra-service-label" => __( 'Extra Service', 'mage-eventpress' )
); );
$params = shortcode_atts($defaults, $atts); $params = shortcode_atts($defaults, $atts);
$event = $params['event']; $event = $params['event'];

View File

@ -157,7 +157,7 @@ if (!function_exists('mep_get_event_reg_btn')) {
<td align="right"> <td align="right">
<?php do_action('mep_before_add_cart_btn',$post_id); ?> <?php do_action('mep_before_add_cart_btn',$post_id); ?>
<input type="hidden" name="mep_event_location_cart" value="<?php trim(mep_ev_location_ticket($post_id, $event_meta)); ?>"> <input type="hidden" name="mep_event_location_cart" value="<?php trim(mep_ev_location_ticket($post_id, $event_meta)); ?>">
<input type="hidden" name="mep_event_date_cart" value="<?php do_action('mep_event_date'); ?>"> <input type="hidden" name="mep_event_date_cart" value="<?php //do_action('mep_event_date'); ?>">
<?php if($not_in_the_cart){ ?> <?php if($not_in_the_cart){ ?>
<button type="submit" name="add-to-cart" value="<?php echo esc_attr($cart_product_id); ?>" class="button-default woocommerce button alt button alt btn-mep-event-cart"><?php echo esc_html($cart_btn_label); ?></button> <button type="submit" name="add-to-cart" value="<?php echo esc_attr($cart_product_id); ?>" class="button-default woocommerce button alt button alt btn-mep-event-cart"><?php echo esc_html($cart_btn_label); ?></button>
<?php }else{ <?php }else{
@ -320,7 +320,7 @@ if (!function_exists('mep_get_event_reg_btn_list')) {
</td> </td>
<td align="right" class='mep-event-cart-btn-sec'> <td align="right" class='mep-event-cart-btn-sec'>
<input type="hidden" name="mep_event_location_cart" value="<?php trim(mep_ev_location_ticket($post_id, $event_meta)); ?>"> <input type="hidden" name="mep_event_location_cart" value="<?php trim(mep_ev_location_ticket($post_id, $event_meta)); ?>">
<input type="hidden" name="mep_event_date_cart" value="<?php do_action('mep_event_date'); ?>"> <input type="hidden" name="mep_event_date_cart" value="<?php //do_action('mep_event_date'); ?>">
<?php if($not_in_the_cart){ ?> <?php if($not_in_the_cart){ ?>
<button type="submit" name="add-to-cart" value="<?php echo esc_html($cart_product_id); ?>" class="button-default woocommerce button alt button alt btn-mep-event-cart"><?php esc_html_e(mep_get_label($post_id, 'mep_cart_btn_text', 'Register This Event'), 'mage-eventpress'); ?></button> <button type="submit" name="add-to-cart" value="<?php echo esc_html($cart_product_id); ?>" class="button-default woocommerce button alt button alt btn-mep-event-cart"><?php esc_html_e(mep_get_label($post_id, 'mep_cart_btn_text', 'Register This Event'), 'mage-eventpress'); ?></button>
<?php }else{ ?> <?php }else{ ?>

View File

@ -80,5 +80,8 @@
} }
}); });
}); });
$(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, ''));
});
}(jQuery)); }(jQuery));

View File

@ -1,9 +1,9 @@
=== Event Manager for WooCommerce === === Event Manager and Ticketing System for WooCommerce ===
Contributors: magepeopleteam, aamahin Contributors: magepeopleteam, aamahin
Tags: event, woocomerce events manager, events manager, Wordpress Events plugin, Events plugin, wp events Tags: event, woocomerce events manager, events manager, Wordpress Events plugin, Events plugin, wp events
Requires at least: 5.3 Requires at least: 5.3
Stable tag: 3.5.4 Stable tag: 3.5.5
Version: 2.1.3 Version: 3.5.5
Tested up to: 5.8.1 Tested up to: 5.8.1
WC requires at least: 3.0 WC requires at least: 3.0
WC tested up to: 5.8 WC tested up to: 5.8
@ -34,8 +34,8 @@ Event Manager for WooCommerce Plugin- is one of the best and simple event manage
➡ Multiple Event Templates (You can select a different template for each event) ➡ Multiple Event Templates (You can select a different template for each event)
➡ Works with Any Standards Compliant WordPress Theme. ➡ Works with Any Standards Compliant WordPress Theme.
➡ WooCommerce Support, You can Sell product and Event Separately. There is no mixing with Event with the WooCommerce Products. ➡ WooCommerce Support, You can Sell product and Event Separately. There is no mixing with Event with the WooCommerce Products.
➡ [View Live Demo For Business](https://vaincode.com/event-demo/) ➡ [View Live Demo For Business Event](https://vaincode.com/event-demo/)
➡ [View Live Demo For Cooking](https://vaincode.com/event-demo/home-cooking/) ➡ [View Live Demo For Cooking Class](https://vaincode.com/event-demo/home-cooking/)
➡ [View Live Demo For Indoor Games](https://vaincode.com/event-demo/home-indoor-games/) ➡ [View Live Demo For Indoor Games](https://vaincode.com/event-demo/home-indoor-games/)
### [Pro Version](https://mage-people.com/product/mage-woo-event-booking-manager-pro/) Plugin Features ### [Pro Version](https://mage-people.com/product/mage-woo-event-booking-manager-pro/) Plugin Features
@ -57,8 +57,8 @@ Event Manager for WooCommerce Plugin- is one of the best and simple event manage
➡ Related Events Addon - You can select related event and display to event details page. ➡ Related Events Addon - You can select related event and display to event details page.
➡ [View Live Demo For Business](https://vaincode.com/event-demo/) ➡ [View Live Demo For Business Event](https://vaincode.com/event-demo/)
➡ [View Live Demo For Cooking](https://vaincode.com/event-demo/home-cooking/) ➡ [View Live Demo For Cooking Class](https://vaincode.com/event-demo/home-cooking/)
➡ [View Live Demo For Indoor Games](https://vaincode.com/event-demo/home-indoor-games/) ➡ [View Live Demo For Indoor Games](https://vaincode.com/event-demo/home-indoor-games/)
👉 [Plugin Documentation](https://docs.mage-people.com/woocommerce-event-manager/) 👉 [Plugin Documentation](https://docs.mage-people.com/woocommerce-event-manager/)
@ -790,4 +790,13 @@ Mobile Responsive issue fixed
Security issue fixed Security issue fixed
Style Issue fixed Style Issue fixed
Bug Fixed Bug Fixed
11 Nov 2021* 11 Nov 2021*
= 3.5.5=
* Update Release:
Email Text HTML tag issue fixed
Translation Issue fixed
Event List Image Quality issue fixed
Style Issue fixed
Bug Fixed
24 Nov 2021*

View File

@ -485,10 +485,10 @@ class MEPAddToCartSectionWidget extends Widget_Base {
global $post; global $post;
$settings = $this->get_settings_for_display(); $settings = $this->get_settings_for_display();
$user_select_event = $settings['mep_event_list'] > 0 ? esc_attr($settings['mep_event_list']) : 0; $user_select_event = $settings['mep_event_list'] > 0 ? esc_attr($settings['mep_event_list']) : 0;
$ticket_table = $settings['mep_ticket_label'] ? esc_attr($settings['mep_ticket_label']) : 'Ticket Type:'; $ticket_table = $settings['mep_ticket_label'] ? esc_attr($settings['mep_ticket_label']) : __( 'Ticket Type:', 'mage-eventpress' );
$cart_label = $settings['mep_cart_btn_label'] ? esc_attr($settings['mep_cart_btn_label']) : 'Register For This Event'; $cart_label = $settings['mep_cart_btn_label'] ? esc_attr($settings['mep_cart_btn_label']) : __( 'Register For This Event', 'mage-eventpress' );
$ex_service_table = $settings['mep_ex_service_label'] ? esc_attr($settings['mep_ex_service_label']) : 'Extra Service:'; $ex_service_table = $settings['mep_ex_service_label'] ? esc_attr($settings['mep_ex_service_label']) : __( 'Extra Service:', 'mage-eventpress' );
$event_id = $user_select_event > 0 ? $user_select_event : $post->ID; $event_id = $user_select_event > 0 ? $user_select_event : $post->ID;
if (get_post_type($event_id) == 'mep_events') { if (get_post_type($event_id) == 'mep_events') {
?> ?>

View File

@ -13,7 +13,7 @@ $date = get_post_meta($event_id, 'event_upcoming_datetime', true);
<?php do_action('mep_event_list_loop_header', $event_id); ?> <?php do_action('mep_event_list_loop_header', $event_id); ?>
<div class="mep_list_thumb"> <div class="mep_list_thumb">
<a href="<?php echo esc_url(get_the_permalink()); ?>"> <a href="<?php echo esc_url(get_the_permalink()); ?>">
<div class="mep_bg_thumb" data-bg-image="<?php mep_get_list_thumbnail_src($event_id, 'medium'); ?>"></div> <div class="mep_bg_thumb" data-bg-image="<?php mep_get_list_thumbnail_src($event_id, 'large'); ?>"></div>
</a> </a>
<div class="mep-ev-start-date"> <div class="mep-ev-start-date">
<div class="mep-day"><?php echo esc_html(apply_filters('mep_event_list_only_day_number', $day, $event_id)); ?></div> <div class="mep-day"><?php echo esc_html(apply_filters('mep_event_list_only_day_number', $day, $event_id)); ?></div>

View File

@ -15,16 +15,16 @@ $date = get_post_meta($event_id, 'event_upcoming_datetime', true);
> >
<?php do_action('mep_event_spring_list_loop_header', $event_id); ?> <?php do_action('mep_event_spring_list_loop_header', $event_id); ?>
<div class="mep_list_date_wrapper"> <div class="mep_list_date_wrapper">
<h4 class='mep_spring_list_date'> <?php echo esc_html($start_date_format); ?></h4> <h4 class='mep_spring_list_date'> <?php echo esc_html(get_mep_datetime($start_date_format, 'date')); ?></h4>
</div> </div>
<div class="mep_list_event_details mep_list_details_col_one"> <div class="mep_list_event_details mep_list_details_col_one">
<a href="<?php the_permalink(); ?>"> <a href="<?php the_permalink(); ?>">
<span class="mep_spring_event_time"><i class="far fa-clock"></i> <?php echo esc_html($start_time_format); ?> - <?php echo esc_html($end_time_format); ?></span> <span class="mep_spring_event_time"><i class="far fa-clock"></i> <?php echo esc_html(get_mep_datetime($start_time_format, 'time')); ?> - <?php echo esc_html(get_mep_datetime($end_time_format, 'time')); ?></span>
<span class='mep_spring_event_location'><i class="fas fa-map-marker-alt"></i> <?php mep_get_event_city($event_id); ?></span> <span class='mep_spring_event_location'><i class="fas fa-map-marker-alt"></i> <?php mep_get_event_city($event_id); ?></span>
<span class="mep_spring_event_date"><i class="far fa-calendar-alt"></i> <?php echo esc_html($start_date_format); ?> - <?php echo esc_html($end_date_format); ?></span> <span class="mep_spring_event_date"><i class="far fa-calendar-alt"></i> <?php echo esc_html(get_mep_datetime($start_date_format, 'date')); ?> - <?php echo esc_html(get_mep_datetime($end_date_format, 'date')); ?></span>
</a> </a>
<?php do_action('mep_event_list_loop_footer', $event_id); ?> <?php do_action('mep_event_list_loop_footer', $event_id); ?>

View File

@ -34,9 +34,9 @@ $date = get_post_meta($event_id, 'event_upcoming_datetime', true);
</span> </span>
<a href="<?php the_permalink(); ?>"> <a href="<?php the_permalink(); ?>">
<span class="mep_winter_event_time"><i class="far fa-clock"></i> <?php echo esc_html($start_time_format); ?> - <?php echo esc_html($end_time_format); ?></span> <span class="mep_winter_event_time"><i class="far fa-clock"></i> <?php echo esc_html(get_mep_datetime($start_time_format, 'time')); ?> - <?php echo esc_html(get_mep_datetime($end_time_format, 'time')); ?></span>
<span class='mep_winter_event_location'><i class="fas fa-map-marker-alt"></i> <?php mep_get_event_city($event_id); ?></span> <span class='mep_winter_event_location'><i class="fas fa-map-marker-alt"></i> <?php mep_get_event_city($event_id); ?></span>
<span class="mep_winter_event_date"><i class="far fa-calendar-alt"></i> <?php echo esc_html($start_date_format); ?> - <?php echo esc_html($end_date_format); ?></span> <span class="mep_winter_event_date"><i class="far fa-calendar-alt"></i> <?php echo esc_html(get_mep_datetime($start_date_format, 'date')); ?> - <?php echo esc_html(get_mep_datetime($end_date_format, 'date')); ?></span>
</a> </a>
</div> </div>

View File

@ -1,4 +1,5 @@
<li> <li>
<a href="<?php echo get_the_permalink($event_id) . esc_attr('?date=' . strtotime($start_datetime)); ?>">
<span class="mep-more-date"> <span class="mep-more-date">
<i class="fa fa-calendar"></i> <i class="fa fa-calendar"></i>
<span class='mep_date_scdl_start_datetime'> <span class='mep_date_scdl_start_datetime'>
@ -17,4 +18,5 @@
</span> </span>
<?php } ?> <?php } ?>
</span> </span>
</a>
</li> </li>

View File

@ -84,7 +84,7 @@ $event_label = mep_get_option('mep_event_label', 'general_setting
<?php do_action('mep_add_to_cart',get_the_id()) ?> <?php do_action('mep_add_to_cart',get_the_id()) ?>
</div> </div>
<div class="mep-default-feature-content"> <div class="mep-default-feature-content">
<h4 class="mep-cart-table-title"><?php esc_html_e("About The $event_label", 'mage-eventpress'); ?></h4> <h4 class="mep-cart-table-title"><?php esc_html_e("About The", 'mage-eventpress'); echo esc_html($event_label); ?></h4>
<?php do_action('mep_event_details'); ?> <?php do_action('mep_event_details'); ?>
</div> </div>
<div class="mep-default-sidrbar-map"> <div class="mep-default-sidrbar-map">

View File

@ -1,9 +1,9 @@
<?php <?php
/** /**
* Plugin Name: Event Manager for WooCommerce * Plugin Name: Event Manager and Ticketing System for WooCommerce
* Plugin URI: http://mage-people.com * Plugin URI: http://mage-people.com
* Description: A Complete Event Solution for WordPress by MagePeople.. * Description: A Complete Event Solution for WordPress by MagePeople..
* Version: 3.5.4 * Version: 3.5.5
* Author: MagePeople Team * Author: MagePeople Team
* Author URI: http://www.mage-people.com/ * Author URI: http://www.mage-people.com/
* Text Domain: mage-eventpress * Text Domain: mage-eventpress