コード例 #1
0
 /**
  * Build the footer for the notification (timestamp and secondary link)
  * @param EchoEvent $event
  * @param User $user The user to format the notification for.
  * @return String HTML
  */
 protected function formatFooter($event, $user)
 {
     global $wgLang;
     // Default footer is timestamp
     $footer = $this->formatTimestamp($event->getTimestamp());
     $secondaryLink = $this->getLink($event, $user, 'secondary');
     if ($secondaryLink) {
         $footer = $wgLang->pipeList(array($footer, $secondaryLink));
     }
     return Xml::tags('div', array('class' => 'mw-echo-notification-footer'), $footer) . "\n";
 }