From: Steve Sutton Date: Thu, 19 May 2016 20:10:59 +0000 (-0400) Subject: check for address or location name before output of the location div X-Git-Tag: v1.0.0^2~18 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=ec6103fb375ead871533d57eb8a1c288c28f9589;p=WP-Plugins%2Fglm-member-db-events.git check for address or location name before output of the location div --- diff --git a/views/front/events/detail.html b/views/front/events/detail.html index 3927c4d..4cd3775 100644 --- a/views/front/events/detail.html +++ b/views/front/events/detail.html @@ -69,19 +69,21 @@ {/if} {if $event.hide_address.name == 'No'} -
- {if !$event.use_member_location.value && $event.locations} + {if !$event.use_member_location.value && ($event.locations.name || $event.locations.address)} +
{if $event.locations.name}{$event.locations.name}
{/if} {if $event.locations.address} {$event.locations.address}
{$event.locations.city.name}, {$event.locations.state.value} {$event.locations.zip} {/if} +
{elseif $event.use_member_location.value} +
{$event.member.member}
{$event.member.addr1}
{$event.member.city}, {$event.member.state.value} {$event.member.zip} +
{/if} -
{/if} {if $event.cost && !$event.free.value}
Cost: {$event.cost}