From b9d4a9c9f93c812705b5f60691057b57fd0db45b Mon Sep 17 00:00:00 2001
From: buttle <chris@gatopelao.org>
Date: Tue, 24 Feb 2015 21:51:31 +0100
Subject: [PATCH] added DocNav EVENT

Event to overide DocNav
two small css changes to indent notice footer correctly.
---
 EVENTS.txt                 |  6 ++++++
 actions/doc.php            | 14 +++++++++-----
 theme/base/css/display.css |  4 ++++
 3 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/EVENTS.txt b/EVENTS.txt
index 4f4121ac38..088ce8c024 100644
--- a/EVENTS.txt
+++ b/EVENTS.txt
@@ -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
diff --git a/actions/doc.php b/actions/doc.php
index 6db3830ce1..85d35d8fcf 100644
--- a/actions/doc.php
+++ b/actions/doc.php
@@ -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));
+        }
     }
 }
 
diff --git a/theme/base/css/display.css b/theme/base/css/display.css
index 7d28cee8df..999fce7f83 100644
--- a/theme/base/css/display.css
+++ b/theme/base/css/display.css
@@ -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;
 }
-- 
2.39.5