summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorsarven <csarven@plantard.controlezvous.ca>2009-01-19 17:04:59 +0000
committersarven <csarven@plantard.controlezvous.ca>2009-01-19 17:04:59 +0000
commit042b01d169bc26444e1150c8a01dd0f5bb9d2f4f (patch)
tree9e36f06e40fe9c6c1a576d470787d7e60594b3ae /lib
parentbc15d027a804e60e76bdaf6fd47e69d41b395e7e (diff)
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/action.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/action.php b/lib/action.php
index c056c128f..d385c3cb5 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -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