From: Anthony Talarico Date: Tue, 18 Apr 2017 12:00:47 +0000 (-0400) Subject: fixing the event detail date output X-Git-Tag: v1.6.35^2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e15f1b8686b51b388b9318a147cb443dd2f053e1;p=WP-Plugins%2Fglm-member-db-events.git fixing the event detail date output added a check for the start_time_only value in the recurrences loop for the date section of the event detail page. Now the recurrence loop checks for identical start and end dates OR if the start time only flag is set. this is done is the front detail view template. --- diff --git a/views/front/events/detail.html b/views/front/events/detail.html index 33f2090..5180e90 100644 --- a/views/front/events/detail.html +++ b/views/front/events/detail.html @@ -63,8 +63,9 @@
{if !$event.all_day} + - {if $rec.start_time.time == $rec.end_time.time} + {if $rec.start_time.time == $rec.end_time.time || $rec.start_time_only.value} {$rec.start_time.time|strtotime|date_format:"%l:%M %P"} {else} {$rec.start_time.time|strtotime|date_format:"%l:%M %P"} - {$rec.end_time.time|strtotime|date_format:"%l:%M %P"}