From 894dbcb5664ee78d0cf20e3139270c6c7ced47f0 Mon Sep 17 00:00:00 2001 From: magepeopleteam Date: Mon, 6 Sep 2021 05:59:29 +0000 Subject: [PATCH] function update --- inc/mep_functions.php | 17 ++++++++++++----- inc/mep_user_custom_style.php | 26 +++++++++----------------- templates/list/default.php | 4 ++-- 3 files changed, 23 insertions(+), 24 deletions(-) diff --git a/inc/mep_functions.php b/inc/mep_functions.php index ff78b30..c05f556 100755 --- a/inc/mep_functions.php +++ b/inc/mep_functions.php @@ -2777,7 +2777,11 @@ function mep_event_recurring_date_list_in_event_list_loop($event_id){ $end_date = get_post_meta($event_id,'event_end_date',true); $end_datetime = get_post_meta($event_id,'event_end_datetime',true); $show_multidate = mep_get_option('mep_date_list_in_event_listing', 'general_setting_sec', 'no'); - + + $show_end_date = get_post_meta($event_id, 'mep_show_end_datetime', true) ? get_post_meta($event_id, 'mep_show_end_datetime', true) : 'yes'; + $end_date_display_status = apply_filters('mep_event_datetime_status',$show_end_date,$event_id); + + if(is_array($more_date) && sizeof($more_date) > 0){ ?> @@ -2810,10 +2814,10 @@ function mep_event_recurring_date_list_in_event_list_loop($event_id){ - - - + echo get_mep_datetime($_more_date['event_more_end_date'] . ' ' . $_more_date['event_more_end_time'], 'time'); } ?> $event_start_datetime, 'event_etd' => $event_end_datetime @@ -3776,6 +3782,7 @@ $start_date = date('Y-m-d',strtotime($_event_std['event_std'])); $end_date = date('Y-m-d',strtotime($_event_std['event_etd'])); if (strtotime(current_time('Y-m-d H:i')) < strtotime($std) && $cn == 0) { if($type == 'grid'){ + ?>
  • @@ -3784,13 +3791,13 @@ if (strtotime(current_time('Y-m-d H:i')) < strtotime($std) && $cn == 0) {
    -
    + if ($hide_only_end_time_list == 'no' && $end_date_display_status == 'yes') { ?> -
  • - - + -