Matching markup for tags

This commit is contained in:
sarven 2009-01-21 01:22:08 +00:00
parent 96e40e0649
commit f51984175a
2 changed files with 3 additions and 5 deletions

View File

@ -288,7 +288,7 @@ class ShowstreamAction extends Action
if (count($tags) > 0) { if (count($tags) > 0) {
$this->elementStart('dl', 'user_tags'); $this->elementStart('dl', 'user_tags');
$this->element('dt', null, _('Tags')); $this->element('dt', null, _('Tags'));
$this->elementStart('dd', 'tags'); $this->elementStart('dd');
$this->elementStart('ul', 'tags xoxo'); $this->elementStart('ul', 'tags xoxo');
foreach ($tags as $tag) { foreach ($tags as $tag) {
$this->elementStart('li'); $this->elementStart('li');

View File

@ -156,8 +156,7 @@ class ProfileList extends Widget
# Get tags # Get tags
$tags = Profile_tag::getTags($this->owner->id, $this->profile->id); $tags = Profile_tag::getTags($this->owner->id, $this->profile->id);
$this->out->elementStart('div', 'tags_user'); $this->out->elementStart('dl', 'user_tags');
$this->out->elementStart('dl');
$this->out->elementStart('dt'); $this->out->elementStart('dt');
if ($user->id == $this->owner->id) { if ($user->id == $this->owner->id) {
$this->out->element('a', array('href' => common_local_url('tagother', $this->out->element('a', array('href' => common_local_url('tagother',
@ -166,13 +165,13 @@ class ProfileList extends Widget
} else { } else {
$this->out->text(_('Tags')); $this->out->text(_('Tags'));
} }
$this->out->text(":");
$this->out->elementEnd('dt'); $this->out->elementEnd('dt');
$this->out->elementStart('dd'); $this->out->elementStart('dd');
if ($tags) { if ($tags) {
$this->out->elementStart('ul', 'tags xoxo'); $this->out->elementStart('ul', 'tags xoxo');
foreach ($tags as $tag) { foreach ($tags as $tag) {
$this->out->elementStart('li'); $this->out->elementStart('li');
$this->element('span', 'mark_hash', '#');
$this->out->element('a', array('rel' => 'tag', $this->out->element('a', array('rel' => 'tag',
'href' => common_local_url($this->action, 'href' => common_local_url($this->action,
array('nickname' => $this->owner->nickname, array('nickname' => $this->owner->nickname,
@ -186,7 +185,6 @@ class ProfileList extends Widget
} }
$this->out->elementEnd('dd'); $this->out->elementEnd('dd');
$this->out->elementEnd('dl'); $this->out->elementEnd('dl');
$this->out->elementEnd('div');
} }
if ($user && $user->id == $this->owner->id) { if ($user && $user->id == $this->owner->id) {