From: moodler Date: Wed, 28 Jul 2004 11:52:39 +0000 (+0000) Subject: CLeaned up the code for the little buttons Thanks David Scotson! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dbcd54b7848ef2b13199d594f5e6acb51a908da2;p=moodle.git CLeaned up the code for the little buttons Thanks David Scotson! --- diff --git a/course/lib.php b/course/lib.php index 3b367d7ec8..401c2ac8d8 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1608,10 +1608,11 @@ function make_editing_buttons($mod, $absolute=false, $moveselect=true, $indent=- if ($mod->visible) { $hideshow = "hide\" href=\"$path/mod.php?hide=$mod->id\"> "; + " src=\"$pixpath/t/hide.gif\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\" alt=\"$str->hide\"> "; } else { $hideshow = "show\" href=\"$path/mod.php?show=$mod->id\"> "; + " src=\"$pixpath/t/show.gif\" hspace=\"2\" height=\"11\" width=\"11\" ". + "border=\"0\" alt=\"$str->show\"> "; } if ($mod->groupmode !== false) { if ($mod->groupmode == SEPARATEGROUPS) { @@ -1629,10 +1630,12 @@ function make_editing_buttons($mod, $absolute=false, $moveselect=true, $indent=- } if ($mod->groupmodelink) { $groupmode = "clicktochange)\" href=\"$grouplink\">". - ""; + "\"$grouptitle\""; } else { $groupmode = "forcedmode)\" ". - " src=\"$groupimage\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\">"; + " src=\"$groupimage\" hspace=\"2\" height=\"11\" width=\"11\" ". + "border=\"0\" alt=\"$grouptitle\">"; } } else { $groupmode = ""; @@ -1640,31 +1643,38 @@ function make_editing_buttons($mod, $absolute=false, $moveselect=true, $indent=- if ($moveselect) { $move = "move\" href=\"$path/mod.php?copy=$mod->id\">"; + " src=\"$pixpath/t/move.gif\" hspace=\"2\" height=\"11\" width=\"11\" ". + " border=\"0\" alt=\"$str->move\">"; } else { $move = "moveup\" href=\"$path/mod.php?id=$mod->id&move=-1\">". + " src=\"$pixpath/t/up.gif\" hspace=\"2\" height=\"11\" width=\"11\" ". + " border=\"0\" alt=\"$str->moveup\">". "movedown\" href=\"$path/mod.php?id=$mod->id&move=1\">"; + " src=\"$pixpath/t/down.gif\" hspace=\"2\" height=\"11\" width=\"11\" ". + " border=\"0\" alt=\"$str->movedown\">"; } $leftright = ""; if ($indent > 0) { $leftright .= "moveleft\" href=\"$path/mod.php?id=$mod->id&indent=-1\">"; + " src=\"$pixpath/t/left.gif\" hspace=\"2\" height=\"11\" width=\"11\" ". + " border=\"0\" alt=\"$str->moveleft\">"; } if ($indent >= 0) { $leftright .= "moveright\" href=\"$path/mod.php?id=$mod->id&indent=1\">"; + " src=\"$pixpath/t/right.gif\" hspace=\"2\" height=\"11\" width=\"11\" ". + " border=\"0\" alt=\"$str->moveright\">"; } return "$leftright$move". "update\" href=\"$path/mod.php?update=$mod->id\">". + " src=\"$pixpath/t/edit.gif\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\" ". + " alt=\"$str->update\">". // Following line is commented out until this feature is more definite -- martin // "duplicate\" href=\"$path/mod.php?duplicate=$mod->id\"> 2 ". "delete\" href=\"$path/mod.php?delete=$mod->id\">$hideshow$groupmode"; + " src=\"$pixpath/t/delete.gif\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\" ". + " alt=\"$str->delete\">$hideshow$groupmode"; } ?>