$strcoursedisplay = get_string("coursedisplay");
if (isediting($course->id)) {
$strmarkthistopic = get_string("markthistopic");
+ $strmarkedthistopic = get_string("markedthistopic");
$strtopichide = get_string("topichide", "", moodle_strtolower($course->students));
$strtopicshow = get_string("topicshow", "", moodle_strtolower($course->students));
}
echo "<td nowrap $colorsides valign=top align=center width=10>";
echo "<font size=1>";
- if ($displaysection == $section) { // Show the zoom box
+ if ($displaysection == $section) { // Show the zoom boxes
echo "<a href=\"view.php?id=$course->id&topic=all\" title=\"$strshowalltopics\">".
"<img src=\"$pixpath/i/all.gif\" height=25 width=16 border=0></a><br />";
} else {
"<img src=\"$pixpath/i/one.gif\" height=16 width=16 border=0></a><br />";
}
- if (isediting($course->id)) { // Show the hide/show eye
- $strmarkthistopic = get_string("markthistopic");
- if ($thissection->visible) {
+ if (isediting($course->id)) {
+ if ($course->marker == $section) { // Show the "light globe" on/off
+ echo "<a href=\"view.php?id=$course->id&marker=0\" title=\"$strmarkedthistopic\">".
+ "<img src=\"$pixpath/i/marked.gif\" height=16 width=16 border=0></a><br />";
+ } else {
+ echo "<a href=\"view.php?id=$course->id&marker=$section\" title=\"$strmarkthistopic\">".
+ "<img src=\"$pixpath/i/marker.gif\" height=16 width=16 border=0></a><br />";
+ }
+
+ if ($thissection->visible) { // Show the hide/show eye
echo "<a href=\"view.php?id=$course->id&hide=$section\" title=\"$strtopichide\">".
"<img src=\"$pixpath/i/hide.gif\" height=16 width=16 border=0></a><br />";
} else {
"<img src=\"$pixpath/i/show.gif\" height=16 width=16 border=0></a><br />";
}
- if ($course->marker != $section) { // Show the "tick"
- echo "<a href=\"view.php?id=$course->id&marker=$section\" title=\"$strmarkthistopic\">".
- "<img src=\"$pixpath/i/marker.gif\" height=16 width=16 border=0></a><br />";
- }
}
echo "</td>";
$string['makeeditable'] = "If you make '\$a' editable by the web server process (eg apache) then you could edit this file directly from this page";
$string['mainmenu'] = "Main menu";
$string['managedatabase'] = "Manage database";
+$string['markedthistopic'] = "This topic is highlighted as the current topic";
$string['markthistopic'] = "Highlight this topic as the current topic";
$string['maximumchars'] = "Maximum of \$a characters";
$string['maximumgrade'] = "Maximum grade";