\n";
+ echo "id\">"
+ . format_string($course->fullname) . " | \n";
+ echo "".$displaylist[$course->category]." | \n";
+ echo "\n";
// this is ok since this will get inherited from course category context
// if it is set
if (has_capability('moodle/category:update', $coursecontext)) {
- echo "id\">";
+ echo "id\" />\n";
} else {
- echo "id\" disabled=\"disabled\">";
+ echo "id\" disabled=\"disabled\" />\n";
}
- echo " | ";
- echo "";
+ echo " | \n";
+ echo "\n";
$pixpath = $CFG->pixpath;
// checks whether user can update course settings
if (has_capability('moodle/course:update', $coursecontext)) {
- echo "wwwroot/course/edit.php?id=$course->id\"> ";
+ echo "wwwroot/course/edit.php?id=$course->id\">\n\n ";
}
// checks whether user can do role assignment
if (has_capability('moodle/role:assign', $coursecontext)) {
echo'';
- echo ' ';
+ echo ' ' . "\n";
}
// checks whether user can delete course
if (has_capability('moodle/course:delete', $coursecontext)) {
- echo "id\"> ";
+ echo "id\">\n\n ";
}
// checks whether user can change visibility
if (has_capability('moodle/course:visibility', $coursecontext)) {
if (!empty($course->visible)) {
- echo "id&sesskey=$USER->sesskey\"> ";
+ echo "id&sesskey=$USER->sesskey\">\n\n ";
} else {
- echo "id&sesskey=$USER->sesskey\"> ";
+ echo "id&sesskey=$USER->sesskey\">\n\n ";
}
}
// checks whether user can do site backup
if (has_capability('moodle/site:backup', $coursecontext)) {
- echo "id\"> ";
+ echo "id\">\n\n ";
}
// checks whether user can do restore
if (has_capability('moodle/site:restore', $coursecontext)) {
- echo "id&wdir=/backupdata\"> ";
+ echo "id&wdir=/backupdata\">\n\n ";
}
- echo " |
";
+ echo "\n\n";
}
- echo "