We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 9421b364 authored by Evan Prodromou's avatar Evan Prodromou

add an event for head children

parent 8dcb6c86
...@@ -158,6 +158,12 @@ StartShowBody: called before showing the <body> element and children ...@@ -158,6 +158,12 @@ StartShowBody: called before showing the <body> element and children
EndShowBody: called after showing the <body> element (and </body>) EndShowBody: called after showing the <body> element (and </body>)
- $action: action object being shown - $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 StartPersonalGroupNav: beginning of personal group nav menu
- $action: action object being shown - $action: action object being shown
......
...@@ -120,14 +120,17 @@ class Action extends HTMLOutputter // lawsuit ...@@ -120,14 +120,17 @@ class Action extends HTMLOutputter // lawsuit
{ {
// XXX: attributes (profile?) // XXX: attributes (profile?)
$this->elementStart('head'); $this->elementStart('head');
$this->showTitle(); if (Event::handle('StartHeadChildren', array($this))) {
$this->showShortcutIcon(); $this->showTitle();
$this->showStylesheets(); $this->showShortcutIcon();
$this->showScripts(); $this->showStylesheets();
$this->showOpenSearch(); $this->showScripts();
$this->showFeeds(); $this->showOpenSearch();
$this->showDescription(); $this->showFeeds();
$this->extraHead(); $this->showDescription();
$this->extraHead();
Event::handle('EndHeadChildren', array($this));
}
$this->elementEnd('head'); $this->elementEnd('head');
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment