From 9c3ea9d9f575c2e6642953d88f7d367f8b42b7f8 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Fri, 9 Sep 2016 12:01:59 +0200 Subject: [PATCH 1/2] only show address information when set --- forumdirectory/templates/forumdirectory_item.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/forumdirectory/templates/forumdirectory_item.tpl b/forumdirectory/templates/forumdirectory_item.tpl index ee38c28a..5b6a946a 100644 --- a/forumdirectory/templates/forumdirectory_item.tpl +++ b/forumdirectory/templates/forumdirectory_item.tpl @@ -18,9 +18,9 @@
{{if $profile.address}}
{{$profile.address}}
{{/if}} - {{$profile.locality}}{{if $profile.locality}}, {{/if}} - {{$profile.region}} - {{$profile.postal-code}} + {{if $profile.locality}}{{$profile.locality}}, {{/if}} + {{if $profile.region}}{{$profile.region}}{{/if}} + {{if $profile.postal-code}}{{$profile.postal-code}}{{/if}} {{if $profile.country-name}}{{$profile.country-name}}{{/if}}
From 184e9b56cef0509ea7263c9a46b9352e8abf3aff Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Fri, 9 Sep 2016 17:54:48 +0200 Subject: [PATCH 2/2] smarty3 variables with a dash need other notation --- forumdirectory/templates/forumdirectory_item.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forumdirectory/templates/forumdirectory_item.tpl b/forumdirectory/templates/forumdirectory_item.tpl index 5b6a946a..61b165d7 100644 --- a/forumdirectory/templates/forumdirectory_item.tpl +++ b/forumdirectory/templates/forumdirectory_item.tpl @@ -20,9 +20,9 @@ {{if $profile.locality}}{{$profile.locality}}, {{/if}} {{if $profile.region}}{{$profile.region}}{{/if}} - {{if $profile.postal-code}}{{$profile.postal-code}}{{/if}} + {{if $profile['postal-code']}}{{$profile['postal-code']}}{{/if}} - {{if $profile.country-name}}{{$profile.country-name}}{{/if}} + {{if $profile['country-name']}}{{$profile['country-name']}}{{/if}} {{/if}}