From 6d572a4cb5a1ce9684c4e7c4bf9d6dc971626df2 Mon Sep 17 00:00:00 2001 From: magepeopleteam Date: Sun, 1 Mar 2020 05:00:56 +0000 Subject: [PATCH] file update --- css/style.css | 8 +++++++- inc/mep_functions.php | 18 ++++++++++-------- inc/mep_tax_meta.php | 4 ++-- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/css/style.css b/css/style.css index 58b7a83..a3ad86d 100644 --- a/css/style.css +++ b/css/style.css @@ -363,7 +363,13 @@ ul.event-custom-price li ul { padding: 10px 5px; text-align: left; } - +div.mep-default-feature-content p { + color: #3a3a3a; + font-size: 16px; + padding: inherit; + margin: 15px 0; + line-height: 20px; +} /******Responsive*******/ @media only screen and (max-width: 1199px) { diff --git a/inc/mep_functions.php b/inc/mep_functions.php index 79070aa..34d0248 100755 --- a/inc/mep_functions.php +++ b/inc/mep_functions.php @@ -1972,7 +1972,7 @@ function mep_get_all_tax_list($current_tax=null){ function mep_ticket_sold($event_id){ $event_start_date = date('Y-m-d',strtotime(get_post_meta($event_id,'event_start_date',true))); - $get_ticket_type_list = get_post_meta($event_id,'mep_event_ticket_type',true); + $get_ticket_type_list = get_post_meta($event_id,'mep_event_ticket_type',true) ? get_post_meta($event_id,'mep_event_ticket_type',true) : array(); $recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_meta($event_id, 'mep_enable_recurring', true) : 'no'; @@ -2017,30 +2017,32 @@ function mep_get_all_tax_list($current_tax=null){ $date_format = get_option( 'date_format' ); $time_format = get_option( 'time_format' ); $wpdatesettings = $date_format.' '.$time_format; - $timestamp = strtotime( $date ); + $timezone = wp_timezone_string(); + $timestamp = strtotime( $date . ' '. $timezone); if($type == 'date'){ - return date_i18n( $date_format, $timestamp ); + return wp_date( $date_format, $timestamp ); } if($type == 'date-time'){ - return date_i18n( $wpdatesettings, $timestamp ); + return wp_date( $wpdatesettings, $timestamp ); } if($type == 'date-text'){ - return date_i18n( $date_format, $timestamp ); + + return wp_date( $date_format, $timestamp ); } if($type == 'date-time-text'){ - return date_i18n( $wpdatesettings, $timestamp ); + return wp_date( $wpdatesettings, $timestamp ); } if($type == 'time'){ return date( $time_format, strtotime( $date ) ); } if($type == 'day'){ - return date_i18n( 'd', $timestamp ); + return wp_date( 'd', $timestamp ); } if($type == 'month'){ - return date_i18n( 'M', $timestamp ); + return wp_date( 'M', $timestamp ); } } diff --git a/inc/mep_tax_meta.php b/inc/mep_tax_meta.php index 7988331..964cc19 100644 --- a/inc/mep_tax_meta.php +++ b/inc/mep_tax_meta.php @@ -42,8 +42,8 @@ if($user_api){ '/> - - + +