added DocNav EVENT

Event to overide DocNav
two small css changes to indent notice footer correctly.
This commit is contained in:
buttle 2015-02-24 21:51:31 +01:00
parent 27bc654b5b
commit b9d4a9c9f9
3 changed files with 18 additions and 4 deletions

View 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!) - $out: HTMLOutputter used to output (usually an Action, but not always!)
- $menu: The Menu object outputted as a submenu. - $menu: The Menu object outputted as a submenu.
- $label: Localized text which represents the menu item. - $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

View File

@ -174,11 +174,15 @@ class DocNav extends Menu
{ {
function show() function show()
{ {
if (Event::handle('StartDocNav', array($this))) {
$stub = new HomeStubNav($this->action); $stub = new HomeStubNav($this->action);
$this->submenu(_m('MENU','Home'), $stub); $this->submenu(_m('MENU','Home'), $stub);
$docs = new DocListNav($this->action); $docs = new DocListNav($this->action);
$this->submenu(_m('MENU','Docs'), $docs); $this->submenu(_m('MENU','Docs'), $docs);
Event::handle('EndDocNav', array($this));
}
} }
} }

View File

@ -1456,6 +1456,10 @@ margin-left:0;
margin-left: 56px; margin-left: 56px;
} }
.threaded-replies .notice > footer, .section .notice > footer {
margin-left:33px;
}
.notice > footer .timestamp span.p-name { .notice > footer .timestamp span.p-name {
display: none; display: none;
} }