MDL-20787 final switch to new $OUTPUT->pix_url() - yay!

This commit is contained in:
Petr Skoda 2009-12-16 21:50:45 +00:00
parent cb1e046d6e
commit b5d0cafc6f
157 changed files with 576 additions and 576 deletions

View file

@ -100,7 +100,7 @@ class question_category_list_item extends list_item {
if (count($this->parentlist->records)!=1){ // don't allow delete if this is the last category in this context.
$item .= '<a title="' . $str->delete . '" href="'.$this->parentlist->pageurl->out_action(array('delete'=>$this->id)).'">
<img src="' . $OUTPUT->old_icon_url('t/delete') . '" class="iconsmall" alt="' .$str->delete. '" /></a>';
<img src="' . $OUTPUT->pix_url('t/delete') . '" class="iconsmall" alt="' .$str->delete. '" /></a>';
}
return $item;

View file

@ -26,7 +26,7 @@ class question_context_move_form extends moodleform {
$i = 0;
foreach (array_keys($urls) as $url){
$icontype = mimeinfo('type', $url);
$img = "<img src=\"" . $OUTPUT->old_icon_url(file_extension_icon($url)) . "\" class=\"icon\" alt=\"$icontype\" />";
$img = "<img src=\"" . $OUTPUT->pix_url(file_extension_icon($url)) . "\" class=\"icon\" alt=\"$icontype\" />";
if (in_array($url, $brokenurls)){
$mform->addElement('select', "urls[$i]", $img.$url, $brokenfileoptions);
} else {

View file

@ -27,7 +27,7 @@ class question_context_move_question_form extends moodleform {
$i = 0;
foreach (array_keys($urls) as $url){
$icontype = mimeinfo('type', $url);
$img = "<img src=\"" . $OUTPUT->old_icon_url(file_extension_icon($url)) . "\" class=\"icon\" alt=\"$icontype\" />";
$img = "<img src=\"" . $OUTPUT->pix_url(file_extension_icon($url)) . "\" class=\"icon\" alt=\"$icontype\" />";
if (in_array($url, $brokenurls)){
$mform->addElement('select', "urls[$i]", $img.$url, $brokenfileoptions);
} else {

View file

@ -241,9 +241,9 @@ abstract class question_bank_column_base {
protected function get_sort_icon($reverse) {
global $OUTPUT;
if ($reverse) {
return ' <img src="' . $OUTPUT->old_icon_url('t/up') . '" alt="' . get_string('desc') . '" />';
return ' <img src="' . $OUTPUT->pix_url('t/up') . '" alt="' . get_string('desc') . '" />';
} else {
return ' <img src="' . $OUTPUT->old_icon_url('t/down') . '" alt="' . get_string('asc') . '" />';
return ' <img src="' . $OUTPUT->pix_url('t/down') . '" alt="' . get_string('asc') . '" />';
}
}
@ -578,7 +578,7 @@ abstract class question_bank_action_column_base extends question_bank_column_bas
protected function print_icon($icon, $title, $url) {
global $OUTPUT;
echo '<a title="' . $title . '" href="' . $url . '">
<img src="' . $OUTPUT->old_icon_url($icon) . '" class="iconsmall" alt="' . $title . '" /></a>';
<img src="' . $OUTPUT->pix_url($icon) . '" class="iconsmall" alt="' . $title . '" /></a>';
}
public function get_required_fields() {
@ -627,7 +627,7 @@ class question_bank_preview_action_column extends question_bank_action_column_ba
if (question_has_capability_on($question, 'use')) {
parse_str(QUESTION_PREVIEW_POPUP_OPTIONS, $options);
$image = new html_image();
$image->src = $OUTPUT->old_icon_url('t/preview');
$image->src = $OUTPUT->pix_url('t/preview');
$image->add_class('iconsmall');
$image->alt = $this->strpreview;

View file

@ -460,7 +460,7 @@ class embedded_cloze_qtype extends default_questiontype {
echo "<input $style $readonly $popup name=\"$inputname\"";
echo " type=\"text\" value=\"".s($response)."\" ".$styleinfo." /> ";
if (!empty($feedback) && !empty($USER->screenreader)) {
echo "<img src=\"" . $OUTPUT->old_icon_url('i/feedback') . "\" alt=\"$feedback\" />";
echo "<img src=\"" . $OUTPUT->pix_url('i/feedback') . "\" alt=\"$feedback\" />";
}
echo $feedbackimg;
break;
@ -487,7 +487,7 @@ class embedded_cloze_qtype extends default_questiontype {
echo $outputoptions;
echo '</select></span>';
if (!empty($feedback) && !empty($USER->screenreader)) {
echo "<img src=\"" . $OUTPUT->old_icon_url('i/feedback') . "\" alt=\"$feedback\" />";
echo "<img src=\"" . $OUTPUT->pix_url('i/feedback') . "\" alt=\"$feedback\" />";
}
echo $feedbackimg;
}else if ($wrapped->options->layout == 1 || $wrapped->options->layout == 2){

View file

@ -1016,7 +1016,7 @@ class default_questiontype {
} else {
$img = 'i/unflagged';
}
return '<img ' . $id . 'src="' . $OUTPUT->old_icon_url($img) .
return '<img ' . $id . 'src="' . $OUTPUT->pix_url($img) .
'" alt="' . get_string('flagthisquestion', 'question') . '" />';
}
@ -1050,7 +1050,7 @@ class default_questiontype {
/// Work out the contents of the link.
$stredit = get_string('edit');
$linktext = '<img src="' . $OUTPUT->old_icon_url('t/edit') . '" alt="' . $stredit . '" />';
$linktext = '<img src="' . $OUTPUT->pix_url('t/edit') . '" alt="' . $stredit . '" />';
if (!empty($cmoptions->thispageurl)) {
/// The module allow editing in the same window, print an ordinary link.