- if((x($profile,'address') == 1)
- || (x($profile,'locality') == 1)
- || (x($profile,'region') == 1)
- || (x($profile,'postal-code') == 1)
- || (x($profile,'country-name') == 1))
- $location = t('Location:');
-
- $gender = ((x($profile,'gender') == 1) ? t('Gender:') : False);
-
- $marital = ((x($profile,'marital') == 1) ? t('Status:') : False);
-
- $homepage = ((x($profile,'homepage') == 1) ? t('Homepage:') : False);
-
- $about = ((x($profile,'about') == 1) ? t('About:') : False);
-
- if($a->theme['template_engine'] === 'internal') {
- $location_e = template_escape($location);
- }
- else {
- $location_e = $location;
+ if ((x($profile, 'address') == 1)
+ || (x($profile, 'locality') == 1)
+ || (x($profile, 'region') == 1)
+ || (x($profile, 'postal-code') == 1)
+ || (x($profile, 'country-name') == 1)
+ ) {
+ $location = L10n::t('Location:');
+ } else {
+ $location = '';