Beispiel #1
0
 /**
  * When some replies are hidden because the are nested too deep,
  * this method creates a link that can be used to show the hidden
  * threats.
  * @param $thread Thread
  * @return string Html
  */
 function getShowReplies(Thread $thread)
 {
     $linkText = wfMessage('lqt-thread-show-replies')->numParams($thread->replyCount())->parse();
     $linkTitle = clone $thread->topmostThread()->title();
     $linkTitle->setFragment('#' . $thread->getAnchorName());
     $link = Linker::link($linkTitle, $linkText, array('class' => 'lqt-show-replies'));
     $link = Xml::tags('div', array('class' => 'lqt-thread-replies'), $link);
     return $link;
 }