12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?php
- if (!defined('GNUSOCIAL') && !defined('GNUSOCIAL')) { exit(1); }
- define('NOTICES_PER_SECTION', 6);
- abstract class NoticeSection extends Section
- {
- protected $addressees = false;
- protected $attachments = false;
- protected $maxchars = 140;
- protected $options = false;
- protected $show_n = NOTICES_PER_SECTION;
- function showContent()
- {
- $prefs = array();
- foreach (array('addressees', 'attachments', 'maxchars', 'options', 'show_n') as $key) {
- $prefs[$key] = $this->$key;
- }
- $prefs['id_prefix'] = $this->divId();
-
- $list = new NoticeList($this->getNotices(), $this->out, $prefs);
- $total = $list->show();
- return ($total > $this->show_n);
- }
- function getNotices()
- {
- return null;
- }
- }
|