version 3.8.2 released
This commit is contained in:
parent
2ee2c05415
commit
4e6c64f2b4
|
@ -113,6 +113,17 @@ if (!class_exists('MAGE_Events_Setting_Controls')) :
|
|||
'wpml' => 'WPML'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'name' => 'mep_event_list_order_by',
|
||||
'label' => __('Event List Order By', 'mage-eventpress'),
|
||||
'desc' => __('Please select Event list order by which value Event Title or Event Date. By Default is: Event Upcoming Date', 'mage-eventpress'),
|
||||
'type' => 'select',
|
||||
'default' => 'meta_value',
|
||||
'options' => array(
|
||||
'meta_value' => 'Event Upcoming Date',
|
||||
'title' => 'Event Title'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'name' => 'mep_event_label',
|
||||
'label' => __('Event Label', 'mage-eventpress'),
|
||||
|
@ -230,6 +241,17 @@ if (!class_exists('MAGE_Events_Setting_Controls')) :
|
|||
'no' => 'No'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'name' => 'mep_hide_expired_date_in_calendar',
|
||||
'label' => __('Hide Expired Event from Calendar', 'mage-eventpress'),
|
||||
'desc' => __('If you want to hide the expired event from the calendar please select Yes. Its applicable for the Free Calendar', 'mage-eventpress'),
|
||||
'type' => 'select',
|
||||
'default' => 'no',
|
||||
'options' => array(
|
||||
'yes' => 'Yes',
|
||||
'no' => 'No'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'name' => 'mep_event_direct_checkout',
|
||||
'label' => __('Redirect Checkout after Booking', 'mage-eventpress'),
|
||||
|
|
|
@ -3692,7 +3692,7 @@ if (!function_exists('mep_cart_display_ticket_type_list')) {
|
|||
function mep_cart_display_ticket_type_list($ticket_type_arr, $eid) {
|
||||
ob_start();
|
||||
foreach ($ticket_type_arr as $ticket) {
|
||||
echo '<li>' . esc_attr($ticket['ticket_name']) . " - " . wc_price(esc_attr(mep_get_price_including_tax($eid, $ticket['ticket_price']))) . ' x ' . esc_attr($ticket['ticket_qty']) . ' = ' . wc_price(esc_attr(mep_get_price_including_tax($eid, (float)$ticket['ticket_price'] * (float)$ticket['ticket_qty']))) . '</li>';
|
||||
echo '<li>' . esc_attr($ticket['ticket_name']) . " - " . wc_price(esc_attr(mep_get_price_including_tax($eid, (float)$ticket['ticket_price']))) . ' x ' . esc_attr($ticket['ticket_qty']) . ' = ' . wc_price(esc_attr(mep_get_price_including_tax($eid, (float)$ticket['ticket_price'] * (float)$ticket['ticket_qty']))) . '</li>';
|
||||
}
|
||||
return apply_filters('mep_display_ticket_in_cart_list', ob_get_clean(), $ticket_type_arr, $eid);
|
||||
}
|
||||
|
|
|
@ -8,9 +8,11 @@ if (!defined('ABSPATH')) {
|
|||
*/
|
||||
function mep_event_query($show, $sort = '', $cat = '', $org = '', $city = '', $country = '', $evnt_type = 'upcoming')
|
||||
{
|
||||
$event_expire_on_old = mep_get_option('mep_event_expire_on_datetimes', 'general_setting_sec', 'event_start_datetime');
|
||||
$event_expire_on = $event_expire_on_old == 'event_end_datetime' ? 'event_expire_datetime' : $event_expire_on_old;
|
||||
$now = current_time('Y-m-d H:i:s');
|
||||
$event_expire_on_old = mep_get_option('mep_event_expire_on_datetimes', 'general_setting_sec', 'event_start_datetime');
|
||||
$event_order_by = mep_get_option('mep_event_list_order_by', 'general_setting_sec', 'meta_value');
|
||||
$event_expire_on = $event_expire_on_old == 'event_end_datetime' ? 'event_expire_datetime' : $event_expire_on_old;
|
||||
$now = current_time('Y-m-d H:i:s');
|
||||
|
||||
if ( get_query_var('paged') ) {
|
||||
$paged = get_query_var('paged');
|
||||
} elseif ( get_query_var('page') ) {
|
||||
|
@ -60,7 +62,7 @@ function mep_event_query($show, $sort = '', $cat = '', $org = '', $city = '', $c
|
|||
'paged' => $paged,
|
||||
'posts_per_page' => $show,
|
||||
'order' => $sort,
|
||||
'orderby' => 'meta_value',
|
||||
'orderby' => $event_order_by,
|
||||
// 'meta_key' => 'event_start_datetime',
|
||||
'meta_key' => 'event_upcoming_datetime',
|
||||
'meta_query' => array(
|
||||
|
@ -113,6 +115,4 @@ function mep_event_pagination($total_page)
|
|||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -35,7 +35,9 @@ function mep_event_calender()
|
|||
const myEvents = [
|
||||
<?php
|
||||
// $loop = mep_event_query('all',-1);
|
||||
// mep_hide_expired_date_in_calendar
|
||||
$event_expire_on_old = mep_get_option('mep_event_expire_on_datetimes', 'general_setting_sec', 'event_start_datetime');
|
||||
$hide_expired = mep_get_option('mep_hide_expired_date_in_calendar', 'general_setting_sec', 'no');
|
||||
$event_expire_on = $event_expire_on_old == 'event_expire_datetime' ? 'end' : 'start';
|
||||
$args = array(
|
||||
'post_type' => array('mep_events'),
|
||||
|
@ -53,6 +55,23 @@ function mep_event_calender()
|
|||
$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($hide_expired == 'no'){
|
||||
?>
|
||||
{
|
||||
start : '<?php echo date_i18n('Y-m-d H:i', strtotime($_dates['start'])); ?>',
|
||||
end : '<?php echo date_i18n('Y-m-d H:i', strtotime($_dates['end'])); ?>',
|
||||
title : '<?php the_title(); ?>',
|
||||
url : '<?php the_permalink(); ?>',
|
||||
class : '',
|
||||
color : '#000',
|
||||
data : {}
|
||||
},
|
||||
<?php
|
||||
}else{
|
||||
|
||||
|
||||
if(strtotime($now) < strtotime($_dates[$event_expire_on]) ){
|
||||
?>
|
||||
{
|
||||
|
@ -68,6 +87,7 @@ foreach ($event_dates as $_dates) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$i++;
|
||||
wp_reset_postdata();
|
||||
?>
|
||||
|
|
|
@ -161,7 +161,7 @@ if (!function_exists('mep_get_event_reg_btn')) {
|
|||
<input id="quantity_5a7abbd1bff73" class="input-text qty text extra-qty-box" step="1" min="1" max="<?php echo esc_attr($leftt); ?>" name="quantity" value="1" title="Qty" size="4" pattern="[0-9]*" inputmode="numeric" type="hidden">
|
||||
<span id="ttyttl"></span>
|
||||
<?php } ?>
|
||||
<span class='the-total'> <?php echo mep_get_option('mep_total_text', 'label_setting_sec') ? mep_get_option('mep_total_text', 'label_setting_sec') : esc_html__('Total', 'mage-eventpress'); ?>
|
||||
<span class='the-total'> <?php echo mep_get_option('mep_total_text', 'label_setting_sec', __('Total', 'mage-eventpress')); ?>
|
||||
<span id="usertotal"></span>
|
||||
</span>
|
||||
<?php do_action('mep_after_price_calculation',$post_id); ?>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
if (!defined('ABSPATH')) {
|
||||
die;
|
||||
} // Cannot access pages directly.
|
||||
} // Cannot access pages directly.
|
||||
|
||||
add_action('mep_event_ticket_types', 'mep_ev_ticket_type',10,3);
|
||||
if (!function_exists('mep_ev_ticket_type')) {
|
||||
|
@ -19,9 +19,10 @@ if (!function_exists('mep_ev_ticket_type')) {
|
|||
<table id='mep_event_ticket_type_table'>
|
||||
<thead class='ex-sec-title mep_ticket_type_title'>
|
||||
<tr>
|
||||
<th>
|
||||
<th>
|
||||
<span class="tkt-qty" style="text-align: left;">
|
||||
<?php echo _e('Ticket type','mage-eventpress'); ?>
|
||||
<?php //_e('Ticket type','mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_event_ticket_type_text', 'label_setting_sec') ? mep_get_option('mep_event_ticket_type_text', 'label_setting_sec') : esc_html__('Ticket type:', 'mage-eventpress'); ?>
|
||||
</span>
|
||||
</th>
|
||||
<th>
|
||||
|
|
14
readme.txt
14
readme.txt
|
@ -2,8 +2,8 @@
|
|||
Contributors: magepeopleteam, aamahin
|
||||
Tags: event, woocomerce events manager, events manager, Wordpress Events plugin, Events plugin, wp events
|
||||
Requires at least: 5.3
|
||||
Stable tag: 3.8.1
|
||||
Version: 3.8.1
|
||||
Stable tag: 3.8.2
|
||||
Version: 3.8.2
|
||||
Tested up to: 6.1
|
||||
WC requires at least: 3.0
|
||||
WC tested up to: 6.5
|
||||
|
@ -919,4 +919,12 @@ Bug fixed
|
|||
* Update Release:
|
||||
Recurring Waitlist showing issue fixed.
|
||||
Bug fixed
|
||||
19 Jan 2023*
|
||||
19 Jan 2023*
|
||||
|
||||
|
||||
= 3.8.2=
|
||||
* Update Release:
|
||||
Event Sorting by event title added in Event Settings Page
|
||||
Expired Event show or not in calendar settings added in Event Settings Page.
|
||||
Bug fixed.
|
||||
01 Feb 2023*
|
|
@ -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.8.1
|
||||
* Version: 3.8.2
|
||||
* Author: MagePeople Team
|
||||
* Author URI: http://www.mage-people.com/
|
||||
* Text Domain: mage-eventpress
|
||||
|
|
Loading…
Reference in New Issue