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-list-footer ul li i{-webkit-border-radius: 50%;border-radius: 50%;}
#mep_add_calender_button.mep-add-calender, #mep_add_calender_button.mep-add-calender,
ul#mep_add_calender_links li a{-webkit-border-radius: 50px;border-radius: 50px;} 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 h2,
.mep-events-wrapper h3, .mep-events-wrapper h3,
.mep-events-wrapper h4, .mep-events-wrapper h4,

View File

@ -1044,7 +1044,6 @@ echo '</ul></div>';
<script> <script>
(function($) { (function($) {
'use strict'; 'use strict';
jQuery('.import_template').on('click', function() { 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 .')) { 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 file = jQuery(this).data('file');
@ -1052,15 +1051,15 @@ echo '</ul></div>';
var editor = jQuery(this).data('editor'); var editor = jQuery(this).data('editor');
var name = jQuery(this).data('name'); var name = jQuery(this).data('name');
jQuery.ajax({ jQuery.ajax({
type: 'POST', type : 'POST',
url: ajaxurl, url : ajaxurl,
data: { data : {
"action" : "mep_import_ajax_template", "action" : "mep_import_ajax_template",
"nonce" : '<?php echo wp_create_nonce('mep-ajax-import-template-nonce'); ?>',
"file" : file, "file" : file,
"editor" : editor, "editor" : editor,
"name" : name, "name" : name,
"type" : type "type" : type
}, },
beforeSend: function() { beforeSend: function() {
jQuery('.mep_licensae_info').html('<h5 class="mep-msg mep-msg-process">Please wait.. Importing Template..</h5>'); 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(); window.location.reload();
} }
}); });
} else { } else {
return false; 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('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_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('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) { foreach ($ticket_type_arr as $_event_recurring_date) {
if($hide_date_status == 'no'){ 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 <?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_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(){ function mep_wl_ajax_license_activate(){
if ( wp_verify_nonce( $_POST['nonce'], 'mep-ajax-license-activation-nonce' ) ) {
$nonce = sanitize_text_field($_REQUEST['nonce']); $nonce = sanitize_text_field($_REQUEST['nonce']);
$license = sanitize_text_field($_REQUEST['key']); $license = sanitize_text_field($_REQUEST['key']);
$key_option_name = sanitize_text_field($_REQUEST['key_option_name']); $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']); $item_id = sanitize_text_field($_REQUEST['item_id']);
$user_type = isset($_REQUEST['user_type']) ? sanitize_text_field($_REQUEST['user_type']) : 'new'; $user_type = isset($_REQUEST['user_type']) ? sanitize_text_field($_REQUEST['user_type']) : 'new';
$plugin_user_status_type = $key_option_name.'_type'; $plugin_user_status_type = $key_option_name.'_type';
// data to send in our API request // data to send in our API request
$api_params = array( $api_params = array(
'edd_action' => 'activate_license', 'edd_action' => 'activate_license',
@ -4173,7 +4172,6 @@ function mep_wl_ajax_license_activate(){
'item_id' => $item_id, 'item_id' => $item_id,
'url' => home_url() 'url' => home_url()
); );
// Call the custom API. // Call the custom API.
$response = wp_remote_post(MEP_STORE_URL, array('timeout' => 15, 'sslverify' => false, 'body' => $api_params)); $response = wp_remote_post(MEP_STORE_URL, array('timeout' => 15, 'sslverify' => false, 'body' => $api_params));
$license_data = json_decode(wp_remote_retrieve_body($response)); $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($order_id_option_name, '');
} }
update_option($status_option_name, $license_data->license); update_option($status_option_name, $license_data->license);
}else{
_e('Something went wrong, Please Contact with support','mep-eventpress');
}
die(); die();
} }
@ -4210,8 +4211,8 @@ die();
add_action('wp_ajax_mep_wl_ajax_license_deactivate', 'mep_wl_ajax_license_deactivate'); 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(){ 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']); $key_option_name = sanitize_text_field($_REQUEST['key_option_name']);
$status_option_name = sanitize_text_field($_REQUEST['status_option_name']); $status_option_name = sanitize_text_field($_REQUEST['status_option_name']);
$expire_option_name = sanitize_text_field($_REQUEST['expire_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($expire_option_name, '');
update_option($order_id_option_name, ''); update_option($order_id_option_name, '');
update_option($status_option_name, 'invalid'); update_option($status_option_name, 'invalid');
}else{
_e('Something went wrong, Please Contact with support','mep-eventpress');
}
die(); die();
} }
@ -4363,8 +4367,9 @@ function mep_import_elementor_template( $filepath ) {
add_action('wp_ajax_mep_import_ajax_template', 'mep_import_ajax_template'); 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(){ function mep_import_ajax_template(){
if ( wp_verify_nonce( $_POST['nonce'], 'mep-ajax-import-template-nonce' ) ) {
$file = esc_url($_REQUEST['file']); $file = esc_url($_REQUEST['file']);
$type = sanitize_text_field($_REQUEST['type']); $type = sanitize_text_field($_REQUEST['type']);
$editor = sanitize_text_field($_REQUEST['editor']); $editor = sanitize_text_field($_REQUEST['editor']);
@ -4378,6 +4383,7 @@ function mep_import_ajax_template(){
update_option('mep_import_template_'.$name_slug, $increase_count); update_option('mep_import_template_'.$name_slug, $increase_count);
echo '<h5 class="mep-msg mep-msg-success">The Template: '.$name.' Imported Successfully</h5>'; echo '<h5 class="mep-msg mep-msg-success">The Template: '.$name.' Imported Successfully</h5>';
} }
}
die(); 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> <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{ <?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
} ?> } ?>
<?php do_action('mep_after_add_cart_btn',$post_id); ?> <?php do_action('mep_after_add_cart_btn',$post_id); ?>

View File

@ -762,3 +762,11 @@ New Features & Settings added
Bug Fixed Bug Fixed
Hook Added 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_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'); $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'); $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-theme mep_flex vanilla_theme">
<div class="mep-default-content"> <div class="mep-default-content">
<div class="mep-default-feature-image"> <div class="mep-default-feature-image">
@ -29,7 +31,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
<h3> <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'); ?> <?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> </h3>
<?php do_action('mep_event_date_only', get_the_id()); ?> <?php do_action('mep_event_date_only',get_the_id()); ?>
</div> </div>
</div> </div>
<?php } <?php }
@ -40,7 +42,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
<h3> <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'); ?> <?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> </h3>
<?php do_action('mep_event_time_only', get_the_id()); ?> <?php do_action('mep_event_time_only',get_the_id()); ?>
</div> </div>
</div> </div>
<?php } <?php }
@ -70,11 +72,12 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
<h3> <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'); ?> <?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> </h3>
<?php do_action('mep_event_map', get_the_id()); ?> <?php do_action('mep_event_map',get_the_id()); ?>
</div> </div>
<?php if ($hide_calendar_details == 'no') { ?> <?php if ($hide_calendar_details == 'no') { ?>
<div class="mep-default-sidrbar-calender-btn"> <div class="mep-default-sidrbar-calender-btn">
<?php do_action('mep_event_add_calender', get_the_id()); ?> <?php do_action('mep_event_add_calender',get_the_id()); ?>
</div> </div>
<?php } ?> <?php } ?>
</div> </div>
@ -88,7 +91,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
if ($hide_schedule_details == 'no') { ?> if ($hide_schedule_details == 'no') { ?>
<div class="mep-default-sidrbar-events-schedule"> <div class="mep-default-sidrbar-events-schedule">
<?php do_action('mep_event_date_default_theme', get_the_id()); ?> <?php do_action('mep_event_date_default_theme',get_the_id()); ?>
</div> </div>
<?php } ?> <?php } ?>
@ -111,7 +114,9 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
</div> </div>
<?php } ?> <?php } ?>
<div class="mep-default-feature-faq-sec"> <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> </div>
</div> </div>

View File

@ -3,7 +3,7 @@
* Plugin Name: Woocommerce Events Manager * Plugin Name: Woocommerce Events Manager
* 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.0 * Version: 3.5.1
* 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