mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-8105 some more icon class fixes including new .iconhelp for help and docs icon
This commit is contained in:
parent
c90edfe168
commit
0f13ec8f9b
19 changed files with 131 additions and 114 deletions
|
@ -104,11 +104,11 @@ class data_field_picture extends data_field_file {
|
|||
$width = $this->field->param4 ? ' width="'.s($this->field->param4).'" ' : ' ';
|
||||
$height = $this->field->param5 ? ' height="'.s($this->field->param5).'" ' : ' ';
|
||||
$str = '<a href="view.php?d='.$this->field->dataid.'&rid='.$recordid.'"><img '.
|
||||
$width.$height.' src="'.$thumbnailsource.'" alt="'.s($alt).'" title="'.s($title).'" border="0" /></a>';
|
||||
$width.$height.' src="'.$thumbnailsource.'" alt="'.s($alt).'" title="'.s($title).'" style="border:0px" /></a>';
|
||||
} else {
|
||||
$width = $this->field->param1 ? ' width="'.s($this->field->param1).'" ':' ';
|
||||
$height = $this->field->param2 ? ' height="'.s($this->field->param2).'" ':' ';
|
||||
$str = '<a href="'.$source.'"><img '.$width.$height.' src="'.$source.'" alt="'.s($alt).'" title="'.s($title).'" border="0"/></a>';
|
||||
$str = '<a href="'.$source.'"><img '.$width.$height.' src="'.$source.'" alt="'.s($alt).'" title="'.s($title).'" style="border:0px" /></a>';
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
|
|
|
@ -220,7 +220,7 @@
|
|||
$recformat = get_record('glossary_formats','id',$formatid);
|
||||
echo '<tr>';
|
||||
echo '<td>' . $formatname . '</td>';
|
||||
$eicon = "<a title=\"" . get_string("edit") . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=edit\"><img border=\"0\" src=\"../pix/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=\"../pix/t/edit.gif\" alt=\"".get_string("edit")."\" /></a>";
|
||||
if ( $recformat->visible ) {
|
||||
$vtitle = get_string("hide");
|
||||
$vicon = "hide.gif";
|
||||
|
@ -228,7 +228,7 @@
|
|||
$vtitle = get_string("show");
|
||||
$vicon = "show.gif";
|
||||
}
|
||||
$vicon = "<a title=\"" . $vtitle . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible\"><img border=\"0\" src=\"../pix/t/" . $vicon . "\" alt=\"$vtitle\" /></a>";
|
||||
$vicon = "<a title=\"" . $vtitle . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible\"><img class=\"iconsmall\" src=\"../pix/t/" . $vicon . "\" alt=\"$vtitle\" /></a>";
|
||||
|
||||
echo '<td align="center" nowrap="nowrap">' . $eicon . ' ' . $vicon . '</td>';
|
||||
echo '</tr>';
|
||||
|
|
|
@ -252,7 +252,7 @@
|
|||
$printicon = '';
|
||||
if ( $isuserframe and $mode != 'search') {
|
||||
if (has_capability('mod/glossary:manageentries', $context) or $glossary->allowprintview) {
|
||||
$printicon = " <a title =\"". get_string("printerfriendly","glossary") ."\" target=\"printview\" href=\"print.php?id=$cm->id&mode=$mode&hook=$hook&sortkey=$sortkey&sortorder=$sortorder&offset=$offset\"><img border=\"0\" src=\"print.gif\" alt=\"". get_string("printerfriendly","glossary") . "\" /></a>";
|
||||
$printicon = " <a title =\"". get_string("printerfriendly","glossary") ."\" target=\"printview\" href=\"print.php?id=$cm->id&mode=$mode&hook=$hook&sortkey=$sortkey&sortorder=$sortorder&offset=$offset\"><img class=\"icon\" src=\"print.gif\" alt=\"". get_string("printerfriendly","glossary") . "\" /></a>";
|
||||
}
|
||||
}
|
||||
print_heading(format_string($glossary->name).$printicon);
|
||||
|
|
|
@ -609,7 +609,7 @@ function quiz_get_question_review($quiz, $question) {
|
|||
$quiz_id = $quiz->id ? '&quizid=' . $quiz->id : '';
|
||||
return "<a title=\"$strpreview\" href=\"javascript:void(0)\" onClick=\"openpopup('/question/preview.php?id=$qnum$quiz_id','questionpreview', " .
|
||||
QUESTION_PREVIEW_POPUP_OPTIONS . ", false)\">
|
||||
<img src=\"../../pix/t/preview.gif\" border=\"0\" alt=\"$strpreview\" /></a>";
|
||||
<img src=\"../../pix/t/preview.gif\" class=\"iconsmall\" alt=\"$strpreview\" /></a>";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -334,7 +334,7 @@ function ewiki_entry_downloads($row, $show_section=0, $fullinfo=false) {
|
|||
|
||||
$info->id = $id;
|
||||
$info->size = $p_size;
|
||||
$info->icon = ($p_icon ? '<img src="'.$p_icon.'" alt="['.$p_icon_t.']" align="left" width="14" height="14" border="0" /> ' : '');
|
||||
$info->icon = ($p_icon ? '<img src="'.$p_icon.'" alt="['.$p_icon_t.']" class="icon" /> ' : '');
|
||||
$info->time = $p_time;
|
||||
$info->hits = $p_hits;
|
||||
$info->section = ($show_section ? ewiki_t('dwnl_section') . ": $p_section<br />" : '');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue