function __construct($special) { parent::__construct($special); }
/** * Show a list of available banners. Newer banners are shown first. */ function showList() { global $wgOut; $sk = $this->getSkin(); $pager = new TemplatePager($this); // Begin building HTML $htmlOut = ''; // Begin Manage Banners fieldset $htmlOut .= Html::openElement('fieldset', array('class' => 'prefsection')); if (!$pager->getNumRows()) { $htmlOut .= Html::element('p', null, wfMsg('centralnotice-no-templates')); } else { if ($this->editable) { $htmlOut .= Html::openElement('form', array('method' => 'post')); } $htmlOut .= Html::element('h2', null, wfMsg('centralnotice-manage-templates')); // Show paginated list of banners $htmlOut .= Xml::tags('div', array('class' => 'cn-pager'), $pager->getNavigationBar()); $htmlOut .= $pager->getBody(); $htmlOut .= Xml::tags('div', array('class' => 'cn-pager'), $pager->getNavigationBar()); if ($this->editable) { $htmlOut .= Html::closeElement('form'); } } if ($this->editable) { $htmlOut .= Html::element('p'); $newPage = $this->getTitle('add'); $htmlOut .= $sk->makeLinkObj($newPage, wfMsgHtml('centralnotice-add-template')); } // End Manage Banners fieldset $htmlOut .= Html::closeElement('fieldset'); $wgOut->addHTML($htmlOut); }