MDL-22980, move mod/data/field/*/icon.gif to mod/data/pix/field/*.gif
@ -429,8 +429,10 @@ class data_field_base { // Base class for Database Field Types (see field/*/
|
||||
function image() {
|
||||
global $OUTPUT;
|
||||
|
||||
$str = '<a href="field.php?d='.$this->data->id.'&fid='.$this->field->id.'&mode=display&sesskey='.sesskey().'">';
|
||||
$str .= '<img src="'.$OUTPUT->pix_url('/field/' . $this->type . '/icon', 'data') . '" ';
|
||||
$params = array('d'=>$this->data->id, 'fid'=>$this->field->id, 'mode'=>'display', 'sesskey'=>sesskey());
|
||||
$link = new moodle_url('/mod/data/field.php', $params);
|
||||
$str = '<a href="'.$link->out().'">';
|
||||
$str .= '<img src="'.$OUTPUT->pix_url('field/'.$this->type, 'data') . '" ';
|
||||
$str .= 'height="'.$this->iconheight.'" width="'.$this->iconwidth.'" alt="'.$this->type.'" title="'.$this->type.'" /></a>';
|
||||
return $str;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 156 B After Width: | Height: | Size: 156 B |
Before Width: | Height: | Size: 110 B After Width: | Height: | Size: 110 B |
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 226 B |
0
mod/data/field/latlong/icon.gif → mod/data/pix/field/latlong.gif
Normal file → Executable file
Before Width: | Height: | Size: 94 B After Width: | Height: | Size: 94 B |
Before Width: | Height: | Size: 111 B After Width: | Height: | Size: 111 B |
Before Width: | Height: | Size: 97 B After Width: | Height: | Size: 97 B |
Before Width: | Height: | Size: 91 B After Width: | Height: | Size: 91 B |
Before Width: | Height: | Size: 145 B After Width: | Height: | Size: 145 B |
Before Width: | Height: | Size: 213 B After Width: | Height: | Size: 213 B |
Before Width: | Height: | Size: 92 B After Width: | Height: | Size: 92 B |
Before Width: | Height: | Size: 102 B After Width: | Height: | Size: 102 B |
Before Width: | Height: | Size: 168 B After Width: | Height: | Size: 168 B |