v 3.5.1 released
This commit is contained in:
parent
f5eefdad3d
commit
3d205d73e0
|
@ -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,
|
||||
|
|
|
@ -1044,7 +1044,6 @@ echo '</ul></div>';
|
|||
<script>
|
||||
(function($) {
|
||||
'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');
|
||||
|
@ -1056,11 +1055,11 @@ echo '</ul></div>';
|
|||
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
|
||||
|
||||
},
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -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')));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,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_nopriv_mep_import_ajax_template', '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']);
|
||||
$type = sanitize_text_field($_REQUEST['type']);
|
||||
$editor = sanitize_text_field($_REQUEST['editor']);
|
||||
|
@ -4378,6 +4383,7 @@ function mep_import_ajax_template(){
|
|||
update_option('mep_import_template_'.$name_slug, $increase_count);
|
||||
echo '<h5 class="mep-msg mep-msg-success">The Template: '.$name.' Imported Successfully</h5>';
|
||||
}
|
||||
}
|
||||
die();
|
||||
}
|
||||
|
||||
|
|
|
@ -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); ?>
|
||||
|
|
|
@ -762,3 +762,11 @@ New Features & Settings added
|
|||
Bug Fixed
|
||||
Hook Added
|
||||
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*
|
|
@ -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">
|
||||
|
@ -72,6 +74,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
</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()); ?>
|
||||
|
@ -113,5 +116,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
<div class="mep-default-feature-faq-sec">
|
||||
<?php do_action('mep_event_faq',get_the_id()); ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue