- ($profile->fullname) ? $profile->fullname :
- $profile->nickname));
-
- common_element('a', array('href' => $profile->profileurl,
- 'class' => 'external profile nickname'),
- $profile->nickname);
-
- if ($profile->fullname) {
- common_element_start('div', 'fullname');
- if ($profile->homepage) {
- common_element('a', array('href' => $profile->homepage),
- $profile->fullname);
- } else {
- common_text($profile->fullname);
- }
- common_element_end('div');
+ ($this->profile->fullname) ? $this->profile->fullname :
+ $this->profile->nickname));
+ $this->elementEnd('dd');
+ $this->elementEnd('dl');
+
+ $this->elementStart('dl', 'entity_nickname');
+ $this->element('dt', null, _('Nickname'));
+ $this->elementStart('dd');
+ $this->element('a', array('href' => $this->profile->profileurl,
+ 'class' => 'nickname'),
+ $this->profile->nickname);
+ $this->elementEnd('dd');
+ $this->elementEnd('dl');
+
+ if ($this->profile->fullname) {
+ $this->elementStart('dl', 'entity_fn');
+ $this->element('dt', null, _('Full name'));
+ $this->elementStart('dd');
+ $this->element('span', 'fn', $this->profile->fullname);
+ $this->elementEnd('dd');
+ $this->elementEnd('dl');