On 4/13/2010 5:08 PM, Chad wrote:
You probably should be specifying dependencies when adding
scripts,http://wiki.habariproject.org/en/Dev:Adding_Javascript_and_CSS#Stack_....
I'll make the changes when I have a minute and update the page. Is it
ok that I put these lines of code in my theme.php file? Also is there
a more elegant way to get my theme's directory than just hard-coding
it in theme.php?
You can put the code in your theme.php file. It's probably ideal to put
those calls inside of a hook function so that you know exactly when they
will execute and can control that (so that it doesn't execute on pages
that don't need it).
action_init_theme() is potentially a good hook for that.
You can use Site::get_url('theme') to obtain the current theme's URL.
Likewise, you can use Site::get_dir('theme') to obtain the current
theme's directory.
Owen
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev
To unsubscribe, reply using "remove me" as the subject.