Hello,
In the header.html file of a Moodle theme we can detect whether we are on the site's home page, through the &home variable. This is used to display a different header, as in:
<?php if ($home) { // This is what gets printed on the home page only etc.
Is there a similar way to detect if we are on the "home" page of a course? I need this to display a different type of header according to whether we are on a course home page or on any other part of the course. Something like $course-index ?
By the way, is it possible to have a list of all such variables which are available to header.html and footer.html ???
Thanks
Joseph