We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 042b01d1 authored by sarven's avatar sarven

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.
parent bc15d027
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment