]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
added DocNav EVENT
authorbuttle <chris@gatopelao.org>
Tue, 24 Feb 2015 20:51:31 +0000 (21:51 +0100)
committerbuttle <chris@gatopelao.org>
Tue, 24 Feb 2015 20:51:31 +0000 (21:51 +0100)
Event to overide DocNav
two small css changes to indent notice footer correctly.

EVENTS.txt
actions/doc.php
theme/base/css/display.css

index 4f4121ac38b6b13c451a5ca4619b1c366b0ad098..088ce8c024b05079d724118f983220719277c56d 100644 (file)
@@ -1481,3 +1481,9 @@ EndSubMenu: After outputting a submenu (including enclosing tags) to HTML
 - $out:     HTMLOutputter used to output (usually an Action, but not always!)
 - $menu:    The Menu object outputted as a submenu.
 - $label:   Localized text which represents the menu item.
+
+StartDocNav: Before outputting the docs Nav
+- $nav: The DoclNav widget
+
+EndDocNav: After outputting the docs Nav
+- $nav: The DoclNav widget
index 6db3830ce1bcf3477e12a27c5823e503924acbcc..85d35d8fcf5cf8596e3700444f7115878ba3b576 100644 (file)
@@ -174,11 +174,15 @@ class DocNav extends Menu
 {
     function show()
     {
-        $stub = new HomeStubNav($this->action);
-        $this->submenu(_m('MENU','Home'), $stub);
-
-        $docs = new DocListNav($this->action);
-        $this->submenu(_m('MENU','Docs'), $docs);
+        if (Event::handle('StartDocNav', array($this))) {
+            $stub = new HomeStubNav($this->action);
+            $this->submenu(_m('MENU','Home'), $stub);
+
+            $docs = new DocListNav($this->action);
+            $this->submenu(_m('MENU','Docs'), $docs);
+            
+            Event::handle('EndDocNav', array($this));
+        }
     }
 }
 
index 7d28cee8df4d387a70a48d262692e0d81e990389..999fce7f83ce092d48c265444d20195c69838935 100644 (file)
@@ -1456,6 +1456,10 @@ margin-left:0;
     margin-left: 56px;
 }
 
+.threaded-replies .notice > footer, .section .notice > footer {
+    margin-left:33px;
+}
+
 .notice > footer .timestamp span.p-name {
     display: none;
 }