]> git.mxchange.org Git - friendica-addons.git/commitdiff
only show address information when set
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Fri, 9 Sep 2016 10:01:59 +0000 (12:01 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Fri, 9 Sep 2016 10:01:59 +0000 (12:01 +0200)
forumdirectory/templates/forumdirectory_item.tpl

index ee38c28a0e15a5db3e848f4f26c8aa5c12622d3e..5b6a946a1120f659f3afeab136905f6a926df0b2 100644 (file)
@@ -18,9 +18,9 @@
                                <dd class="adr">
                                        {{if $profile.address}}<div class="street-address">{{$profile.address}}</div>{{/if}}
                                        <span class="city-state-zip">
-                                               <span class="locality">{{$profile.locality}}</span>{{if $profile.locality}}, {{/if}}
-                                               <span class="region">{{$profile.region}}</span>
-                                               <span class="postal-code">{{$profile.postal-code}}</span>
+                                               {{if $profile.locality}}<span class="locality">{{$profile.locality}}</span>, {{/if}}
+                                               {{if $profile.region}}<span class="region">{{$profile.region}}</span>{{/if}}
+                                               {{if $profile.postal-code}}<span class="postal-code">{{$profile.postal-code}}</span>{{/if}}
                                        </span>
                                        {{if $profile.country-name}}<span class="country-name">{{$profile.country-name}}</span>{{/if}}
                                </dd>