$xs->elementStart('span', 'vcard');
$xs->elementStart('a', $attrs);
- $xs->element('span', 'fn nickname mention', $mention['text']);
+ $xs->element('span', 'fn nickname '.$mention['type'], $mention['text']);
$xs->elementEnd('a');
$xs->elementEnd('span');
}
$mention = array('mentioned' => array($mentioned),
+ 'type' => 'mention',
'text' => $match[0],
'position' => $match[1],
'url' => $url);
'tag' => $tag));
$mentions[] = array('mentioned' => $tagged,
+ 'type' => 'list',
'text' => $hmatch[0],
'position' => $hmatch[1],
'url' => $url);
$profile = $group->getProfile();
$mentions[] = array('mentioned' => array($profile),
+ 'type' => 'group',
'text' => $hmatch[0],
'position' => $hmatch[1],
'url' => $group->permalink(),