X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fpeopletagsection.php;h=09953945160833adc519d10920d44f13cbecc2d0;hb=349e842078c5d69901df6ec9205cf7edcb4c4636;hp=20358cb85d9d51985c60b6d67788441dc28aa9ec;hpb=f0d762f1968fa0ac33b39d73cc9c0225c9e8a989;p=quix0rs-gnu-social.git diff --git a/lib/peopletagsection.php b/lib/peopletagsection.php index 20358cb85d..0995394516 100644 --- a/lib/peopletagsection.php +++ b/lib/peopletagsection.php @@ -48,6 +48,8 @@ define('PEOPLETAGS_PER_SECTION', 6); */ class PeopletagSection extends Section { + protected $avatarSize = AVATAR_MINI_SIZE; + function showContent() { $tags = $this->getPeopletags(); @@ -104,10 +106,11 @@ class PeopletagSectionItem extends PeopletagListItem 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'); @@ -119,13 +122,14 @@ class PeopletagSectionItem extends PeopletagListItem 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(), @@ -133,9 +137,4 @@ class PeopletagSectionItem extends PeopletagListItem htmlspecialchars($this->peopletag->tag)); $this->out->elementEnd('span'); } - - function showAvatar() - { - parent::showAvatar(AVATAR_MINI_SIZE); - } }