I was wondering what is the best way to refer to the current theme directory in code.
I found a page in dev documentation
http://docs.moodle.org/dev/Theme_directory_guide
But it is out of date since it says to use function current_theme() which is deprecated and found in deprecatedlib.php (documentation should be updated)
Comment in deprecatedlib.php says to use $PAGE->theme->name, but that only gives the theme name, I also need the theme directory.
I thought I'd use $CFG->themedir expecting it to be said to document root slash theme if not otherwise specified, but find it empty (moodle 2.3). How is it supposed to work?
Thank you in advance, and thank you for all the great work.