From: moodler Date: Sun, 4 May 2003 12:34:43 +0000 (+0000) Subject: More tweaks to the topic interface ... nice light globes! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8140c67e4504d58bea2ad95e75193453d3072a9e;p=moodle.git More tweaks to the topic interface ... nice light globes! --- diff --git a/course/topics.php b/course/topics.php index 2f3766f741..94df410c34 100644 --- a/course/topics.php +++ b/course/topics.php @@ -36,6 +36,7 @@ $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)); } @@ -198,7 +199,7 @@ echo ""; echo ""; - if ($displaysection == $section) { // Show the zoom box + if ($displaysection == $section) { // Show the zoom boxes echo "id&topic=all\" title=\"$strshowalltopics\">". "
"; } else { @@ -207,9 +208,16 @@ "
"; } - 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 "id&marker=0\" title=\"$strmarkedthistopic\">". + "
"; + } else { + echo "id&marker=$section\" title=\"$strmarkthistopic\">". + "
"; + } + + if ($thissection->visible) { // Show the hide/show eye echo "id&hide=$section\" title=\"$strtopichide\">". "
"; } else { @@ -217,10 +225,6 @@ "
"; } - if ($course->marker != $section) { // Show the "tick" - echo "id&marker=$section\" title=\"$strmarkthistopic\">". - "
"; - } } echo ""; diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 40bc73705a..6a7ac547dc 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -346,6 +346,7 @@ $string['makeafolder'] = "Make a folder"; $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"; diff --git a/pix/i/marked.gif b/pix/i/marked.gif new file mode 100755 index 0000000000..18949cd8e6 Binary files /dev/null and b/pix/i/marked.gif differ diff --git a/pix/i/marker.gif b/pix/i/marker.gif index 6f0dbbf20a..6fc2690e9f 100755 Binary files a/pix/i/marker.gif and b/pix/i/marker.gif differ