From daaaa3837610b70488d317f43b0c10e0c00efc4e Mon Sep 17 00:00:00 2001 From: magepeopleteam Date: Tue, 24 Mar 2020 08:09:00 +0000 Subject: [PATCH] version 3.2.0 released --- css/admin_style.css | 6 ++ css/style.css | 47 +++++++++ inc/mep_event_meta.php | 94 ++++++++++++++++++ inc/mep_functions.php | 136 ++++++++++++++++++++++++++ inc/template-prts/event_location.php | 79 +++++++++++++++ inc/template-prts/event_loop_list.php | 11 ++- js/mep_datepicker.js | 7 ++ readme.txt | 21 +++- woocommerce-event-press.php | 13 +-- 9 files changed, 398 insertions(+), 16 deletions(-) diff --git a/css/admin_style.css b/css/admin_style.css index e13df32..0fdea91 100644 --- a/css/admin_style.css +++ b/css/admin_style.css @@ -213,4 +213,10 @@ div#mep-event-price h2 { div#mage-primary-button{ background:green !important; color:white !important; +} +ul.mep_rt_settings_list li { + display: block; + margin: 20px 0; + border-bottom: 1px solid #ddd; + padding: 5px 0 10px; } \ No newline at end of file diff --git a/css/style.css b/css/style.css index eea629a..a9be7c2 100644 --- a/css/style.css +++ b/css/style.css @@ -375,6 +375,53 @@ div.mep-default-feature-content p { letter-spacing: inherit; } +ul.mep-more-date-lists li span i { + display: inline-block; + text-align: center; + padding: 6px 0 0 0; + margin: 0; +} + +ul.mep-more-date-lists li span { + margin-right: 20px; +} + +ul.mep-more-date-lists li { + display: block; + border-bottom: 1px dashed #ddd; + padding: 5px 0; +} + +.pagination-sec a { + display: inline-block; + background: #81d742; + color: #fff; + padding: 10px 15px; +} + +.pagination-sec span.page-numbers.current { + padding: 15px 20px; + background: #ddd; +} +.mep_more_date_btn { + display: block; + cursor: pointer; + background: #81d742; + color: #fff; + padding: 5px 20px; + position: absolute; + bottom: -52px; + left: 32%; +} +span#hide_event_schdule { + position: relative; + left: 23%; + bottom: -20px; + display: inline-block; + width: 60%; + text-align: center; + margin: 0 auto; +} /******Responsive*******/ @media only screen and (max-width: 1199px) { /********Default Theme***********/ diff --git a/inc/mep_event_meta.php b/inc/mep_event_meta.php index 86e2b44..9107693 100644 --- a/inc/mep_event_meta.php +++ b/inc/mep_event_meta.php @@ -31,6 +31,17 @@ function mep_event_meta_box_add(){ } add_meta_box( 'mep-event-rest-count-sec', __('Event Reset Booking Count','mage-eventpress'), 'mep_event_reset_booking_count', 'mep_events', 'side', 'low' ); + + + + + add_meta_box( 'mep-event-rich-text', __('Event Rich text','mage-eventpress'), 'mep_event_rich_text_meta_box_cb', 'mep_events', 'normal', 'high' ); + + + + + + } add_action('admin_head','mep_hide_single_price_section'); @@ -45,6 +56,89 @@ function mep_hide_single_price_section(){ } +function mep_event_rich_text_meta_box_cb($post){ + wp_nonce_field( 'mep_event_ricn_text_nonce', 'mep_event_ricn_text_nonce' ); + $event_start_date = get_post_meta($post->ID,'event_start_datetime',true) ? get_post_meta($post->ID,'event_start_datetime',true) : ''; + $event_end_date = get_post_meta($post->ID,'event_end_datetime',true) ? get_post_meta($post->ID,'event_end_datetime',true) : ''; + $event_rt_status = get_post_meta($post->ID,'mep_rt_event_status',true) ? get_post_meta($post->ID,'mep_rt_event_status',true) : ''; + $event_rt_atdnce_mode = get_post_meta($post->ID,'mep_rt_event_attandence_mode',true) ? get_post_meta($post->ID,'mep_rt_event_attandence_mode',true) : ''; + $event_rt_prv_date = get_post_meta($post->ID,'mep_rt_event_prvdate',true) ? get_post_meta($post->ID,'mep_rt_event_prvdate',true) : $event_start_date; +?> +
+ + + ID){ + ?> + Check Rich Text Status + +
+ ID ); wp_nonce_field( 'mep_event_reset_btn_nonce', 'mep_event_reset_btn_nonce' ); diff --git a/inc/mep_functions.php b/inc/mep_functions.php index 3890d97..d8997f5 100755 --- a/inc/mep_functions.php +++ b/inc/mep_functions.php @@ -2362,5 +2362,141 @@ function mep_hide_event_order_data_from_thankyou_and_email($formatted_meta){ } +add_action('mep_event_list_loop_footer','mep_event_recurring_date_list_in_event_list_loop'); +function mep_event_recurring_date_list_in_event_list_loop($event_id){ + $recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_meta($event_id, 'mep_enable_recurring', true) : 'no'; + $more_date = get_post_meta($event_id,'mep_event_more_date',true); + $start_datetime = get_post_meta($event_id,'event_start_datetime',true); + $start_date = get_post_meta($event_id,'event_start_date',true); + $end_date = get_post_meta($event_id,'event_end_date',true); + $end_datetime = get_post_meta($event_id,'event_end_datetime',true); + + + + + + + if(is_array($more_date) && sizeof($more_date) > 0){ + + ?> + + + - + diff --git a/js/mep_datepicker.js b/js/mep_datepicker.js index 2fb4384..9eaea0a 100644 --- a/js/mep_datepicker.js +++ b/js/mep_datepicker.js @@ -21,4 +21,11 @@ jQuery(document).ready(function($){ // }); + jQuery('.event_more_date').datetimepicker({ + dateFormat: 'yy-mm-dd', + timeFormat: "HH:mm" + // minDate:0 + }); + + }); \ No newline at end of file diff --git a/readme.txt b/readme.txt index 43729f7..5838896 100644 --- a/readme.txt +++ b/readme.txt @@ -384,4 +384,23 @@ CatID & OrgID Column Added Some Bug Fixed Code Improved Expire Event List Shortcode issue fixed -05 Feb 2020* \ No newline at end of file +05 Feb 2020* + + += 3.1.5 = +* Update Release: +Some Bug Fixed +Code Improved +11 March 2020* + + += 3.2.0 = +* Update Release: +Some Bug Fixed +Code Improved +Multi date list added in the Event listing page +Schema Rich Text Added, Now it ca be easily add the rich text schema text. +PHP Warning removed +Added some Action & Filter Hooks +Pagination Styling issue fixed +24 March 2020* diff --git a/woocommerce-event-press.php b/woocommerce-event-press.php index 50db711..41e593c 100644 --- a/woocommerce-event-press.php +++ b/woocommerce-event-press.php @@ -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.1.5 +* Version: 3.2.0 * Author: MagePeople Team * Author URI: http://www.mage-people.com/ * Text Domain: mage-eventpress @@ -26,14 +26,3 @@ function mep_admin_notice_wc_not_active() { } add_action( 'admin_notices', 'mep_admin_notice_wc_not_active' ); } - - - -function kia_hide_mnm_meta_in_emails( $meta ) { - if( ! is_admin() ) { - $criteria = array( 'key' => 'event_id' ); - $meta = wp_list_filter( $meta, $criteria, 'NOT' ); - } - return $meta; -} -add_filter( 'woocommerce_order_item_get_formatted_meta_data', 'kia_hide_mnm_meta_in_emails' ); \ No newline at end of file