add an event for head children
This commit is contained in:
parent
8dcb6c86ae
commit
9421b36498
@ -158,6 +158,12 @@ StartShowBody: called before showing the <body> element and children
|
||||
EndShowBody: called after showing the <body> element (and </body>)
|
||||
- $action: action object being shown
|
||||
|
||||
StartHeadChildren: called before showing the children of <head> element (after <head> tag)
|
||||
- $action: action object being shown
|
||||
|
||||
EndHeadChildren: called after showing the children of <head> element (before </head>)
|
||||
- $action: action object being shown
|
||||
|
||||
StartPersonalGroupNav: beginning of personal group nav menu
|
||||
- $action: action object being shown
|
||||
|
||||
|
@ -120,6 +120,7 @@ class Action extends HTMLOutputter // lawsuit
|
||||
{
|
||||
// XXX: attributes (profile?)
|
||||
$this->elementStart('head');
|
||||
if (Event::handle('StartHeadChildren', array($this))) {
|
||||
$this->showTitle();
|
||||
$this->showShortcutIcon();
|
||||
$this->showStylesheets();
|
||||
@ -128,6 +129,8 @@ class Action extends HTMLOutputter // lawsuit
|
||||
$this->showFeeds();
|
||||
$this->showDescription();
|
||||
$this->extraHead();
|
||||
Event::handle('EndHeadChildren', array($this));
|
||||
}
|
||||
$this->elementEnd('head');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user