]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Extracted the showLocalNav block information into its own method in
authorsarven <csarven@plantard.controlezvous.ca>
Mon, 19 Jan 2009 17:04:59 +0000 (17:04 +0000)
committersarven <csarven@plantard.controlezvous.ca>
Mon, 19 Jan 2009 17:04:59 +0000 (17:04 +0000)
order to override it from other actions. This HTML need not be
outputted if there is no page_notice.

lib/action.php

index c056c128fb135bac1b0355e6a3d2299ab1027874..d385c3cb5dfb977f59e4737c20cf8303d73872b3 100644 (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