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'
|
'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(
|
array(
|
||||||
'name' => 'mep_event_label',
|
'name' => 'mep_event_label',
|
||||||
'label' => __('Event Label', 'mage-eventpress'),
|
'label' => __('Event Label', 'mage-eventpress'),
|
||||||
|
@ -230,6 +241,17 @@ if (!class_exists('MAGE_Events_Setting_Controls')) :
|
||||||
'no' => 'No'
|
'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(
|
array(
|
||||||
'name' => 'mep_event_direct_checkout',
|
'name' => 'mep_event_direct_checkout',
|
||||||
'label' => __('Redirect Checkout after Booking', 'mage-eventpress'),
|
'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) {
|
function mep_cart_display_ticket_type_list($ticket_type_arr, $eid) {
|
||||||
ob_start();
|
ob_start();
|
||||||
foreach ($ticket_type_arr as $ticket) {
|
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);
|
return apply_filters('mep_display_ticket_in_cart_list', ob_get_clean(), $ticket_type_arr, $eid);
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,8 +9,10 @@ if (!defined('ABSPATH')) {
|
||||||
function mep_event_query($show, $sort = '', $cat = '', $org = '', $city = '', $country = '', $evnt_type = 'upcoming')
|
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_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;
|
$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');
|
$now = current_time('Y-m-d H:i:s');
|
||||||
|
|
||||||
if ( get_query_var('paged') ) {
|
if ( get_query_var('paged') ) {
|
||||||
$paged = get_query_var('paged');
|
$paged = get_query_var('paged');
|
||||||
} elseif ( get_query_var('page') ) {
|
} elseif ( get_query_var('page') ) {
|
||||||
|
@ -60,7 +62,7 @@ function mep_event_query($show, $sort = '', $cat = '', $org = '', $city = '', $c
|
||||||
'paged' => $paged,
|
'paged' => $paged,
|
||||||
'posts_per_page' => $show,
|
'posts_per_page' => $show,
|
||||||
'order' => $sort,
|
'order' => $sort,
|
||||||
'orderby' => 'meta_value',
|
'orderby' => $event_order_by,
|
||||||
// 'meta_key' => 'event_start_datetime',
|
// 'meta_key' => 'event_start_datetime',
|
||||||
'meta_key' => 'event_upcoming_datetime',
|
'meta_key' => 'event_upcoming_datetime',
|
||||||
'meta_query' => array(
|
'meta_query' => array(
|
||||||
|
@ -114,5 +116,3 @@ function mep_event_pagination($total_page)
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,9 @@ function mep_event_calender()
|
||||||
const myEvents = [
|
const myEvents = [
|
||||||
<?php
|
<?php
|
||||||
// $loop = mep_event_query('all',-1);
|
// $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');
|
$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';
|
$event_expire_on = $event_expire_on_old == 'event_expire_datetime' ? 'end' : 'start';
|
||||||
$args = array(
|
$args = array(
|
||||||
'post_type' => array('mep_events'),
|
'post_type' => array('mep_events'),
|
||||||
|
@ -53,6 +55,23 @@ function mep_event_calender()
|
||||||
$event_dates = mep_get_event_dates_arr(get_the_id());
|
$event_dates = mep_get_event_dates_arr(get_the_id());
|
||||||
$now = current_time('Y-m-d H:i:s');
|
$now = current_time('Y-m-d H:i:s');
|
||||||
foreach ($event_dates as $_dates) {
|
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]) ){
|
if(strtotime($now) < strtotime($_dates[$event_expire_on]) ){
|
||||||
?>
|
?>
|
||||||
{
|
{
|
||||||
|
@ -68,6 +87,7 @@ foreach ($event_dates as $_dates) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$i++;
|
$i++;
|
||||||
wp_reset_postdata();
|
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">
|
<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>
|
<span id="ttyttl"></span>
|
||||||
<?php } ?>
|
<?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 id="usertotal"></span>
|
||||||
</span>
|
</span>
|
||||||
<?php do_action('mep_after_price_calculation',$post_id); ?>
|
<?php do_action('mep_after_price_calculation',$post_id); ?>
|
||||||
|
|
|
@ -21,7 +21,8 @@ if (!function_exists('mep_ev_ticket_type')) {
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
<span class="tkt-qty" style="text-align: left;">
|
<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>
|
</span>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
|
|
12
readme.txt
12
readme.txt
|
@ -2,8 +2,8 @@
|
||||||
Contributors: magepeopleteam, aamahin
|
Contributors: magepeopleteam, aamahin
|
||||||
Tags: event, woocomerce events manager, events manager, Wordpress Events plugin, Events plugin, wp events
|
Tags: event, woocomerce events manager, events manager, Wordpress Events plugin, Events plugin, wp events
|
||||||
Requires at least: 5.3
|
Requires at least: 5.3
|
||||||
Stable tag: 3.8.1
|
Stable tag: 3.8.2
|
||||||
Version: 3.8.1
|
Version: 3.8.2
|
||||||
Tested up to: 6.1
|
Tested up to: 6.1
|
||||||
WC requires at least: 3.0
|
WC requires at least: 3.0
|
||||||
WC tested up to: 6.5
|
WC tested up to: 6.5
|
||||||
|
@ -920,3 +920,11 @@ Bug fixed
|
||||||
Recurring Waitlist showing issue fixed.
|
Recurring Waitlist showing issue fixed.
|
||||||
Bug 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 Name: Event Manager and Tickets Selling Plugin for WooCommerce
|
||||||
* 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.8.1
|
* Version: 3.8.2
|
||||||
* 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
|
||||||
|
|
Loading…
Reference in New Issue