X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Ftag.php;h=944cda1f4a16c3dceaa532b036266c952384b42a;hb=e0d5093ee58f921385eba533adb3f0d21dcf3b49;hp=9532404041597f44e94fe50fce2ac9725c37fca3;hpb=dd7b95c2cffe7e33f32d841ed8950e09b44b853d;p=quix0rs-gnu-social.git diff --git a/actions/tag.php b/actions/tag.php index 9532404041..944cda1f4a 100644 --- a/actions/tag.php +++ b/actions/tag.php @@ -64,8 +64,12 @@ class TagAction extends Action function title() { if ($this->page == 1) { + // TRANS: Title for first page of notices with tags. + // TRANS: %s is the tag. return sprintf(_('Notices tagged with %s'), $this->tag); } else { + // TRANS: Title for all but the first page of notices with tags. + // TRANS: %1$s is the tag, %2$d is the page number. return sprintf(_('Notices tagged with %1$s, page %2$d'), $this->tag, $this->page); @@ -102,12 +106,17 @@ class TagAction extends Action function showContent() { - $nl = new NoticeList($this->notice, $this); + if(Event::handle('StartTagShowContent', array($this))) { + + $nl = new NoticeList($this->notice, $this); - $cnt = $nl->show(); + $cnt = $nl->show(); - $this->pagination($this->page > 1, $cnt > NOTICES_PER_PAGE, - $this->page, 'tag', array('tag' => $this->tag)); + $this->pagination($this->page > 1, $cnt > NOTICES_PER_PAGE, + $this->page, 'tag', array('tag' => $this->tag)); + + Event::handle('EndTagShowContent', array($this)); + } } function isReadOnly($args)