*/
class PeopletagSection extends Section
{
+ protected $avatarSize = AVATAR_MINI_SIZE;
+
function showContent()
{
$tags = $this->getPeopletags();
common_log(LOG_WARNING, "Trying to show missing peopletag; skipping.");
return;
}
+ $mode = ($this->peopletag->private) ? 'private' : 'public';
$this->out->elementStart('tr');
- $this->out->elementStart('td', 'peopletag');
+ $this->out->elementStart('td', 'peopletag mode-' . $mode);
$this->showPeopletag();
$this->out->elementEnd('td');
function showTag()
{
- // TRANS: Tag summary. %1$d is the number of users tagged with the tag,
- // TRANS: %2$d is the number of subscribers to the tag.
- $title = sprintf(_('Tagged: %1$d Subscribers: %2$d'),
+ // TRANS: List summary. %1$d is the number of users in the list,
+ // TRANS: %2$d is the number of subscribers to the list.
+ $title = sprintf(_('Listed: %1$d Subscribers: %2$d'),
$this->peopletag->taggedCount(),
$this->peopletag->subscriberCount());
$this->out->elementStart('span', 'entry-title tag');
+
$this->out->element('a',
array('rel' => 'bookmark',
'href' => $this->url(),
htmlspecialchars($this->peopletag->tag));
$this->out->elementEnd('span');
}
-
- function showAvatar()
- {
- parent::showAvatar(AVATAR_MINI_SIZE);
- }
}