From 94011b99c228fb5333785a7c980937181c099072 Mon Sep 17 00:00:00 2001 From: magepeopleteam Date: Wed, 3 Jul 2019 10:12:40 +0000 Subject: [PATCH] version 2.6.7 --- inc/admin_setting_panel.php | 13 +++++- inc/mep_shortcode.php | 22 ++++----- readme.txt | 11 ++++- templates/template-prts/add_calender.php | 1 - templates/template-prts/event_date.php | 22 ++++----- templates/template-prts/event_ticket_type.php | 6 +-- templates/template-prts/total_seat.php | 4 +- woocommerce-event-press.php | 46 ++++++++++++------- 8 files changed, 78 insertions(+), 47 deletions(-) diff --git a/inc/admin_setting_panel.php b/inc/admin_setting_panel.php index 5991698..03e7c65 100644 --- a/inc/admin_setting_panel.php +++ b/inc/admin_setting_panel.php @@ -140,7 +140,18 @@ class MAGE_Events_Setting_Controls { 'yes' => 'Enable', 'no' => 'Disable' ) - ) + ), + array( + 'name' => 'mep_event_expire_on_datetime', + 'label' => __( 'When will event expire', 'mage-eventpress' ), + 'desc' => __( 'Please select when event will expire, On event start time or event endtime', 'mage-eventpress' ), + 'type' => 'select', + 'default' => 'mep_event_start_date', + 'options' => array( + 'mep_event_start_date' => 'Event Start Time', + 'mep_event_end_date' => 'Event End Time' + ) + ) ), 'email_setting_sec' => array( diff --git a/inc/mep_shortcode.php b/inc/mep_shortcode.php index d03e7ae..297a23e 100644 --- a/inc/mep_shortcode.php +++ b/inc/mep_shortcode.php @@ -4,15 +4,13 @@ if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly. add_shortcode( 'event-calendar', 'mep_event_calender' ); function mep_event_calender($atts, $content=null){ ?> - -