From: Anthony Talarico Date: Wed, 27 Dec 2017 14:25:55 +0000 (-0500) Subject: only showing icons if the event has the relevant information in the reg detail page X-Git-Tag: v1.0.0^2~138 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d5f8d2655a9e536a84d4f4a3a8b513c90fa4699d;p=WP-Plugins%2Fglm-member-db-registrations.git only showing icons if the event has the relevant information in the reg detail page icons were showing up even if there was no data next to the event info --- diff --git a/views/front/registrations/registration.html b/views/front/registrations/registration.html index edac800..5cf315a 100644 --- a/views/front/registrations/registration.html +++ b/views/front/registrations/registration.html @@ -24,27 +24,26 @@

<%= event_name %>

{/literal} - {if $regEvent.image}
{/if}
-
-
{$regEvent.first_datetime.timestamp|date_format:"%A, %B %e, %Y"}
+ {if $regEvent.first_datetime.timestamp} +
{$regEvent.first_datetime.timestamp|date_format:"%A, %B %e, %Y"}
- {if $first_date.timestamp != $last_date.timestamp && !$time_specific} -
{$first_date.timestamp|date_format:"%l:%M %p"} - {$last_date.timestamp|date_format:"%l:%M %p"}
- {else} -
{$regEvent.first_datetime.timestamp|date_format:"%l:%M %p"}
- {/if} - - {if $regEvent.eventCost} -
{$regEvent.eventCost}
+ {if $first_date.timestamp != $last_date.timestamp && !$time_specific} +
{$first_date.timestamp|date_format:"%l:%M %p"} - {$last_date.timestamp|date_format:"%l:%M %p"}
+ {else} +
{$regEvent.first_datetime.timestamp|date_format:"%l:%M %p"}
+ {/if} + + {if $regEvent.eventCost} +
{$regEvent.eventCost}
+ {/if} {/if} - {if $regEvent.locations.name || $regEvent.locations.address}