Markup update for common_tag_link(), common_at_link(),

common_at_hash_link()
This commit is contained in:
sarven 2009-01-16 01:55:39 +00:00
parent 179ad6c13b
commit 5d5dcb6f51

View File

@ -571,7 +571,7 @@ function common_tag_link($tag)
{ {
$canonical = common_canonical_tag($tag); $canonical = common_canonical_tag($tag);
$url = common_local_url('tag', array('tag' => $canonical)); $url = common_local_url('tag', array('tag' => $canonical));
return '<a href="' . htmlspecialchars($url) . '" rel="tag" class="hashlink">' . htmlspecialchars($tag) . '</a>'; return '<span class="tag"><a href="' . htmlspecialchars($url) . '" rel="tag">' . htmlspecialchars($tag) . '</a></span>';
} }
function common_canonical_tag($tag) function common_canonical_tag($tag)
@ -589,7 +589,7 @@ function common_at_link($sender_id, $nickname)
$sender = Profile::staticGet($sender_id); $sender = Profile::staticGet($sender_id);
$recipient = common_relative_profile($sender, common_canonical_nickname($nickname)); $recipient = common_relative_profile($sender, common_canonical_nickname($nickname));
if ($recipient) { if ($recipient) {
return '<a href="'.htmlspecialchars($recipient->profileurl).'" class="atlink">'.$nickname.'</a>'; return '<span class="vcard"><a href="'.htmlspecialchars($recipient->profileurl).'" class="url"><span class="fn nickname">'.$nickname.'</span></a></span>';
} else { } else {
return $nickname; return $nickname;
} }
@ -606,7 +606,7 @@ function common_at_hash_link($sender_id, $tag)
$url = common_local_url('subscriptions', $url = common_local_url('subscriptions',
array('nickname' => $user->nickname, array('nickname' => $user->nickname,
'tag' => $tag)); 'tag' => $tag));
return '<a href="'.htmlspecialchars($url).'" class="atlink">'.$tag.'</a>'; return '<span class="tag"><a href="'.htmlspecialchars($url).'" rel="tag">'.$tag.'</a></span>';
} else { } else {
return $tag; return $tag;
} }