forked from GNUsocial/gnu-social
Hook for setting document content type, charset, language, DOCTYPE and
html element properties
This commit is contained in:
parent
240ea96921
commit
7af6f5392b
@ -88,3 +88,9 @@ StartShowLocalNavBlock: Showing the local nav menu
|
|||||||
EndShowLocalNavBlock: At the end of the local nav menu
|
EndShowLocalNavBlock: At the end of the local nav menu
|
||||||
- $action: the current action
|
- $action: the current action
|
||||||
|
|
||||||
|
StartShowHTML: Chance to set document content type, charset, language, DOCTYPE and html element properties
|
||||||
|
- $action: the current action
|
||||||
|
|
||||||
|
EndShowHTML: Showing after the html element
|
||||||
|
- $action: the current action
|
||||||
|
|
||||||
|
@ -93,7 +93,10 @@ class Action extends HTMLOutputter // lawsuit
|
|||||||
*/
|
*/
|
||||||
function showPage()
|
function showPage()
|
||||||
{
|
{
|
||||||
$this->startHTML();
|
if (Event::handle('StartShowHTML', array($this))) {
|
||||||
|
$this->startHTML();
|
||||||
|
Event::handle('EndShowHTML', array($this));
|
||||||
|
}
|
||||||
$this->showHead();
|
$this->showHead();
|
||||||
$this->showBody();
|
$this->showBody();
|
||||||
$this->endHTML();
|
$this->endHTML();
|
||||||
|
Loading…
Reference in New Issue
Block a user