From: Steve Sutton Date: Mon, 13 Nov 2017 21:18:04 +0000 (-0500) Subject: More template updates X-Git-Tag: v1.0.0^2~281 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d49c5816174062fea0cdf3763b27ea5d06235d4a;p=WP-Plugins%2Fglm-member-db-registrations.git More template updates For template undefines. --- diff --git a/classes/data/dataRegEvent.php b/classes/data/dataRegEvent.php index 644dd65..f1b701d 100644 --- a/classes/data/dataRegEvent.php +++ b/classes/data/dataRegEvent.php @@ -366,7 +366,6 @@ class GlmDataRegistrationsRegEvent extends GlmDataAbstract $result_data['url'] = $eventData['url']; $result_data['hide_address'] = $eventData['hide_address']; $result_data['use_member_location'] = $eventData['use_member_location']; - $result_data['all_day'] = $eventData['all_day']; // Check for times data and use that. if ( isset( $eventData['times'] ) && $eventData['times'] ) { @@ -390,6 +389,9 @@ class GlmDataRegistrationsRegEvent extends GlmDataAbstract if ( isset( $eventData['recurrences'] ) && $eventData['recurrences'] ) { $result_data['recurrences'] = $eventData['recurrences']; } + if ( isset( $eventData['all_day'] ) && $eventData['all_day'] ) { + $result_data['all_day'] = $eventData['all_day']; + } } } diff --git a/views/front/registrations/list.html b/views/front/registrations/list.html index 7030691..3dab24a 100644 --- a/views/front/registrations/list.html +++ b/views/front/registrations/list.html @@ -49,7 +49,7 @@ {/if} - {if !$event.all_day} + {if isset($event.all_day) && !$event.all_day}
{if $rec.start_time.time == $rec.end_time.time || $rec.start_time_only.value} {$rec.start_time.time|strtotime|date_format:"%l:%M %P"}