| Línea 143... |
Línea 143... |
| 143 |
$html .= "('".$button[2]."','".$button[3]."','".$button[4]."');\">";
|
143 |
$html .= "('".$button[2]."','".$button[3]."','".$button[4]."');\">";
|
| 144 |
$html .= html_writer::empty_tag('img', array('alt' => $button[1], 'src' => $CFG->wwwroot . '/mod/wiki/editors/wiki/images/' . $button[0]));
|
144 |
$html .= html_writer::empty_tag('img', array('alt' => $button[1], 'src' => $CFG->wwwroot . '/mod/wiki/editors/wiki/images/' . $button[0]));
|
| 145 |
$html .= "</a>";
|
145 |
$html .= "</a>";
|
| 146 |
}
|
146 |
}
|
| 147 |
$html .= "<label class='accesshide' for='addtags'>" . get_string('insertimage', 'wiki') . "</label>";
|
147 |
$html .= "<label class='accesshide' for='addtags'>" . get_string('insertimage', 'wiki') . "</label>";
|
| 148 |
$html .= "<select id='addtags' class='custom-select mx-1' " .
|
148 |
$html .= "<select id='addtags' class='form-select mx-1' " .
|
| 149 |
"onchange=\"insertTags('{$imagetag[0]}', '{$imagetag[1]}', this.value)\">";
|
149 |
"onchange=\"insertTags('{$imagetag[0]}', '{$imagetag[1]}', this.value)\">";
|
| 150 |
$html .= "<option value='" . s(get_string('wikiimage', 'wiki')) . "'>" . get_string('insertimage', 'wiki') . '</option>';
|
150 |
$html .= "<option value='" . s(get_string('wikiimage', 'wiki')) . "'>" . get_string('insertimage', 'wiki') . '</option>';
|
| 151 |
foreach ($this->files as $filename) {
|
151 |
foreach ($this->files as $filename) {
|
| 152 |
$html .= "<option value='".s($filename)."'>";
|
152 |
$html .= "<option value='".s($filename)."'>";
|
| 153 |
$html .= $filename;
|
153 |
$html .= $filename;
|