diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-07-22 14:27:57 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-22 14:27:57 -0700 |
commit | dbeadc1407293d0c7af36723db6fe5699890b845 (patch) | |
tree | 624bd39ec7f737cc41bd5af099bd934f7ec00025 /modules/digibug/helpers | |
parent | 4854003f41fa8a57dc687b9a65a99498fc7c46bc (diff) |
Use the Kohana cascading filesystem to locate resources loaded by the
theme. Because the theme comes first, this means that themes can
override any module resources, at the cost that we no longer have
namespacing for JS and CSS files.
The only file getting used outside of this model is
themes/default/screen.css which is used in the admin theme. I fixed
that by copying screen.css into admin_default and renaming its
screen.css to admin_screen.css. I also copied over all the images
that it was referencing.
Fixes tickets #48 and #539.
Theme API changes:
- theme_script(), theme_url() and theme_css() are no longer needed
- script(), url() and css() now refer to the first matching asset in
the module load path, where gallery3/lib is at the end of the path
Diffstat (limited to 'modules/digibug/helpers')
-rw-r--r-- | modules/digibug/helpers/digibug_theme.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/digibug/helpers/digibug_theme.php b/modules/digibug/helpers/digibug_theme.php index f94d07c6..ceda55b5 100644 --- a/modules/digibug/helpers/digibug_theme.php +++ b/modules/digibug/helpers/digibug_theme.php @@ -19,6 +19,6 @@ */ class digibug_theme_Core { static function head($theme) { - $theme->script("modules/digibug/js/digibug.js"); + $theme->script("digibug.js"); } } |