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:
parent
bc15d027a8
commit
042b01d169
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user