v 3.5.1 released

This commit is contained in:
magepeopleteam 2021-09-26 09:42:42 +00:00
parent f5eefdad3d
commit 3d205d73e0
9 changed files with 97 additions and 78 deletions

View File

@ -86,7 +86,9 @@ ul.mep-social-share a,
.mep-list-footer ul li i{-webkit-border-radius: 50%;border-radius: 50%;}
#mep_add_calender_button.mep-add-calender,
ul#mep_add_calender_links li a{-webkit-border-radius: 50px;border-radius: 50px;}
.mep-events-wrapper.wrapper {
margin: 20px auto;
}
.mep-events-wrapper h2,
.mep-events-wrapper h3,
.mep-events-wrapper h4,

View File

@ -1043,24 +1043,23 @@ echo '</ul></div>';
<script>
(function($) {
'use strict';
'use strict';
jQuery('.import_template').on('click', function() {
if (confirm('Are You Sure to Import this Template ? \n\n 1. Ok : To Import . \n 2. Cancel : To Cancel .')) {
var file = jQuery(this).data('file');
var type = jQuery(this).data('type');
var editor = jQuery(this).data('editor');
var name = jQuery(this).data('name');
var name = jQuery(this).data('name');
jQuery.ajax({
type: 'POST',
url: ajaxurl,
data: {
type : 'POST',
url : ajaxurl,
data : {
"action" : "mep_import_ajax_template",
"nonce" : '<?php echo wp_create_nonce('mep-ajax-import-template-nonce'); ?>',
"file" : file,
"editor" : editor,
"name" : name,
"type" : type
"name" : name,
"type" : type
},
beforeSend: function() {
jQuery('.mep_licensae_info').html('<h5 class="mep-msg mep-msg-process">Please wait.. Importing Template..</h5>');
@ -1070,8 +1069,6 @@ echo '</ul></div>';
window.location.reload();
}
});
} else {
return false;
}

View File

@ -56,6 +56,7 @@ function mep_add_admin_scripts($hook)
wp_enqueue_script('codemirror', plugin_dir_url(__DIR__) . 'js/codemirror.min.js', array('jquery'), null, false);
wp_enqueue_script('form-field-dependency', plugins_url('js/form-field-dependency.js', __DIR__), array('jquery'), null, false);
wp_localize_script('jquery', 'mep_ajax', array( 'mep_ajaxurl' => admin_url( 'admin-ajax.php')));
wp_localize_script('mep_ajax', 'mep_ajax_var', array( 'url' => admin_url('admin-ajax.php'), 'nonce' => wp_create_nonce('mep-ajax-nonce')));
}
/**

View File

@ -153,7 +153,7 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
foreach ($ticket_type_arr as $_event_recurring_date) {
if($hide_date_status == 'no'){
?>
<li><?php echo $event_label; _e(" Date", 'mage-eventpress'); ?>: <?php echo get_mep_datetime($_event_recurring_date['event_date'].' '.$start_time,'date-time-text'); ?></li>
<li><?php echo $event_label; _e(" Date", 'mage-eventpress'); ?>: <?php echo get_mep_datetime($_event_recurring_date['event_date'],'date-time-text'); ?></li>
<?php
}
}

View File

@ -4149,9 +4149,10 @@ function mep_get_event_upcoming_date($event_id){
add_action('wp_ajax_mep_wl_ajax_license_activate', 'mep_wl_ajax_license_activate');
add_action('wp_ajax_nopriv_mep_wl_ajax_license_activate', 'mep_wl_ajax_license_activate');
function mep_wl_ajax_license_activate(){
if ( wp_verify_nonce( $_POST['nonce'], 'mep-ajax-license-activation-nonce' ) ) {
$nonce = sanitize_text_field($_REQUEST['nonce']);
$license = sanitize_text_field($_REQUEST['key']);
$key_option_name = sanitize_text_field($_REQUEST['key_option_name']);
@ -4162,10 +4163,8 @@ function mep_wl_ajax_license_activate(){
$item_id = sanitize_text_field($_REQUEST['item_id']);
$user_type = isset($_REQUEST['user_type']) ? sanitize_text_field($_REQUEST['user_type']) : 'new';
$plugin_user_status_type = $key_option_name.'_type';
// data to send in our API request
$api_params = array(
'edd_action' => 'activate_license',
@ -4173,7 +4172,6 @@ function mep_wl_ajax_license_activate(){
'item_id' => $item_id,
'url' => home_url()
);
// Call the custom API.
$response = wp_remote_post(MEP_STORE_URL, array('timeout' => 15, 'sslverify' => false, 'body' => $api_params));
$license_data = json_decode(wp_remote_retrieve_body($response));
@ -4202,6 +4200,9 @@ function mep_wl_ajax_license_activate(){
update_option($order_id_option_name, '');
}
update_option($status_option_name, $license_data->license);
}else{
_e('Something went wrong, Please Contact with support','mep-eventpress');
}
die();
}
@ -4210,8 +4211,8 @@ die();
add_action('wp_ajax_mep_wl_ajax_license_deactivate', 'mep_wl_ajax_license_deactivate');
add_action('wp_ajax_nopriv_mep_wl_ajax_license_deactivate', 'mep_wl_ajax_license_deactivate');
function mep_wl_ajax_license_deactivate(){
if ( wp_verify_nonce( $_POST['nonce'], 'mep-ajax-license-deactivation-nonce' ) ) {
$key_option_name = sanitize_text_field($_REQUEST['key_option_name']);
$status_option_name = sanitize_text_field($_REQUEST['status_option_name']);
$expire_option_name = sanitize_text_field($_REQUEST['expire_option_name']);
@ -4223,6 +4224,9 @@ function mep_wl_ajax_license_deactivate(){
update_option($expire_option_name, '');
update_option($order_id_option_name, '');
update_option($status_option_name, 'invalid');
}else{
_e('Something went wrong, Please Contact with support','mep-eventpress');
}
die();
}
@ -4363,20 +4367,22 @@ function mep_import_elementor_template( $filepath ) {
add_action('wp_ajax_mep_import_ajax_template', 'mep_import_ajax_template');
add_action('wp_ajax_nopriv_mep_import_ajax_template', 'mep_import_ajax_template');
function mep_import_ajax_template(){
$file = esc_url($_REQUEST['file']);
$type = sanitize_text_field($_REQUEST['type']);
$editor = sanitize_text_field($_REQUEST['editor']);
$name = sanitize_text_field($_REQUEST['name']);
$name_slug = sanitize_title($name);
$count_import = get_option('mep_import_template_'.$name_slug) ? get_option('mep_import_template_'.$name_slug) : 0;
$increase_count = $count_import +1;
if($editor == 'elm'){
mep_import_elementor_template($file);
if ( wp_verify_nonce( $_POST['nonce'], 'mep-ajax-import-template-nonce' ) ) {
$file = esc_url($_REQUEST['file']);
$type = sanitize_text_field($_REQUEST['type']);
$editor = sanitize_text_field($_REQUEST['editor']);
$name = sanitize_text_field($_REQUEST['name']);
$name_slug = sanitize_title($name);
$count_import = get_option('mep_import_template_'.$name_slug) ? get_option('mep_import_template_'.$name_slug) : 0;
$increase_count = $count_import +1;
update_option('mep_import_template_'.$name_slug, $increase_count);
echo '<h5 class="mep-msg mep-msg-success">The Template: '.$name.' Imported Successfully</h5>';
if($editor == 'elm'){
mep_import_elementor_template($file);
$increase_count = $count_import +1;
update_option('mep_import_template_'.$name_slug, $increase_count);
echo '<h5 class="mep-msg mep-msg-success">The Template: '.$name.' Imported Successfully</h5>';
}
}
die();
}

View File

@ -162,8 +162,8 @@ if (!function_exists('mep_get_event_reg_btn')) {
<button type="submit" name="add-to-cart" value="<?php echo $cart_product_id; ?>" class="single_add_to_cart_button button alt btn-mep-event-cart"><?php echo $cart_btn_label; ?></button>
<?php }else{
?>
<!--<button disabled class="single_add_to_cart_button button alt btn-mep-event-cart"><?php _e('Already Added into Cart!', 'mage-eventpress'); ?> </button>-->
<button onclick="location.href='<?php echo wc_get_cart_url(); ?>';" class="single_add_to_cart_button button alt btn-mep-event-cart"><?php _e('Already Added into Cart!', 'mage-eventpress'); ?> </button>
<button onclick="location.href='<?php echo wc_get_cart_url(); ?>';" class="single_add_to_cart_button button alt btn-mep-event-cart"><?php _e('Already Added into Cart! View Cart', 'mage-eventpress'); ?> </button>
<?php
} ?>
<?php do_action('mep_after_add_cart_btn',$post_id); ?>

View File

@ -761,4 +761,12 @@ PHP 8 Supported
New Features & Settings added
Bug Fixed
Hook Added
20 Sep 2021*
20 Sep 2021*
= 3.5.1=
* Update Release:
Event Date not showing in cart issue fixed
Security issue fixed
Style Issue fixed
Bug Fixed
26 Sep 2021*

View File

@ -12,7 +12,9 @@ $hide_schedule_details = mep_get_option('mep_event_hide_event_schedule_deta
$hide_share_details = mep_get_option('mep_event_hide_share_this_details', 'general_setting_sec', 'no');
$hide_calendar_details = mep_get_option('mep_event_hide_calendar_details', 'general_setting_sec', 'no');
$speaker_status = mep_get_option('mep_enable_speaker_list', 'general_setting_sec', 'no');
?>
<div class="mep-default-theme mep_flex vanilla_theme">
<div class="mep-default-content">
<div class="mep-default-feature-image">
@ -20,7 +22,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
</div>
<div class="mep-default-title">
<?php do_action('mep_event_title'); ?>
</div>
</div>
<div class="mep-default-feature-date-location">
<?php if ($hide_date_details == 'no') { ?>
<div class="mep-default-feature-date">
@ -29,7 +31,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
<h3>
<?php echo mep_get_option('mep_event_date_text', 'label_setting_sec') ? mep_get_option('mep_event_date_text', 'label_setting_sec') : _e('Event Date:', 'mage-eventpress'); ?>
</h3>
<?php do_action('mep_event_date_only', get_the_id()); ?>
<?php do_action('mep_event_date_only',get_the_id()); ?>
</div>
</div>
<?php }
@ -40,65 +42,66 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
<h3>
<?php echo mep_get_option('mep_event_time_text', 'label_setting_sec') ? mep_get_option('mep_event_time_text', 'label_setting_sec') : _e('Event Time:', 'mage-eventpress'); ?>
</h3>
<?php do_action('mep_event_time_only', get_the_id()); ?>
<?php do_action('mep_event_time_only',get_the_id()); ?>
</div>
</div>
<?php }
if ($hide_location_details == 'no') { ?>
<div class="mep-default-feature-location">
<div class="df-ico"><i class="fas fa-map-marker-alt"></i></div>
<div class="df-ico"><i class="fas fa-map-marker-alt"></i></div>
<div class='df-dtl'>
<h3>
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : _e('Event Location:', 'mage-eventpress'); ?>
</h3>
<p>
<span><?php do_action('mep_event_location_venue'); ?></span>
<?php do_action('mep_event_location_street'); ?>
<?php do_action('mep_event_location_street'); ?>
<?php do_action('mep_event_location_city'); ?>
<?php do_action('mep_event_location_state'); ?>
<?php do_action('mep_event_location_country'); ?>
<?php do_action('mep_event_location_state'); ?>
<?php do_action('mep_event_location_country'); ?>
</p>
</div>
</div>
<?php } ?>
</div>
<div class="mep-default-col-wrapper">
<?php if ($hide_location_details == 'no') { ?>
<div class="mep-default-col-1">
<div class="mep-default-sidrbar-map">
<h3>
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : _e('Find Location On Google Map:', 'mage-eventpress'); ?>
</h3>
<?php do_action('mep_event_map', get_the_id()); ?>
</div>
<?php if ($hide_calendar_details == 'no') { ?>
<div class="mep-default-sidrbar-calender-btn">
<?php do_action('mep_event_add_calender', get_the_id()); ?>
</div>
<?php } ?>
</div>
<?php } ?>
<div class="mep-default-col-2">
<?php if ($hide_org_by_details == 'no') { ?>
<div class="mep-default-sidrbar-meta">
<i class="far fa-list-alt"></i> <?php do_action('mep_event_organizer'); ?>
</div>
<?php }
if ($hide_schedule_details == 'no') { ?>
<div class="mep-default-sidrbar-events-schedule">
<?php do_action('mep_event_date_default_theme', get_the_id()); ?>
</div>
<?php } ?>
<?php if ($hide_total_seat_details == 'no') { ?>
<div class="mep-default-sidrbar-price-seat">
<div class="df-seat"><?php do_action('mep_event_seat'); ?></div>
</div>
<?php } ?>
</div>
<div class="mep-default-col-wrapper">
<?php if ($hide_location_details == 'no') { ?>
<div class="mep-default-col-1">
<div class="mep-default-sidrbar-map">
<h3>
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : _e('Find Location On Google Map:', 'mage-eventpress'); ?>
</h3>
<?php do_action('mep_event_map',get_the_id()); ?>
</div>
<?php if ($hide_calendar_details == 'no') { ?>
<div class="mep-default-sidrbar-calender-btn">
<?php do_action('mep_event_add_calender',get_the_id()); ?>
</div>
<?php } ?>
</div>
<?php } ?>
<div class="mep-default-col-2">
<?php if ($hide_org_by_details == 'no') { ?>
<div class="mep-default-sidrbar-meta">
<i class="far fa-list-alt"></i> <?php do_action('mep_event_organizer'); ?>
</div>
<?php }
if ($hide_schedule_details == 'no') { ?>
<div class="mep-default-sidrbar-events-schedule">
<?php do_action('mep_event_date_default_theme',get_the_id()); ?>
</div>
<?php } ?>
<?php if ($hide_total_seat_details == 'no') { ?>
<div class="mep-default-sidrbar-price-seat">
<div class="df-seat"><?php do_action('mep_event_seat'); ?></div>
</div>
<?php } ?>
</div>
</div>
<div class="mep-default-feature-content">
<?php do_action('mep_event_details'); ?>
</div>
@ -111,7 +114,9 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
</div>
<?php } ?>
<div class="mep-default-feature-faq-sec">
<?php do_action('mep_event_faq', get_the_id()); ?>
<?php do_action('mep_event_faq',get_the_id()); ?>
</div>
</div>
</div>

View File

@ -3,7 +3,7 @@
* Plugin Name: Woocommerce Events Manager
* Plugin URI: http://mage-people.com
* Description: A Complete Event Solution for WordPress by MagePeople..
* Version: 3.5.0
* Version: 3.5.1
* Author: MagePeople Team
* Author URI: http://www.mage-people.com/
* Text Domain: mage-eventpress