Some questions:
What is the best way to get the Moodle theme URL in the theme layout scripts?
theme_config holds the dir but not the URL, so $PAGE->theme->dir delivers the directory. I need the theme URL.
Urs Hunkler
Posts made by Urs Hunkler
Some questions:
What is the best way to get the Moodle base URL in the theme layout scripts?
In the latest Moodle 2.0 version the theme javascript is loaded from the header. May be my question was ambiguous - therefor another one:
How do I define where JavaScript files linked from the theme are loaded. Some shall be loaded from the header, some shall be loaded from the footer.
How do I define where JavaScript files linked from the theme are loaded. Some shall be loaded from the header, some shall be loaded from the footer.
Working with the Moodle 2.0 design possibilities with themes and renderers is real fun 
I wish everybody a good new years night and a successful year 2010.
I wish everybody a good new years night and a successful year 2010.
Petr or Tim, how do I define JavaScript in the theme config.php to be loaded in the header?