]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Event/rsvplistitem.php
allow setting some initial tags on a new network
[quix0rs-gnu-social.git] / plugins / Event / rsvplistitem.php
index 4ca36a94471169754fbc7ae8285bbc0e4c179a73..fef1c9debb3c94f2895efb1b34f5b22e9948091d 100644 (file)
@@ -4,7 +4,7 @@
  * Copyright (C) 2011, StatusNet, Inc.
  *
  * Title of module
- * 
+ *
  * PHP version 5
  *
  * This program is free software: you can redistribute it and/or modify
@@ -44,15 +44,26 @@ if (!defined('STATUSNET')) {
  * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
  * @link      http://status.net/
  */
-
 class RSVPListItem extends NoticeListItemAdapter
 {
-    function showRSVPNotice($notice, $out)
+    function showNotice()
+    {
+        $this->nli->out->elementStart('div', 'entry-title');
+        $this->nli->showAuthor();
+        $this->showContent();
+        $this->nli->out->elementEnd('div');
+    }
+
+    function showContent()
     {
+        $notice = $this->nli->notice;
+        $out    = $this->nli->out;
+
         $rsvp = RSVP::fromNotice($notice);
 
         if (empty($rsvp)) {
-            $out->element('p', null, _('Deleted.'));
+            // TRANS: Content for a deleted RSVP list item (RSVP stands for "please respond").
+            $out->element('p', null, _m('Deleted.'));
             return;
         }