From 0e4029ecb60e6ef2e0167e6b410adc0fadefdf76 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 20 Apr 2011 10:57:46 -0400 Subject: [PATCH] Fixup rendering of event and RSVP --- plugins/Event/EventPlugin.php | 1 + plugins/Event/eventlistitem.php | 2 +- plugins/Event/rsvplistitem.php | 10 +++++++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/plugins/Event/EventPlugin.php b/plugins/Event/EventPlugin.php index 0cb62cf59e..a9644e7a2c 100644 --- a/plugins/Event/EventPlugin.php +++ b/plugins/Event/EventPlugin.php @@ -296,6 +296,7 @@ class EventPlugin extends MicroappPlugin return new RSVPListItem($nli); break; } + return null; } diff --git a/plugins/Event/eventlistitem.php b/plugins/Event/eventlistitem.php index 3d2d3ecd8f..a6bfc13cbd 100644 --- a/plugins/Event/eventlistitem.php +++ b/plugins/Event/eventlistitem.php @@ -55,7 +55,7 @@ class EventListItem extends NoticeListItemAdapter $this->nli->out->elementEnd('div'); } - function showEventNotice($notice, $out) + function showContent($notice, $out) { $profile = $notice->getProfile(); $event = Happening::fromNotice($notice); diff --git a/plugins/Event/rsvplistitem.php b/plugins/Event/rsvplistitem.php index 4ca36a9447..4d7d785e88 100644 --- a/plugins/Event/rsvplistitem.php +++ b/plugins/Event/rsvplistitem.php @@ -47,7 +47,15 @@ if (!defined('STATUSNET')) { 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, $out) { $rsvp = RSVP::fromNotice($notice); -- 2.39.5