version 3.7.9 released
This commit is contained in:
parent
e79bc13fd7
commit
275b82c408
|
@ -21,26 +21,26 @@ function mep_cpt()
|
|||
'archives' => __($event_label . ' List', 'mage-eventpress'),
|
||||
'attributes' => __($event_label . ' List', 'mage-eventpress'),
|
||||
'parent_item_colon' => __($event_label . ' Item:', 'mage-eventpress'),
|
||||
'all_items' => __('All ' . $event_label, 'mage-eventpress'),
|
||||
'add_new_item' => __('Add New ' . $event_label, 'mage-eventpress'),
|
||||
'add_new' => __('Add New ' . $event_label, 'mage-eventpress'),
|
||||
'new_item' => __('New ' . $event_label, 'mage-eventpress'),
|
||||
'edit_item' => __('Edit ' . $event_label, 'mage-eventpress'),
|
||||
'update_item' => __('Update ' . $event_label, 'mage-eventpress'),
|
||||
'view_item' => __('View ' . $event_label, 'mage-eventpress'),
|
||||
'view_items' => __('View ' . $event_label, 'mage-eventpress'),
|
||||
'search_items' => __('Search ' . $event_label, 'mage-eventpress'),
|
||||
'not_found' => __($event_label . ' Not found', 'mage-eventpress'),
|
||||
'not_found_in_trash' => __($event_label . ' Not found in Trash', 'mage-eventpress'),
|
||||
'featured_image' => __($event_label . ' Feature Image', 'mage-eventpress'),
|
||||
'set_featured_image' => __('Set ' . $event_label . ' featured image', 'mage-eventpress'),
|
||||
'remove_featured_image' => __('Remove ' . $event_label . ' featured image', 'mage-eventpress'),
|
||||
'use_featured_image' => __('Use as ' . $event_label . ' featured image', 'mage-eventpress'),
|
||||
'insert_into_item' => __('Insert into ' . $event_label, 'mage-eventpress'),
|
||||
'uploaded_to_this_item' => __('Uploaded to this ' . $event_label, 'mage-eventpress'),
|
||||
'items_list' => __($event_label . ' list', 'mage-eventpress'),
|
||||
'items_list_navigation' => __($event_label . ' list navigation', 'mage-eventpress'),
|
||||
'filter_items_list' => __('Filter ' . $event_label . ' list', 'mage-eventpress'),
|
||||
'all_items' => __('All ','mage-eventpress') . $event_label,
|
||||
'add_new_item' => __('Add New ','mage-eventpress') . $event_label,
|
||||
'add_new' => __('Add New ','mage-eventpress') . $event_label,
|
||||
'new_item' => __('New ','mage-eventpress') . $event_label,
|
||||
'edit_item' => __('Edit ','mage-eventpress') . $event_label,
|
||||
'update_item' => __('Update ','mage-eventpress') . $event_label,
|
||||
'view_item' => __('View ','mage-eventpress') . $event_label,
|
||||
'view_items' => __('View ','mage-eventpress') . $event_label,
|
||||
'search_items' => __('Search ','mage-eventpress') . $event_label,
|
||||
'not_found' => $event_label . __(' Not found', 'mage-eventpress'),
|
||||
'not_found_in_trash' => $event_label . __(' Not found in Trash', 'mage-eventpress'),
|
||||
'featured_image' => $event_label . __(' Feature Image', 'mage-eventpress'),
|
||||
'set_featured_image' => __('Set ','mage-eventpress') . $event_label . __(' featured image', 'mage-eventpress'),
|
||||
'remove_featured_image' => __('Remove ','mage-eventpress') . $event_label . __(' featured image', 'mage-eventpress'),
|
||||
'use_featured_image' => __('Use as ','mage-eventpress') . $event_label . __(' featured image', 'mage-eventpress'),
|
||||
'insert_into_item' => __('Insert into ','mage-eventpress') . $event_label,
|
||||
'uploaded_to_this_item' => __('Uploaded to this ','mage-eventpress') . $event_label,
|
||||
'items_list' => $event_label . __(' list', 'mage-eventpress'),
|
||||
'items_list_navigation' => $event_label . __(' list navigation', 'mage-eventpress'),
|
||||
'filter_items_list' => __('Filter ','mage-eventpress') . $event_label . __(' list', 'mage-eventpress'),
|
||||
);
|
||||
|
||||
$rewrite = array(
|
||||
|
|
|
@ -69,6 +69,11 @@ function mep_add_custom_fields_text_to_cart_item($cart_item_data, $product_id, $
|
|||
}
|
||||
|
||||
|
||||
// print_r($ticket_type_arr);
|
||||
// die();
|
||||
|
||||
|
||||
|
||||
$cart_item_data['event_ticket_info'] = $ticket_type_arr;
|
||||
$cart_item_data['event_validate_info'] = $validate;
|
||||
$cart_item_data['event_user_info'] = $user;
|
||||
|
|
|
@ -1287,23 +1287,23 @@ if (!function_exists('mep_get_event_status')) {
|
|||
$interval = date_diff($datetime2, $datetime1);
|
||||
|
||||
if (current_time('Y-m-d H:i:s') > $newformat) {
|
||||
return "<span class=err>Expired</span>";
|
||||
return __("<span class=err>Expired</span>","mage-eventpress");
|
||||
} else {
|
||||
$days = $interval->days;
|
||||
$hours = $interval->h;
|
||||
$minutes = $interval->i;
|
||||
if ($days > 0) {
|
||||
$dd = $days . " days ";
|
||||
$dd = $days . __(" days ","mage-eventpress");
|
||||
} else {
|
||||
$dd = "";
|
||||
}
|
||||
if ($hours > 0) {
|
||||
$hh = $hours . " hours ";
|
||||
$hh = $hours . __(" hours ","mage-eventpress");
|
||||
} else {
|
||||
$hh = "";
|
||||
}
|
||||
if ($minutes > 0) {
|
||||
$mm = $minutes . " minutes ";
|
||||
$mm = $minutes . __(" minutes ","mage-eventpress");
|
||||
} else {
|
||||
$mm = "";
|
||||
}
|
||||
|
@ -1560,6 +1560,8 @@ if (!function_exists('mep_ticket_lits_users')) {
|
|||
<td><?php echo get_post_meta(get_the_id(), 'ea_event_name', true);
|
||||
if ($virtual_info) { ?>
|
||||
<button id='mep_vr_view_btn_<?php echo get_the_id(); ?>' class='mep_view_vr_btn'><?php esc_html_e('View Virtual Info', 'mage-eventpress'); ?></button> <?php } ?>
|
||||
|
||||
<?php do_action('mep_user_order_list_table_action_col', get_the_id()); ?>
|
||||
</td>
|
||||
<?php do_action('mep_user_order_list_table_row', get_the_id()); ?>
|
||||
</tr>
|
||||
|
@ -2410,7 +2412,8 @@ if (!function_exists('mep_get_event_total_seat')) {
|
|||
|
||||
ob_start();
|
||||
if ($recurring != 'no') {
|
||||
$total = (int)$total_seat * (int)$m;
|
||||
$total_sold = $recurring == 'everyday' ? mep_get_event_total_seat_left($event_id, $event_date) : mep_get_event_total_seat_left($event_id, $upcoming_date);
|
||||
$total = $m != null ? (int)$total_seat * (int)$m : $total_seat;
|
||||
$sold = $total - ($total_sold + $total_resv);
|
||||
$available = $total - $sold;
|
||||
?>
|
||||
|
@ -4948,10 +4951,12 @@ function mep_event_tab_before_location_virtual_event($post_id){
|
|||
<span class="slider round"></span>
|
||||
</label>
|
||||
<p class="event_meta_help_txt"><?php _e('If your event is online or virtual, please ensure that this option is enabled.','mage-eventpress'); ?></p>
|
||||
<?php do_action('mep_event_details_before_virtual_event_info_text_box',$post_id); ?>
|
||||
<label class="mp_event_virtual_type_des <?php echo ($event_type == 'online') ? esc_attr('active') : ''; ?>">
|
||||
<?php wp_editor(html_entity_decode(nl2br($description)), 'mp_event_virtual_type_des'); ?>
|
||||
<p class="event_meta_help_txt"><?php esc_html_e('Please enter your virtual event joining details in the form below. This information will be sent to the buyer along with a confirmation email.', 'mage-eventpress') ?></p>
|
||||
</label>
|
||||
<?php do_action('mep_event_details_after_virtual_event_info_text_box',$post_id); ?>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function() {
|
||||
|
|
|
@ -49,8 +49,9 @@ function mep_event_calender()
|
|||
$loop->the_post();
|
||||
$event_meta = get_post_custom(get_the_id());
|
||||
$event_dates = mep_get_event_dates_arr(get_the_id());
|
||||
|
||||
$now = current_time('Y-m-d H:i:s');
|
||||
foreach ($event_dates as $_dates) {
|
||||
if(strtotime($now) < strtotime($_dates['start']) ){
|
||||
?>
|
||||
{
|
||||
start : '<?php echo date_i18n('Y-m-d H:i', strtotime($_dates['start'])); ?>',
|
||||
|
@ -63,8 +64,7 @@ foreach ($event_dates as $_dates) {
|
|||
},
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
$i++;
|
||||
|
||||
|
@ -169,8 +169,13 @@ function mep_event_list($atts, $content = null)
|
|||
echo wp_kses_post($main_div);
|
||||
echo wp_kses_post($time_line_div_start);
|
||||
while ($loop->have_posts()) {
|
||||
|
||||
$loop->the_post();
|
||||
|
||||
mep_update_event_upcoming_date(get_the_id());
|
||||
|
||||
mep_update_event_upcoming_date(get_the_id());
|
||||
|
||||
if ($style == 'grid' && (int)$column>0 && $pagination != 'carousal') {
|
||||
$columnNumber='column_style';
|
||||
$width=100/(int)$column;
|
||||
|
@ -316,6 +321,9 @@ function mep_expire_event_list($atts, $content = null)
|
|||
echo wp_kses_post($main_div);
|
||||
while ($loop->have_posts()) {
|
||||
$loop->the_post();
|
||||
|
||||
mep_update_event_upcoming_date(get_the_id());
|
||||
|
||||
if ($style == 'grid' && (int)$column>0) {
|
||||
$columnNumber='column_style';
|
||||
if($pagination == 'carousal'){
|
||||
|
|
|
@ -13,6 +13,7 @@ if (!function_exists('mep_display_event_loop_list')) {
|
|||
// event_price_label_single
|
||||
$show_price_label = $price_count == 1 ? mep_get_option('event_price_label_single', 'label_setting_sec', __('Price:','mage-eventpress')) : mep_get_option('event-price-label', 'label_setting_sec', __('Price Starts from:','mage-eventpress'));
|
||||
|
||||
|
||||
$event_meta = get_post_custom($event_id);
|
||||
$author_terms = get_the_terms($event_id, 'mep_org') ? get_the_terms($event_id, 'mep_org') : [];
|
||||
$time = strtotime($event_meta['event_start_date'][0] . ' ' . $event_meta['event_start_time'][0]);
|
||||
|
|
|
@ -59,6 +59,7 @@ if (!function_exists('mep_event_ticket_type_loop_list_html')) {
|
|||
$ticket_price = apply_filters('mep_ticket_type_price', $ticket_type_price, $ticket_type_name, $post_id, $field);
|
||||
$passed = apply_filters('mep_ticket_type_validation', true);
|
||||
$start_date = get_post_meta($post_id, 'event_start_datetime', true);
|
||||
$end_date = get_post_meta($post_id, 'event_end_datetime', true);
|
||||
$default_path = mep_template_file_path('single/ticket_type_list.php');
|
||||
$ticket_type_file_path = apply_filters('mep_ticket_type_file_path',$default_path,$post_id);
|
||||
|
||||
|
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -30,17 +30,13 @@ $event_organizer_icon = mep_get_option('mep_event_organizer_icon', 'ic
|
|||
<span><?php echo mep_get_option('mep_event_multidate_ribon_text', 'label_setting_sec', esc_html__('Multi Date Event', 'mage-eventpress')); ?></span>
|
||||
</div>
|
||||
|
||||
<?php } elseif ($recurring != 'no') {
|
||||
?>
|
||||
<?php } elseif ($recurring != 'no') { ?>
|
||||
|
||||
<div class='mep-multidate-ribbon mep-tem3-title-sec'>
|
||||
<span><?php echo mep_get_option('mep_event_recurring_ribon_text', 'label_setting_sec', esc_html__('Recurring Event', 'mage-eventpress')); ?></span>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($event_type == 'online') { ?>
|
||||
<?php } if ($event_type == 'online') { ?>
|
||||
|
||||
<div class='mep-eventtype-ribbon mep-tem3-title-sec'>
|
||||
<span><?php echo mep_get_option('mep_event_virtual_label', 'label_setting_sec') ? mep_get_option('mep_event_virtual_label', 'label_setting_sec') : esc_html__('Virtual Event', 'mage-eventpress'); ?></span>
|
||||
|
|
|
@ -8,6 +8,12 @@ $date = get_post_meta($event_id, 'event_upcoming_datetime', true);
|
|||
$event_date_icon = mep_get_option('mep_event_date_icon', 'icon_setting_sec', 'fa fa-calendar');
|
||||
$event_time_icon = mep_get_option('mep_event_time_icon', 'icon_setting_sec', 'fas fa-clock');
|
||||
$event_location_icon = mep_get_option('mep_event_location_icon', 'icon_setting_sec', 'fas fa-map-marker-alt');
|
||||
|
||||
// mep_get_event_upcomming_date($event_id, 'day');
|
||||
|
||||
|
||||
// echo get_mep_datetime(get_post_meta($event_id,'event_upcoming_datetime',true),'day');
|
||||
|
||||
?>
|
||||
<div class='filter_item mep-event-list-loop mep_event_list_item mep_event_winter_list mix <?php echo esc_attr($org_class) . ' ' . esc_attr($cat_class); ?>'
|
||||
data-title="<?php echo esc_attr(get_the_title($event_id)); ?>"
|
||||
|
@ -19,7 +25,7 @@ $event_location_icon = mep_get_option('mep_event_location_icon', 'icon_se
|
|||
<?php do_action('mep_event_winter_list_loop_header', $event_id); ?>
|
||||
<div class="mep_list_date_wrapper">
|
||||
<i class="fas fa-caret-right"></i>
|
||||
<h4 class='mep_winter_list_date'><span class="mep_winter_list_dd"><?php echo esc_html($start_dd); ?></span><span class="mep_winter_list_mm_yy"><?php echo esc_html($start_mm_yy); ?></span></h4>
|
||||
<h4 class='mep_winter_list_date'><span class="mep_winter_list_dd"><?php echo esc_html(get_mep_datetime(get_post_meta($event_id,'event_upcoming_datetime',true),'day')); ?></span><span class="mep_winter_list_mm_yy"><?php echo esc_html($start_mm_yy); ?></span></h4>
|
||||
</div>
|
||||
<div class="mep_list_winter_thumb_wrapper">
|
||||
<a href="<?php echo get_the_permalink($event_id); ?>">
|
||||
|
|
|
@ -59,7 +59,9 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td colspan="<?php echo apply_filters('mep_hidden_row_colspan_no',3); ?>" class='user-innnf'>
|
||||
|
||||
<input type="hidden" name='mep_event_start_date[]' value="<?php echo esc_attr($start_date); ?>">
|
||||
<input type="hidden" name='mep_event_end_date[]' value="<?php echo esc_attr($end_date); ?>">
|
||||
<input type="hidden" name='option_name[]' value='<?php echo esc_attr(mep_remove_apostopie($field['option_name_t'])); ?>'>
|
||||
<input type="hidden" name='option_price[]' value='<?php echo esc_attr($ticket_price); ?>'>
|
||||
<input type="hidden" name='max_qty[]' value='<?php if(array_key_exists('option_max_qty',$field)){ echo esc_attr($field['option_max_qty']); }else{ echo ''; } ?>'>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Plugin Name: Event Manager and Tickets Selling Plugin for WooCommerce
|
||||
* Plugin URI: http://mage-people.com
|
||||
* Description: A Complete Event Solution for WordPress by MagePeople..
|
||||
* Version: 3.7.8
|
||||
* Version: 3.7.9
|
||||
* Author: MagePeople Team
|
||||
* Author URI: http://www.mage-people.com/
|
||||
* Text Domain: mage-eventpress
|
||||
|
@ -12,10 +12,13 @@
|
|||
* WC tested up to: 6.5
|
||||
*/
|
||||
|
||||
|
||||
if (!defined('ABSPATH')) {
|
||||
die;
|
||||
} // Cannot access pages directly.
|
||||
|
||||
|
||||
// Checking woo
|
||||
include_once(ABSPATH . 'wp-admin/includes/plugin.php');
|
||||
if (is_plugin_active('woocommerce/woocommerce.php')) {
|
||||
function appsero_init_tracker_mage_eventpress()
|
||||
|
@ -27,6 +30,7 @@ if (is_plugin_active('woocommerce/woocommerce.php')) {
|
|||
$client->insights()->init();
|
||||
}
|
||||
|
||||
|
||||
function mep_event_activation_redirect($plugin)
|
||||
{
|
||||
$check_quick_setup = get_option('mep_quick_setup') ? get_option('mep_quick_setup') : 'no-done';
|
||||
|
@ -36,6 +40,7 @@ if (is_plugin_active('woocommerce/woocommerce.php')) {
|
|||
exit(wp_redirect(admin_url($slug)));
|
||||
}
|
||||
}
|
||||
|
||||
// add_action('activated_plugin', 'mep_event_activation_redirect');
|
||||
require_once(dirname(__FILE__) . "/inc/mep_file_include.php");
|
||||
|
||||
|
|
Loading…
Reference in New Issue