Сейчас визуально так:
clip2net.com/s/3ygBUWq
Код такой:
<!-- Выводим регион и страну --> <?php if ($field['name']=="city") {?> <div class="value"> <?php $city_parents = cmsCore::getModel('geo')->getCityParents($profile['city']['id']); $region = cmsCore::getModel('geo')->filterEqual('i.id', $city_parents['region_id'])->getRegions($city_parents['country_id']); $country = cmsCore::getModel('geo')->filterEqual('i.id', $city_parents['country_id'])->getCountries(); ?> <span><?php echo $field['handler']->setItem($profile)->parse( $profile[$field['name']] ); ?></span> (<span><?php foreach($country as $country_name) echo $country_name; ?></span>, <span><?php foreach($region as $region_name) echo $region_name; ?></span>) </div> </div> <?php continue; } ?> <!-- Конец вывода региона и страны --> <div class="value"> <?php echo $field['handler']->setItem($profile)->parse( $profile[$field['name']] ); ?> </div>
Спасибо.