This was a great post, and exactly what I was looking for. Thanks
One small suggestion that might help some people (like me). The way you have this set up, it will only use the default calendar configuration. If you would like to use one of the other calendar configurations, the include needs to be changed somewhat to:
include("
http://www.yourdomain.com/moodle_dir/calendar/escalendar.php?uc=4");
A different attempt to use a config argument:
include("../calendar/escalendar.php?uc=4");
does not work because the include statement looks for a file named "escalendar.php?uc=4" which doesn't exist.
By making the include() a
URL, you can then send arguments to the script, such as the "uc=4" (use configuration four) argument. My big reason for this was so that I could make the date background color the same as the Moodle theme I was using
The attached graphic shows this in
context.
Moodle rocks...
Dan