Add region display to profile card

This commit is contained in:
Hypolite Petovan 2018-10-25 23:36:04 -04:00
commit a22dc105be

View file

@ -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)): ?>