From 73c02171f6bb0c633b727648775cae293b36e2e1 Mon Sep 17 00:00:00 2001 From: magepeopleteam Date: Wed, 30 Dec 2020 05:23:11 +0000 Subject: [PATCH] calculation issue fixed --- css/admin_style.css | 5 +++++ inc/mep_event_meta.php | 30 ++++++++++++++++++++++++- inc/mep_functions.php | 30 +++++++++---------------- templates/single/extra_service_list.php | 2 +- templates/single/ticket_type_list.php | 2 +- 5 files changed, 47 insertions(+), 22 deletions(-) diff --git a/css/admin_style.css b/css/admin_style.css index 46e19f6..3a3be44 100644 --- a/css/admin_style.css +++ b/css/admin_style.css @@ -467,4 +467,9 @@ label.mp_event_virtual_type_des textarea{width:100%;} } .wrap.mage_settings_panel_wrap .notice.notice-warning { display: none; + } + .mep_rich_text_status_section { + display: block; + text-align: center; + padding: 15px; } \ No newline at end of file diff --git a/inc/mep_event_meta.php b/inc/mep_event_meta.php index d5b3c52..36f37c4 100644 --- a/inc/mep_event_meta.php +++ b/inc/mep_event_meta.php @@ -696,8 +696,18 @@ class MP_Event_All_Info_In_One $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; + $rt_status = get_post_meta($post_id, 'mep_rich_text_status', true) ? get_post_meta($post_id, 'mep_rich_text_status', true) : 'enable'; ?> - +
+ +
+
style='display:none;' > @@ -761,6 +771,22 @@ class MP_Event_All_Info_In_One
+ + + + +
  • @@ -2605,16 +2604,6 @@ function mep_event_recurring_date_list_in_event_list_loop($event_id){ } } } - - - - - - - - - - echo ''; ?> @@ -2651,14 +2640,16 @@ function mep_event_rich_text_data(){ $event_id = $post->ID; if($event_id && get_post_type($event_id) == 'mep_events'){ - $event_name = get_the_title($event_id); - $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) : 'EventRescheduled'; + $event_name = get_the_title($event_id); + $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) : 'EventRescheduled'; $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) : 'OfflineEventAttendanceMode'; - $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; - $terms = get_the_terms( $event_id, 'mep_org' ); - $org_name = is_array($terms) && sizeof($terms) > 0 ? $terms[0]->name : 'No Performer'; + $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; + $terms = get_the_terms( $event_id, 'mep_org' ); + $org_name = is_array($terms) && sizeof($terms) > 0 ? $terms[0]->name : 'No Performer'; + $rt_status = get_post_meta($event_id, 'mep_rich_text_status', true) ? get_post_meta($event_id, 'mep_rich_text_status', true) : 'enable'; + if($rt_status == 'enable'){ ob_start(); ?> @@ -2697,6 +2688,7 @@ if($event_id && get_post_type($event_id) == 'mep_events'){ diff --git a/templates/single/ticket_type_list.php b/templates/single/ticket_type_list.php index 8f4c006..5679636 100644 --- a/templates/single/ticket_type_list.php +++ b/templates/single/ticket_type_list.php @@ -13,7 +13,7 @@ 0) { if ($qty_t_type == 'dropdown') { ?>