mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 03:19:13 -04:00
Create a theme_view function script which allows modules in the head or admin_head functions to specify javascript files that are required for this page.
In this commit, these script files are expressed at the end of the head or admin_head calls and appended to the beginning of the block stack. In a future commit these will be combined and gzipped for download.
This commit is contained in:
@@ -19,8 +19,8 @@
|
||||
*/
|
||||
class comment_theme_Core {
|
||||
static function head($theme) {
|
||||
$url = url::file("modules/comment/js/comment.js");
|
||||
return "<script src=\"$url\" type=\"text/javascript\"></script>\n";
|
||||
$theme->script("modules/comment/js/comment.js");
|
||||
return "";
|
||||
}
|
||||
|
||||
static function photo_bottom($theme) {
|
||||
|
||||
Reference in New Issue
Block a user