diff options
author | Bharat Mediratta <bharat@menalto.com> | 2011-01-10 22:20:12 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2011-01-10 22:20:12 -0800 |
commit | 5ac49d497f51a3828c1254b5024a4aa898f86530 (patch) | |
tree | 9463433526813e5fd234a351308b7ce1c15c9e70 /modules/gallery/libraries/Theme_View.php | |
parent | 9dfb733ad7d5e7e5aa002833d52d1b8642609161 (diff) |
Create new APIs for allowing themers to control what CSS/JS get
combined and when. Backwards compatible in that old themes will work,
but their CSS/JS will no longer be combined unless they make some
changes. Fixes #1600.
Diffstat (limited to 'modules/gallery/libraries/Theme_View.php')
-rw-r--r-- | modules/gallery/libraries/Theme_View.php | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/modules/gallery/libraries/Theme_View.php b/modules/gallery/libraries/Theme_View.php index ba1862c0..04784ca1 100644 --- a/modules/gallery/libraries/Theme_View.php +++ b/modules/gallery/libraries/Theme_View.php @@ -236,13 +236,6 @@ class Theme_View_Core extends Gallery_View { case "thumb_bottom": case "thumb_info": case "thumb_top": - if ($function == "head") { - // Stash any CSS we have already; that came from the theme and we want theme CSS to - // override module CSs - $save_css = $this->css; - $this->css = array(); - } - $blocks = array(); if (method_exists("gallery_theme", $function)) { switch (count($args)) { @@ -281,13 +274,6 @@ class Theme_View_Core extends Gallery_View { array_merge(array($this), $args)); } - if ($function == "head") { - // Merge the theme CSS/JS at the end - $this->css = array_merge($this->css, $save_css); - array_unshift($blocks, $this->combine_files($this->scripts, "javascript")); - array_unshift($blocks, $this->combine_files($this->css, "css")); - } - if (Session::instance()->get("debug")) { if ($function != "head" && $function != "body_attributes") { array_unshift( |