mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 04:35:26 +00:00
fix directory location
This commit is contained in:
parent
090dae46e5
commit
7ef4397634
2 changed files with 3 additions and 4 deletions
|
@ -210,7 +210,7 @@ function directory_content(&$a) {
|
|||
$location .= $rr['region'];
|
||||
}
|
||||
if(strlen($rr['country'])) {
|
||||
if(strlen($details))
|
||||
if(strlen($location))
|
||||
$location .= ', ';
|
||||
$location .= $rr['country'];
|
||||
}
|
||||
|
@ -286,7 +286,6 @@ function directory_content(&$a) {
|
|||
'hash' => $rr['hash'],
|
||||
'alttext' => $rr['name'] . ((local_channel() || remote_channel()) ? ' ' . $rr['address'] : ''),
|
||||
'name' => $rr['name'],
|
||||
'details' => $details,
|
||||
'age' => $age,
|
||||
'age_label' => t('Age:'),
|
||||
'profile' => $profile,
|
||||
|
|
|
@ -41,9 +41,9 @@
|
|||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{if $entry.details}}
|
||||
{{if $entry.location}}
|
||||
<div class="contact-info-element">
|
||||
<span class="contact-info-label">{{$entry.location}}</span> {{$entry.details}}
|
||||
<span class="contact-info-label">{{$entry.location_label}}</span> {{$entry.location}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue