I am making a block that is course manager which will show the section wise activities of the course.I want that when teacher/admin click on any activity in block then it goes to modedit.php,i need three tabs on modedit.php page .I did it using methos given on http://docs.moodle.org/dev/Themes_2.0_overriding_a_renderer but this make the feature theme dependent i.Is any other way to do .I also used javascript within php file but all javscript goes to header .