mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-36633 usability: Styling over the admin pages
This commit is contained in:
parent
6bf410ed4b
commit
fa9c0aab13
21 changed files with 93 additions and 60 deletions
|
@ -58,23 +58,19 @@ if ($ADMIN->fulltree) {
|
|||
asort($formats);
|
||||
|
||||
$str = '<table>';
|
||||
$pixpath = "$CFG->wwwroot/pix"; // ugly temporary hack until we get this rewritten to new setting
|
||||
// TODO MDL-19674 We cannot refer to $CFG->pixpath here. This code is executed
|
||||
// when the structure of the admin tree is being build. $CFG->pixpath is only
|
||||
// set up once output has started.
|
||||
foreach ($formats as $formatid=>$formatname) {
|
||||
$recformat = $DB->get_record('glossary_formats', array('id'=>$formatid));
|
||||
$str .= '<tr>';
|
||||
$str .= '<td>' . $formatname . '</td>';
|
||||
$eicon = "<a title=\"".get_string("edit")."\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=edit\"><img class=\"iconsmall\" src=\"$pixpath/t/edit.gif\" alt=\"".get_string("edit")."\" /></a>";
|
||||
$eicon = "<a title=\"".get_string("edit")."\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=edit\"><img class=\"iconsmall\" src=\"".$OUTPUT->pix_url('t/edit')."\" alt=\"".get_string("edit")."\" /></a>";
|
||||
if ( $recformat->visible ) {
|
||||
$vtitle = get_string("hide");
|
||||
$vicon = "hide.gif";
|
||||
$vicon = "t/hide";
|
||||
} else {
|
||||
$vtitle = get_string("show");
|
||||
$vicon = "show.gif";
|
||||
$vicon = "t/show";
|
||||
}
|
||||
$vicon = "<a title=\"".$vtitle."\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible&sesskey=".sesskey()."\"><img class=\"iconsmall\" src=\"$pixpath/t/".$vicon."\" alt=\"$vtitle\" /></a>";
|
||||
$vicon = "<a title=\"".$vtitle."\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible&sesskey=".sesskey()."\"><img class=\"iconsmall\" src=\"".$OUTPUT->pix_url($vicon)."\" alt=\"$vtitle\" /></a>";
|
||||
|
||||
$str .= '<td align="center">'.$eicon.' '.$vicon.'</td>';
|
||||
$str .= '</tr>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue