1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <?php
- if (!defined('STATUSNET')) {
-
-
- exit(1);
- }
- class SystemListItem extends NoticeListItemAdapter
- {
-
- function showNotice()
- {
- $out = $this->nli->out;
- $out->elementStart('div', 'entry-title');
- $this->showContent();
- $out->elementEnd('div');
- }
- function showContent()
- {
- $notice = $this->nli->notice;
- $out = $this->nli->out;
-
- $out->elementStart('div', 'system-activity');
- $out->raw($notice->rendered);
- $out->elementEnd('div');
- }
- function showNoticeOptions()
- {
- if (Event::handle('StartShowNoticeOptions', array($this))) {
- $user = common_current_user();
- if (!empty($user)) {
- $this->nli->out->elementStart('div', 'notice-options');
- if (Event::handle('StartShowNoticeOptionItems', array($this))) {
- $this->showReplyLink();
- Event::handle('EndShowNoticeOptionItems', array($this));
- }
- $this->nli->out->elementEnd('div');
- }
- Event::handle('EndShowNoticeOptions', array($this));
- }
- }
- }
|