forked from GNUsocial/gnu-social
move scripts to just before </body>, add event for scripts that need to be in <head>
This commit is contained in:
parent
c5047fd90a
commit
9c460d591e
@ -120,14 +120,16 @@ class Action extends HTMLOutputter // lawsuit
|
|||||||
{
|
{
|
||||||
// XXX: attributes (profile?)
|
// XXX: attributes (profile?)
|
||||||
$this->elementStart('head');
|
$this->elementStart('head');
|
||||||
|
if (Event::handle('StartShowHeadElements', array($this))) {
|
||||||
$this->showTitle();
|
$this->showTitle();
|
||||||
$this->showShortcutIcon();
|
$this->showShortcutIcon();
|
||||||
$this->showStylesheets();
|
$this->showStylesheets();
|
||||||
$this->showScripts();
|
|
||||||
$this->showOpenSearch();
|
$this->showOpenSearch();
|
||||||
$this->showFeeds();
|
$this->showFeeds();
|
||||||
$this->showDescription();
|
$this->showDescription();
|
||||||
$this->extraHead();
|
$this->extraHead();
|
||||||
|
Event::handle('EndShowHeadElements', array($this));
|
||||||
|
}
|
||||||
$this->elementEnd('head');
|
$this->elementEnd('head');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -352,6 +354,7 @@ class Action extends HTMLOutputter // lawsuit
|
|||||||
Event::handle('EndShowFooter', array($this));
|
Event::handle('EndShowFooter', array($this));
|
||||||
}
|
}
|
||||||
$this->elementEnd('div');
|
$this->elementEnd('div');
|
||||||
|
$this->showScripts();
|
||||||
$this->elementEnd('body');
|
$this->elementEnd('body');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user