Fixup rendering of event and RSVP
This commit is contained in:
parent
1ab8004d78
commit
0e4029ecb6
@ -296,6 +296,7 @@ class EventPlugin extends MicroappPlugin
|
|||||||
return new RSVPListItem($nli);
|
return new RSVPListItem($nli);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ class EventListItem extends NoticeListItemAdapter
|
|||||||
$this->nli->out->elementEnd('div');
|
$this->nli->out->elementEnd('div');
|
||||||
}
|
}
|
||||||
|
|
||||||
function showEventNotice($notice, $out)
|
function showContent($notice, $out)
|
||||||
{
|
{
|
||||||
$profile = $notice->getProfile();
|
$profile = $notice->getProfile();
|
||||||
$event = Happening::fromNotice($notice);
|
$event = Happening::fromNotice($notice);
|
||||||
|
@ -47,7 +47,15 @@ if (!defined('STATUSNET')) {
|
|||||||
|
|
||||||
class RSVPListItem extends NoticeListItemAdapter
|
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);
|
$rsvp = RSVP::fromNotice($notice);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user