Extracted the showLocalNav block information into its own method in

order to override it from other actions. This HTML need not be
outputted if there is no page_notice.
This commit is contained in:
sarven 2009-01-19 17:04:59 +00:00
parent bc15d027a8
commit 042b01d169

View File

@ -301,15 +301,20 @@ class Action extends HTMLOutputter // lawsuit
function showCore()
{
$this->elementStart('div', array('id' => 'core'));
$this->showLocalNavBlock();
$this->elementEnd('dl');
$this->showContentBlock();
$this->showAside();
$this->elementEnd('div');
}
function showLocalNavBlock()
{
$this->elementStart('dl', array('id' => 'site_nav_local_views'));
$this->element('dt', null, _('Local views'));
$this->elementStart('dd');
$this->showLocalNav();
$this->elementEnd('dd');
$this->elementEnd('dl');
$this->showContentBlock();
$this->showAside();
$this->elementEnd('div');
}
// SHOULD overload