Add region display to profile card
This commit is contained in:
parent
90ea11c6d8
commit
a22dc105be
1 changed files with 10 additions and 2 deletions
|
@ -9,8 +9,16 @@
|
||||||
<div class="location">
|
<div class="location">
|
||||||
<?php
|
<?php
|
||||||
$parts = array();
|
$parts = array();
|
||||||
if(!empty($profile['locality'])) $parts[] = $profile['locality'];
|
if(!empty($profile['locality'])) {
|
||||||
if(!empty($profile['country-name'])) $parts[] = $profile['country-name'];
|
$parts[] = $profile['locality'];
|
||||||
|
}
|
||||||
|
if(!empty($profile['region'])
|
||||||
|
&& strtolower($profile['locality']) != strtolower($profile['region'])) {
|
||||||
|
$parts[] = $profile['region'];
|
||||||
|
}
|
||||||
|
if(!empty($profile['country-name'])) {
|
||||||
|
$parts[] = $profile['country-name'];
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if (count($parts)): ?>
|
<?php if (count($parts)): ?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue