mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-20787 final switch to new $OUTPUT->pix_url() - yay!
This commit is contained in:
parent
cb1e046d6e
commit
b5d0cafc6f
157 changed files with 576 additions and 576 deletions
|
@ -1811,7 +1811,7 @@ class assignment_base {
|
|||
$found = true;
|
||||
$mimetype = $file->get_mimetype();
|
||||
$path = file_encode_url($CFG->wwwroot.'/pluginfile.php', '/'.$this->context->id.'/assignment_submission/'.$userid.'/'.$filename);
|
||||
$output .= '<a href="'.$path.'" ><img src="'.$OUTPUT->old_icon_url(file_mimetype_icon($mimetype)).'" class="icon" alt="'.$mimetype.'" />'.s($filename).'</a>';
|
||||
$output .= '<a href="'.$path.'" ><img src="'.$OUTPUT->pix_url(file_mimetype_icon($mimetype)).'" class="icon" alt="'.$mimetype.'" />'.s($filename).'</a>';
|
||||
if ($this->portfolio_exportable() && has_capability('mod/assignment:exportownsubmission', $this->context)) {
|
||||
$button->set_callback_options('assignment_portfolio_caller', array('id' => $this->cm->id, 'fileid' => $file->get_id()), '/mod/assignment/locallib.php');
|
||||
$button->set_format_by_file($file);
|
||||
|
@ -2897,7 +2897,7 @@ function assignment_print_recent_mod_activity($activity, $courseid, $detail, $mo
|
|||
if ($detail) {
|
||||
$modname = $modnames[$activity->type];
|
||||
echo '<div class="title">';
|
||||
echo "<img src=\"" . $OUTPUT->old_icon_url('icon', 'assignment') . "\" ".
|
||||
echo "<img src=\"" . $OUTPUT->pix_url('icon', 'assignment') . "\" ".
|
||||
"class=\"icon\" alt=\"$modname\">";
|
||||
echo "<a href=\"$CFG->wwwroot/mod/assignment/view.php?id={$activity->cmid}\">{$activity->name}</a>";
|
||||
echo '</div>';
|
||||
|
|
|
@ -198,7 +198,7 @@ class assignment_online extends assignment_base {
|
|||
$popup = $OUTPUT->link($link);
|
||||
|
||||
$output = '<div class="files">'.
|
||||
'<img src="'.$OUTPUT->old_icon_url('f/html') . '" class="icon" alt="html" />'.
|
||||
'<img src="'.$OUTPUT->pix_url('f/html') . '" class="icon" alt="html" />'.
|
||||
$popup .
|
||||
'</div>';
|
||||
return $output;
|
||||
|
@ -217,7 +217,7 @@ class assignment_online extends assignment_base {
|
|||
$popup = $OUTPUT->link($link);
|
||||
|
||||
$output = '<div class="files">'.
|
||||
'<img align="middle" src="'.$OUTPUT->old_icon_url('f/html') . '" height="16" width="16" alt="html" />'.
|
||||
'<img align="middle" src="'.$OUTPUT->pix_url('f/html') . '" height="16" width="16" alt="html" />'.
|
||||
$popup .
|
||||
'</div>';
|
||||
|
||||
|
|
|
@ -291,7 +291,7 @@ class assignment_upload extends assignment_base {
|
|||
$found = true;
|
||||
$mimetype = $file->get_mimetype();
|
||||
$path = file_encode_url($CFG->wwwroot.'/pluginfile.php', '/'.$this->context->id.'/assignment_submission/'.$userid.'/'.$filename);
|
||||
$output .= '<a href="'.$path.'" ><img class="icon" src="'.$OUTPUT->old_icon_url(file_mimetype_icon($mimetype)).'" alt="'.$mimetype.'" />'.s($filename).'</a> ';
|
||||
$output .= '<a href="'.$path.'" ><img class="icon" src="'.$OUTPUT->pix_url(file_mimetype_icon($mimetype)).'" alt="'.$mimetype.'" />'.s($filename).'</a> ';
|
||||
|
||||
}
|
||||
|
||||
|
@ -350,13 +350,13 @@ class assignment_upload extends assignment_base {
|
|||
$filename = $file->get_filename();
|
||||
$mimetype = $file->get_mimetype();
|
||||
$path = file_encode_url($CFG->wwwroot.'/pluginfile.php', '/'.$this->context->id.'/assignment_submission/'.$userid.'/'.$filename);
|
||||
$output .= '<a href="'.$path.'" ><img src="'.$OUTPUT->old_icon_url(file_mimetype_icon($mimetype)).'" class="icon" alt="'.$mimetype.'" />'.s($filename).'</a>';
|
||||
$output .= '<a href="'.$path.'" ><img src="'.$OUTPUT->pix_url(file_mimetype_icon($mimetype)).'" class="icon" alt="'.$mimetype.'" />'.s($filename).'</a>';
|
||||
|
||||
if ($candelete) {
|
||||
$delurl = "$CFG->wwwroot/mod/assignment/delete.php?id={$this->cm->id}&file=".rawurlencode($filename)."&userid={$submission->userid}&mode=$mode&offset=$offset";
|
||||
|
||||
$output .= '<a href="'.$delurl.'"> '
|
||||
.'<img title="'.$strdelete.'" src="'.$OUTPUT->old_icon_url('t/delete') . '" class="iconsmall" alt="" /></a> ';
|
||||
.'<img title="'.$strdelete.'" src="'.$OUTPUT->pix_url('t/delete') . '" class="iconsmall" alt="" /></a> ';
|
||||
}
|
||||
|
||||
if (has_capability('mod/assignment:exportownsubmission', $this->context)) {
|
||||
|
@ -412,13 +412,13 @@ class assignment_upload extends assignment_base {
|
|||
$mimetype = $file->get_mimetype();
|
||||
$path = file_encode_url($CFG->wwwroot.'/pluginfile.php', '/'.$this->context->id.'/assignment_response/'.$userid.'/'.$filename);
|
||||
|
||||
$output .= '<a href="'.$path.'" ><img src="'.$OUTPUT->old_icon_url(file_mimetype_icon($mimetype)).'" alt="'.$mimetype.'" />'.$filename.'</a>';
|
||||
$output .= '<a href="'.$path.'" ><img src="'.$OUTPUT->pix_url(file_mimetype_icon($mimetype)).'" alt="'.$mimetype.'" />'.$filename.'</a>';
|
||||
|
||||
if ($candelete) {
|
||||
$delurl = "$CFG->wwwroot/mod/assignment/delete.php?id={$this->cm->id}&file=".rawurlencode($filename)."&userid=$userid&mode=$mode&offset=$offset&action=response";
|
||||
|
||||
$output .= '<a href="'.$delurl.'"> '
|
||||
.'<img title="'.$strdelete.'" src="'.$OUTPUT->old_icon_url('t/delete') . '" class="iconsmall" alt=""/></a> ';
|
||||
.'<img title="'.$strdelete.'" src="'.$OUTPUT->pix_url('t/delete') . '" class="iconsmall" alt=""/></a> ';
|
||||
}
|
||||
|
||||
$output .= ' ';
|
||||
|
@ -1090,7 +1090,7 @@ class assignment_upload extends assignment_base {
|
|||
$filename = $file->get_filename();
|
||||
$mimetype = $file->get_mimetype();
|
||||
$link = file_encode_url($CFG->wwwroot.'/pluginfile.php', '/'.$this->context->id.'/assignment_submission/'.$USER->id.'/'.$filename);
|
||||
$node->get($filekey)->add($filename, $link, navigation_node::TYPE_SETTING, null, null, $OUTPUT->old_icon_url(file_mimetype_icon($mimetype)));
|
||||
$node->get($filekey)->add($filename, $link, navigation_node::TYPE_SETTING, null, null, $OUTPUT->pix_url(file_mimetype_icon($mimetype)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ class assignment_uploadsingle extends assignment_base {
|
|||
$found = true;
|
||||
$mimetype = $file->get_mimetype();
|
||||
$path = file_encode_url($CFG->wwwroot.'/pluginfile.php', '/'.$this->context->id.'/assignment_submission/'.$userid.'/'.$filename);
|
||||
$output .= '<a href="'.$path.'" ><img class="icon" src="'.$OUTPUT->old_icon_url(file_mimetype_icon($mimetype)).'" alt="'.$mimetype.'" />'.s($filename).'</a><br />';
|
||||
$output .= '<a href="'.$path.'" ><img class="icon" src="'.$OUTPUT->pix_url(file_mimetype_icon($mimetype)).'" alt="'.$mimetype.'" />'.s($filename).'</a><br />';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -214,7 +214,7 @@ class assignment_uploadsingle extends assignment_base {
|
|||
$filename = $file->get_filename();
|
||||
$mimetype = $file->get_mimetype();
|
||||
$link = file_encode_url($CFG->wwwroot.'/pluginfile.php', '/'.$this->context->id.'/assignment_submission/'.$USER->id.'/'.$filename);
|
||||
$node->get($filekey)->add($filename, $link, navigation_node::TYPE_SETTING, null, null, $OUTPUT->old_icon_url(file_mimetype_icon($mimetype)));
|
||||
$node->get($filekey)->add($filename, $link, navigation_node::TYPE_SETTING, null, null, $OUTPUT->pix_url(file_mimetype_icon($mimetype)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1268,7 +1268,7 @@ function chat_extend_navigation($navigation, $course, $module, $cm) {
|
|||
foreach ($links as $link) {
|
||||
$link->add_action(new popup_action('click', $link->url, 'chat'.$course->id.$cm->instance.$currentgroup, array('height' => 500, 'width' => 700)));
|
||||
$link->title = get_string('modulename', 'chat');
|
||||
$navigation->add($link->title, $link, navigation_node::TYPE_ACTIVITY, null ,null, $OUTPUT->old_icon_url('c/group'));
|
||||
$navigation->add($link->title, $link, navigation_node::TYPE_ACTIVITY, null ,null, $OUTPUT->pix_url('c/group'));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1278,7 +1278,7 @@ function chat_extend_navigation($navigation, $course, $module, $cm) {
|
|||
$users = $navigation->get($userskey);
|
||||
foreach ($chatusers as $chatuser) {
|
||||
$userlink = new moodle_url($CFG->wwwroot.'/user/view.php', array('id'=>$chatuser->id,'course'=>$course->id));
|
||||
$users->add(fullname($chatuser).' '.format_time(time() - $chatuser->lastmessageping), $userlink, navigation_node::TYPE_USER, null, null, $OUTPUT->old_icon_url('c/user'));
|
||||
$users->add(fullname($chatuser).' '.format_time(time() - $chatuser->lastmessageping), $userlink, navigation_node::TYPE_USER, null, null, $OUTPUT->pix_url('c/user'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -290,10 +290,10 @@ if (($mode == 'new') && (!empty($newtype)) && confirm_sesskey()) { ///
|
|||
shorten_text($field->field->description, 30),
|
||||
|
||||
'<a href="field.php?d='.$data->id.'&mode=display&fid='.$field->field->id.'&sesskey='.sesskey().'">'.
|
||||
'<img src="'.$OUTPUT->old_icon_url('t/edit') . '" class="iconsmall" alt="'.get_string('edit').'" title="'.get_string('edit').'" /></a>'.
|
||||
'<img src="'.$OUTPUT->pix_url('t/edit') . '" class="iconsmall" alt="'.get_string('edit').'" title="'.get_string('edit').'" /></a>'.
|
||||
' '.
|
||||
'<a href="field.php?d='.$data->id.'&mode=delete&fid='.$field->field->id.'&sesskey='.sesskey().'">'.
|
||||
'<img src="'.$OUTPUT->old_icon_url('t/delete') . '" class="iconsmall" alt="'.get_string('delete').'" title="'.get_string('delete').'" /></a>'
|
||||
'<img src="'.$OUTPUT->pix_url('t/delete') . '" class="iconsmall" alt="'.get_string('delete').'" title="'.get_string('delete').'" /></a>'
|
||||
|
||||
);
|
||||
}
|
||||
|
|
|
@ -60,7 +60,7 @@ class data_field_file extends data_field_base {
|
|||
// Print icon if file already exists
|
||||
$browser = get_file_browser();
|
||||
$src = file_encode_url($CFG->wwwroot.'/pluginfile.php', $this->context->id.'/data_content/'.$content->id.'/'.$file->get_filename());
|
||||
$str .= '<img src="'.$OUTPUT->old_icon_url(file_mimetype_icon($file->get_mimetype())).'" class="icon" alt="'.$file->get_mimetype().'" />'.
|
||||
$str .= '<img src="'.$OUTPUT->pix_url(file_mimetype_icon($file->get_mimetype())).'" class="icon" alt="'.$file->get_mimetype().'" />'.
|
||||
'<a href="'.$src.'" >'.s($file->get_filename()).'</a>';
|
||||
}
|
||||
return $str;
|
||||
|
@ -121,7 +121,7 @@ class data_field_file extends data_field_base {
|
|||
$width = $this->field->param1 ? ' width = "'.s($this->field->param1).'" ':' ';
|
||||
$height = $this->field->param2 ? ' height = "'.s($this->field->param2).'" ':' ';
|
||||
|
||||
$str = '<img src="'.$OUTPUT->old_icon_url(file_mimetype_icon($file->get_mimetype())).'" height="16" width="16" alt="'.$file->get_mimetype().'" /> '.
|
||||
$str = '<img src="'.$OUTPUT->pix_url(file_mimetype_icon($file->get_mimetype())).'" height="16" width="16" alt="'.$file->get_mimetype().'" /> '.
|
||||
'<a href="'.$src.'" >'.s($name).'</a>';
|
||||
return $str;
|
||||
}
|
||||
|
|
|
@ -430,7 +430,7 @@ class data_field_base { // Base class for Database Field Types (see field/*/
|
|||
global $OUTPUT;
|
||||
|
||||
$str = '<a href="field.php?d='.$this->data->id.'&fid='.$this->field->id.'&mode=display&sesskey='.sesskey().'">';
|
||||
$str .= '<img src="'.$OUTPUT->old_icon_url('/field/' . $this->type . '/icon', 'data') . '" ';
|
||||
$str .= '<img src="'.$OUTPUT->pix_url('/field/' . $this->type . '/icon', 'data') . '" ';
|
||||
$str .= 'height="'.$this->iconheight.'" width="'.$this->iconwidth.'" alt="'.$this->type.'" title="'.$this->type.'" /></a>';
|
||||
return $str;
|
||||
}
|
||||
|
@ -1223,9 +1223,9 @@ function data_print_template($template, $records, $data, $search='', $page=0, $r
|
|||
$patterns[]='##delete##';
|
||||
if (has_capability('mod/data:manageentries', $context) or data_isowner($record->id)) {
|
||||
$replacement[] = '<a href="'.$CFG->wwwroot.'/mod/data/edit.php?d='
|
||||
.$data->id.'&rid='.$record->id.'&sesskey='.sesskey().'"><img src="'.$OUTPUT->old_icon_url('t/edit') . '" class="iconsmall" alt="'.get_string('edit').'" title="'.get_string('edit').'" /></a>';
|
||||
.$data->id.'&rid='.$record->id.'&sesskey='.sesskey().'"><img src="'.$OUTPUT->pix_url('t/edit') . '" class="iconsmall" alt="'.get_string('edit').'" title="'.get_string('edit').'" /></a>';
|
||||
$replacement[] = '<a href="'.$CFG->wwwroot.'/mod/data/view.php?d='
|
||||
.$data->id.'&delete='.$record->id.'&sesskey='.sesskey().'"><img src="'.$OUTPUT->old_icon_url('t/delete') . '" class="iconsmall" alt="'.get_string('delete').'" title="'.get_string('delete').'" /></a>';
|
||||
.$data->id.'&delete='.$record->id.'&sesskey='.sesskey().'"><img src="'.$OUTPUT->pix_url('t/delete') . '" class="iconsmall" alt="'.get_string('delete').'" title="'.get_string('delete').'" /></a>';
|
||||
} else {
|
||||
$replacement[] = '';
|
||||
$replacement[] = '';
|
||||
|
@ -1236,7 +1236,7 @@ function data_print_template($template, $records, $data, $search='', $page=0, $r
|
|||
$moreurl .= '&filter=1';
|
||||
}
|
||||
$patterns[]='##more##';
|
||||
$replacement[] = '<a href="' . $moreurl . '"><img src="' . $OUTPUT->old_icon_url('i/search') . '" class="iconsmall" alt="' . get_string('more', 'data') . '" title="' . get_string('more', 'data') . '" /></a>';
|
||||
$replacement[] = '<a href="' . $moreurl . '"><img src="' . $OUTPUT->pix_url('i/search') . '" class="iconsmall" alt="' . get_string('more', 'data') . '" title="' . get_string('more', 'data') . '" /></a>';
|
||||
|
||||
$patterns[]='##moreurl##';
|
||||
$replacement[] = $moreurl;
|
||||
|
@ -1268,7 +1268,7 @@ function data_print_template($template, $records, $data, $search='', $page=0, $r
|
|||
|
||||
$patterns[]='##approve##';
|
||||
if (has_capability('mod/data:approve', $context) && ($data->approval) && (!$record->approved)){
|
||||
$replacement[] = '<span class="approve"><a href="'.$CFG->wwwroot.'/mod/data/view.php?d='.$data->id.'&approve='.$record->id.'&sesskey='.sesskey().'"><img src="'.$OUTPUT->old_icon_url('i/approve') . '" class="icon" alt="'.get_string('approve').'" /></a></span>';
|
||||
$replacement[] = '<span class="approve"><a href="'.$CFG->wwwroot.'/mod/data/view.php?d='.$data->id.'&approve='.$record->id.'&sesskey='.sesskey().'"><img src="'.$OUTPUT->pix_url('i/approve') . '" class="icon" alt="'.get_string('approve').'" /></a></span>';
|
||||
} else {
|
||||
$replacement[] = '';
|
||||
}
|
||||
|
|
|
@ -394,7 +394,7 @@ foreach ($presets as $id => $preset) {
|
|||
$dellink = '';
|
||||
if ($preset->userid > 0 and ($preset->userid == $USER->id || has_capability('mod/data:manageuserpresets', $context))) {
|
||||
$dellink = ' <a href="preset.php?d='.$data->id.'&action=confirmdelete&fullname='.$fullname.'&sesskey='.sesskey().'">'.
|
||||
'<img src="'.$OUTPUT->old_icon_url('t/delete') . '" class="iconsmall" alt="'.$strdelete.' '.$desc.'" /></a>';
|
||||
'<img src="'.$OUTPUT->pix_url('t/delete') . '" class="iconsmall" alt="'.$strdelete.' '.$desc.'" /></a>';
|
||||
}
|
||||
|
||||
echo '<input type="radio" name="fullname" id="usepreset'.$i.'" value="'.$fullname.'" /><label for="usepreset'.$i++.'">'.$desc.'</label>'.$dellink.'<br />';
|
||||
|
|
|
@ -116,7 +116,7 @@ if($shoulddelete == 1) {
|
|||
echo '<tr><td align="center">'.$template->name.'</td>';
|
||||
echo '<td align="center">';
|
||||
echo '<form action="'.$ME.'" method="post">';
|
||||
echo '<input title="'.get_string('delete_template','feedback').'" type="image" src="'.$OUTPUT->old_icon_url('t/delete') . '" hspace="1" height="11" width="11" border="0" />';
|
||||
echo '<input title="'.get_string('delete_template','feedback').'" type="image" src="'.$OUTPUT->pix_url('t/delete') . '" hspace="1" height="11" width="11" border="0" />';
|
||||
echo '<input type="hidden" name="deletetempl" value="'.$template->id.'" />';
|
||||
echo '<input type="hidden" name="shoulddelete" value="1" />';
|
||||
echo '<input type="hidden" name="id" value="'.$id.'" />';
|
||||
|
|
|
@ -234,11 +234,11 @@ if($do_show == 'edit') {
|
|||
echo '<td>';
|
||||
$buttonlink = $ME.'?'.htmlspecialchars(feedback_edit_get_default_query($id, $do_show).'&movehere='.$moveposition);
|
||||
echo '<a title="'.get_string('move_here','feedback').'" href="'.$buttonlink.'">
|
||||
<img class="movetarget" alt="'.get_string('move_here','feedback').'" src="'.$OUTPUT->old_icon_url('movehere') . '" />
|
||||
<img class="movetarget" alt="'.get_string('move_here','feedback').'" src="'.$OUTPUT->pix_url('movehere') . '" />
|
||||
</a>';
|
||||
|
||||
// echo '<form action="'.$ME.'" method="post"><fieldset>';
|
||||
// echo '<input title="'.get_string('move_here','feedback').'" type="image" src="'.$OUTPUT->old_icon_url('movehere') . '" hspace="1" height="16" width="80" border="0" />';
|
||||
// echo '<input title="'.get_string('move_here','feedback').'" type="image" src="'.$OUTPUT->pix_url('movehere') . '" hspace="1" height="16" width="80" border="0" />';
|
||||
// echo '<input type="hidden" name="movehere" value="'.$moveposition.'" />';
|
||||
// feedback_edit_print_default_form_values($id, $do_show);
|
||||
// echo '</fieldset></form>';
|
||||
|
@ -270,12 +270,12 @@ if($do_show == 'edit') {
|
|||
if($feedbackitem->position > 1){
|
||||
$buttonlink = $ME.'?'.htmlspecialchars(feedback_edit_get_default_query($id, $do_show).'&moveupitem='.$feedbackitem->id);
|
||||
echo '<a class="icon up" title="'.get_string('moveup_item','feedback').'" href="'.$buttonlink.'">
|
||||
<img alt="'.get_string('moveup_item','feedback').'" src="'.$OUTPUT->old_icon_url('t/up') . '" />
|
||||
<img alt="'.get_string('moveup_item','feedback').'" src="'.$OUTPUT->pix_url('t/up') . '" />
|
||||
</a>';
|
||||
//print the button to move-up the item
|
||||
// echo '<form action="'.$ME.'" method="post"><fieldset>';
|
||||
// ///////echo '<input title="'.get_string('moveup_item','feedback').'" type="image" src="'.$OUTPUT->old_icon_url('t/up') . '" hspace="1" height="11" width="11" border="0" />';
|
||||
// echo '<input class="feedback_moveup_button" title="'.get_string('moveup_item','feedback').'" type="image" src="'.$OUTPUT->old_icon_url('t/up') . '" />';
|
||||
// ///////echo '<input title="'.get_string('moveup_item','feedback').'" type="image" src="'.$OUTPUT->pix_url('t/up') . '" hspace="1" height="11" width="11" border="0" />';
|
||||
// echo '<input class="feedback_moveup_button" title="'.get_string('moveup_item','feedback').'" type="image" src="'.$OUTPUT->pix_url('t/up') . '" />';
|
||||
// echo '<input type="hidden" name="moveupitem" value="'.$feedbackitem->id.'" />';
|
||||
// feedback_edit_print_default_form_values($id, $do_show);
|
||||
// echo '</fieldset></form>';
|
||||
|
@ -287,12 +287,12 @@ if($do_show == 'edit') {
|
|||
if($feedbackitem->position < $lastposition - 1){
|
||||
$buttonlink = $ME.'?'.htmlspecialchars(feedback_edit_get_default_query($id, $do_show).'&movedownitem='.$feedbackitem->id);
|
||||
echo '<a class="icon down" title="'.get_string('movedown_item','feedback').'" href="'.$buttonlink.'">
|
||||
<img alt="'.get_string('movedown_item','feedback').'" src="'.$OUTPUT->old_icon_url('t/down') . '" />
|
||||
<img alt="'.get_string('movedown_item','feedback').'" src="'.$OUTPUT->pix_url('t/down') . '" />
|
||||
</a>';
|
||||
//print the button to move-down the item
|
||||
// echo '<form action="'.$ME.'" method="post"><fieldset>';
|
||||
// echo '<input title="'.get_string('movedown_item','feedback').'" type="image" src="'.$OUTPUT->old_icon_url('t/down') . '" hspace="1" height="11" width="11" border="0" />';
|
||||
// echo '<input class="feedback_movedown_button" title="'.get_string('movedown_item','feedback').'" type="image" src="'.$OUTPUT->old_icon_url('t/down') . '" />';
|
||||
// echo '<input title="'.get_string('movedown_item','feedback').'" type="image" src="'.$OUTPUT->pix_url('t/down') . '" hspace="1" height="11" width="11" border="0" />';
|
||||
// echo '<input class="feedback_movedown_button" title="'.get_string('movedown_item','feedback').'" type="image" src="'.$OUTPUT->pix_url('t/down') . '" />';
|
||||
// echo '<input type="hidden" name="movedownitem" value="'.$feedbackitem->id.'" />';
|
||||
// feedback_edit_print_default_form_values($id, $do_show);
|
||||
// echo '</fieldset></form>';
|
||||
|
@ -303,11 +303,11 @@ if($do_show == 'edit') {
|
|||
echo '<td>';
|
||||
$buttonlink = $ME.'?'.htmlspecialchars(feedback_edit_get_default_query($id, $do_show).'&moveitem='.$feedbackitem->id);
|
||||
echo '<a class="editing_move" title="'.get_string('move_item','feedback').'" href="'.$buttonlink.'">
|
||||
<img alt="'.get_string('move_item','feedback').'" src="'.$OUTPUT->old_icon_url('t/move') . '" />
|
||||
<img alt="'.get_string('move_item','feedback').'" src="'.$OUTPUT->pix_url('t/move') . '" />
|
||||
</a>';
|
||||
// echo '<form action="'.$ME.'" method="post"><fieldset>';
|
||||
// echo '<input title="'.get_string('move_item','feedback').'" type="image" src="'.$OUTPUT->old_icon_url('t/move') . '" hspace="1" height="11" width="11" border="0" />';
|
||||
// echo '<input class="feedback_move_button" title="'.get_string('move_item','feedback').'" type="image" src="'.$OUTPUT->old_icon_url('t/move') . '" />';
|
||||
// echo '<input title="'.get_string('move_item','feedback').'" type="image" src="'.$OUTPUT->pix_url('t/move') . '" hspace="1" height="11" width="11" border="0" />';
|
||||
// echo '<input class="feedback_move_button" title="'.get_string('move_item','feedback').'" type="image" src="'.$OUTPUT->pix_url('t/move') . '" />';
|
||||
// echo '<input type="hidden" name="moveitem" value="'.$feedbackitem->id.'" />';
|
||||
// feedback_edit_print_default_form_values($id, $do_show);
|
||||
// echo '</fieldset></form>';
|
||||
|
@ -317,11 +317,11 @@ if($do_show == 'edit') {
|
|||
if($feedbackitem->typ != 'pagebreak') {
|
||||
$buttonlink = 'edit_item.php?'.htmlspecialchars(feedback_edit_get_default_query($id, $do_show).'&itemid='.$feedbackitem->id.'&typ='.$feedbackitem->typ);
|
||||
echo '<a class="editing_update" title="'.get_string('edit_item','feedback').'" href="'.$buttonlink.'">
|
||||
<img alt="'.get_string('edit_item','feedback').'" src="'.$OUTPUT->old_icon_url('t/edit') . '" />
|
||||
<img alt="'.get_string('edit_item','feedback').'" src="'.$OUTPUT->pix_url('t/edit') . '" />
|
||||
</a>';
|
||||
// echo '<form action="edit_item.php" method="post"><fieldset>';
|
||||
// echo '<input title="'.get_string('edit_item','feedback').'" type="image" src="'.$OUTPUT->old_icon_url('t/edit') . '" hspace="1" height="11" width="11" border="0" />';
|
||||
// echo '<input class="feedback_edit_button" title="'.get_string('edit_item','feedback').'" type="image" src="'.$OUTPUT->old_icon_url('t/edit') . '" />';
|
||||
// echo '<input title="'.get_string('edit_item','feedback').'" type="image" src="'.$OUTPUT->pix_url('t/edit') . '" hspace="1" height="11" width="11" border="0" />';
|
||||
// echo '<input class="feedback_edit_button" title="'.get_string('edit_item','feedback').'" type="image" src="'.$OUTPUT->pix_url('t/edit') . '" />';
|
||||
// echo '<input type="hidden" name="itemid" value="'.$feedbackitem->id.'" />';
|
||||
// echo '<input type="hidden" name="typ" value="'.$feedbackitem->typ.'" />';
|
||||
// feedback_edit_print_default_form_values($id, $do_show);
|
||||
|
@ -360,11 +360,11 @@ if($do_show == 'edit') {
|
|||
echo '<td>';
|
||||
$buttonlink = 'delete_item.php?'.htmlspecialchars(feedback_edit_get_default_query($id, $do_show).'&deleteitem='.$feedbackitem->id);
|
||||
echo '<a class="icon delete" title="'.get_string('delete_item','feedback').'" href="'.$buttonlink.'">
|
||||
<img alt="'.get_string('delete_item','feedback').'" src="'.$OUTPUT->old_icon_url('t/delete') . '" />
|
||||
<img alt="'.get_string('delete_item','feedback').'" src="'.$OUTPUT->pix_url('t/delete') . '" />
|
||||
</a>';
|
||||
//print the button to drop the item
|
||||
// echo '<form action="delete_item.php" method="post"><fieldset>';
|
||||
// echo '<input class="feedback_delete_button" title="'.get_string('delete_item','feedback').'" type="image" src="'.$OUTPUT->old_icon_url('t/delete') . '" />';
|
||||
// echo '<input class="feedback_delete_button" title="'.get_string('delete_item','feedback').'" type="image" src="'.$OUTPUT->pix_url('t/delete') . '" />';
|
||||
// echo '<input type="hidden" name="deleteitem" value="'.$feedbackitem->id.'" />';
|
||||
// feedback_edit_print_default_form_values($id, $do_show);
|
||||
// echo '</fieldset></form>';
|
||||
|
@ -376,10 +376,10 @@ if($do_show == 'edit') {
|
|||
echo '<td>';
|
||||
$buttonlink = $ME.'?'.htmlspecialchars(feedback_edit_get_default_query($id, $do_show).'&movehere='.$moveposition);
|
||||
echo '<a title="'.get_string('move_here','feedback').'" href="'.$buttonlink.'">
|
||||
<img class="movetarget" alt="'.get_string('move_here','feedback').'" src="'.$OUTPUT->old_icon_url('movehere') . '" />
|
||||
<img class="movetarget" alt="'.get_string('move_here','feedback').'" src="'.$OUTPUT->pix_url('movehere') . '" />
|
||||
</a>';
|
||||
// echo '<form action="'.$ME.'" method="post"><fieldset>';
|
||||
// echo '<input class="feedback_movehere_button" title="'.get_string('move_here','feedback').'" type="image" src="'.$OUTPUT->old_icon_url('movehere') . '" />';
|
||||
// echo '<input class="feedback_movehere_button" title="'.get_string('move_here','feedback').'" type="image" src="'.$OUTPUT->pix_url('movehere') . '" />';
|
||||
// echo '<input type="hidden" name="movehere" value="'.$moveposition.'" />';
|
||||
// feedback_edit_print_default_form_values($id, $do_show);
|
||||
// echo '</fieldset></form>';
|
||||
|
|
|
@ -329,7 +329,7 @@ function feedback_print_recent_mod_activity($activity, $courseid, $detail, $modn
|
|||
if ($detail) {
|
||||
$modname = $modnames[$activity->type];
|
||||
echo '<div class="title">';
|
||||
echo "<img src=\"" . $OUTPUT->old_icon_url('icon', $activity->type) . "\" ".
|
||||
echo "<img src=\"" . $OUTPUT->pix_url('icon', $activity->type) . "\" ".
|
||||
"class=\"icon\" alt=\"$modname\" />";
|
||||
echo "<a href=\"$CFG->wwwroot/mod/feedback/view.php?id={$activity->cmid}\">{$activity->name}</a>";
|
||||
echo '</div>';
|
||||
|
|
|
@ -118,7 +118,7 @@ if($coursemap = feedback_get_courses_from_sitecourse_map($feedback->id)) {
|
|||
$table->setup();
|
||||
|
||||
foreach ($coursemap as $cmap) {
|
||||
$table->add_data(array('<a href="'.htmlspecialchars('unmapcourse.php?id='.$id.'&cmapid='.$cmap->id).'"><img src="'.$OUTPUT->old_icon_url('t/delete') . '" alt="Delete" /></a> ('.$cmap->shortname.') '.$cmap->fullname));
|
||||
$table->add_data(array('<a href="'.htmlspecialchars('unmapcourse.php?id='.$id.'&cmapid='.$cmap->id).'"><img src="'.$OUTPUT->pix_url('t/delete') . '" alt="Delete" /></a> ('.$cmap->shortname.') '.$cmap->fullname));
|
||||
}
|
||||
|
||||
$table->print_html();
|
||||
|
|
|
@ -81,8 +81,8 @@ function folder_get_file_link($file, $folder, $context) {
|
|||
$path = '/'.$context->id.'/folder_content/'.$folder->revision.$file->get_filepath().$file->get_filename();
|
||||
$viewurl = file_encode_url($urlbase, $path, false);
|
||||
$downloadurl = file_encode_url($urlbase, $path, true);
|
||||
$downicon = $OUTPUT->old_icon_url('t/down');
|
||||
$mimeicon = $OUTPUT->old_icon_url(file_mimetype_icon($file->get_mimetype()));
|
||||
$downicon = $OUTPUT->pix_url('t/down');
|
||||
$mimeicon = $OUTPUT->pix_url(file_mimetype_icon($file->get_mimetype()));
|
||||
|
||||
$downloadurl = " <a href=\"$downloadurl\" title=\"" . get_string('downloadfile') . "\"><img src=\"$downicon\" class=\"iconsmall\" alt=\"$strdownload\" /></a>";
|
||||
return "<a href=\"$viewurl\" title=\"\"><img src=\"$mimeicon\" class=\"icon\" alt=\"$strfile\" /> ".s($file->get_filename()).'</a>'.$downloadurl;
|
||||
|
|
|
@ -198,7 +198,7 @@ if ($generalforums) {
|
|||
} else if ($unread = forum_tp_count_forum_unread_posts($cm, $course)) {
|
||||
$unreadlink = '<span class="unread"><a href="view.php?f='.$forum->id.'">'.$unread.'</a>';
|
||||
$unreadlink .= '<a title="'.$strmarkallread.'" href="markposts.php?f='.
|
||||
$forum->id.'&mark=read"><img src="'.$OUTPUT->old_icon_url('t/clear') . '" alt="'.$strmarkallread.'" /></a></span>';
|
||||
$forum->id.'&mark=read"><img src="'.$OUTPUT->pix_url('t/clear') . '" alt="'.$strmarkallread.'" /></a></span>';
|
||||
} else {
|
||||
$unreadlink = '<span class="read">0</span>';
|
||||
}
|
||||
|
@ -325,7 +325,7 @@ if ($course->id != SITEID) { // Only real courses have learning forums
|
|||
} else if ($unread = forum_tp_count_forum_unread_posts($cm, $course)) {
|
||||
$unreadlink = '<span class="unread"><a href="view.php?f='.$forum->id.'">'.$unread.'</a>';
|
||||
$unreadlink .= '<a title="'.$strmarkallread.'" href="markposts.php?f='.
|
||||
$forum->id.'&mark=read"><img src="'.$OUTPUT->old_icon_url('t/clear') . '" alt="'.$strmarkallread.'" /></a></span>';
|
||||
$forum->id.'&mark=read"><img src="'.$OUTPUT->pix_url('t/clear') . '" alt="'.$strmarkallread.'" /></a></span>';
|
||||
} else {
|
||||
$unreadlink = '<span class="read">0</span>';
|
||||
}
|
||||
|
|
|
@ -3708,7 +3708,7 @@ function forum_print_discussion_header(&$post, $forum, $group=-1, $datestring=""
|
|||
echo '</a>';
|
||||
echo '<a title="'.$strmarkalldread.'" href="'.$CFG->wwwroot.'/mod/forum/markposts.php?f='.
|
||||
$forum->id.'&d='.$post->discussion.'&mark=read&returnpage=view.php">' .
|
||||
'<img src="'.$OUTPUT->old_icon_url('t/clear') . '" class="iconsmall" alt="'.$strmarkalldread.'" /></a>';
|
||||
'<img src="'.$OUTPUT->pix_url('t/clear') . '" class="iconsmall" alt="'.$strmarkalldread.'" /></a>';
|
||||
echo '</span>';
|
||||
} else {
|
||||
echo '<span class="read">';
|
||||
|
@ -4354,7 +4354,7 @@ function forum_print_attachments($post, $cm, $type) {
|
|||
foreach ($files as $file) {
|
||||
$filename = $file->get_filename();
|
||||
$mimetype = $file->get_mimetype();
|
||||
$iconimage = '<img src="'.$OUTPUT->old_icon_url(file_mimetype_icon($mimetype)).'" class="icon" alt="'.$mimetype.'" />';
|
||||
$iconimage = '<img src="'.$OUTPUT->pix_url(file_mimetype_icon($mimetype)).'" class="icon" alt="'.$mimetype.'" />';
|
||||
$path = file_encode_url($CFG->wwwroot.'/pluginfile.php', '/'.$context->id.'/forum_attachment/'.$post->id.'/'.$filename);
|
||||
|
||||
if ($type == 'html') {
|
||||
|
@ -5651,7 +5651,7 @@ function forum_print_latest_discussions($course, $forum, $maxdiscussions=-1, $di
|
|||
echo ' <a title="'.get_string('markallread', 'forum').
|
||||
'" href="'.$CFG->wwwroot.'/mod/forum/markposts.php?f='.
|
||||
$forum->id.'&mark=read&returnpage=view.php">'.
|
||||
'<img src="'.$OUTPUT->old_icon_url('t/clear') . '" class="iconsmall" alt="'.get_string('markallread', 'forum').'" /></a>';
|
||||
'<img src="'.$OUTPUT->pix_url('t/clear') . '" class="iconsmall" alt="'.get_string('markallread', 'forum').'" /></a>';
|
||||
}
|
||||
echo '</th>';
|
||||
}
|
||||
|
@ -5886,7 +5886,7 @@ function forum_print_discussion($course, $cm, $forum, $discussion, $post, $mode,
|
|||
echo '<div class="ratingsubmit">';
|
||||
echo '<input type="submit" id="forumpostratingsubmit" value="'.get_string('sendinratings', 'forum').'" />';
|
||||
if (ajaxenabled() && !empty($CFG->forum_ajaxrating)) { /// AJAX enabled, standard submission form
|
||||
$PAGE->requires->js_function_call('add_menu_listeners', array($OUTPUT->old_icon_url('i/loading_small')))->on_dom_ready();
|
||||
$PAGE->requires->js_function_call('add_menu_listeners', array($OUTPUT->pix_url('i/loading_small')))->on_dom_ready();
|
||||
}
|
||||
if ($forum->scale < 0) {
|
||||
if ($scale = $DB->get_record("scale", array("id" => abs($forum->scale)))) {
|
||||
|
@ -6199,7 +6199,7 @@ function forum_print_recent_mod_activity($activity, $courseid, $detail, $modname
|
|||
echo '<div class="title">';
|
||||
if ($detail) {
|
||||
$aname = s($activity->name);
|
||||
echo "<img src=\"" . $OUTPUT->old_icon_url('icon', $activity->type) . "\" ".
|
||||
echo "<img src=\"" . $OUTPUT->pix_url('icon', $activity->type) . "\" ".
|
||||
"class=\"icon\" alt=\"{$aname}\" />";
|
||||
}
|
||||
echo "<a href=\"$CFG->wwwroot/mod/forum/discuss.php?d={$activity->content->discussion}"
|
||||
|
@ -7991,7 +7991,7 @@ function forum_extend_navigation($navref, $course, $module, $cm) {
|
|||
$navref->get($discussionkey)->mainnavonly = true;
|
||||
|
||||
foreach ($discussions as $discussion) {
|
||||
$icon = $OUTPUT->old_icon_url('i/feedback');
|
||||
$icon = $OUTPUT->pix_url('i/feedback');
|
||||
$url = new moodle_url($CFG->wwwroot.'/mod/forum/discuss.php', array('d'=>$discussion->discussion));
|
||||
$navref->get($discussionkey)->add($discussion->subject, $url, navigation_node::TYPE_SETTING, null, null, $icon);
|
||||
}
|
||||
|
@ -8019,7 +8019,7 @@ function forum_extend_navigation($navref, $course, $module, $cm) {
|
|||
$recentkey = $navref->add(get_string('recentactivity').' ('.count($recentposts).')');
|
||||
$navref->get($recentkey)->mainnavonly = true;
|
||||
foreach ($recentposts as $post) {
|
||||
$icon = $OUTPUT->old_icon_url('i/feedback');
|
||||
$icon = $OUTPUT->pix_url('i/feedback');
|
||||
$url = new moodle_url($CFG->wwwroot.'/mod/forum/discuss.php', array('d'=>$post->content->discussion));
|
||||
$title = $post->content->subject."\n".userdate($post->timestamp, get_string('strftimerecent', 'langconfig'))."\n".$post->user->firstname.' '.$post->user->lastname;
|
||||
$navref->get($recentkey)->add($title, $url, navigation_node::TYPE_SETTING, null, null, $icon);
|
||||
|
@ -8141,7 +8141,7 @@ function forum_extend_settings_navigation($settingsnav, $module=null) {
|
|||
$userid = $USER->id;
|
||||
}
|
||||
$url = new moodle_url(rss_get_url($PAGE->course->id, $userid, "forum", $forumobject->id));
|
||||
$forum->add($string, $url, settings_navigation::TYPE_SETTING, null, null, $OUTPUT->old_icon_url('i/rss'));
|
||||
$forum->add($string, $url, settings_navigation::TYPE_SETTING, null, null, $OUTPUT->pix_url('i/rss'));
|
||||
}
|
||||
|
||||
return $forumkey;
|
||||
|
|
|
@ -220,8 +220,8 @@ if ( $action ) {
|
|||
</td>
|
||||
<td style="width:10%" align="center"><b>
|
||||
<?php
|
||||
echo "<a href=\"editcategories.php?id=$cm->id&action=delete&mode=cat&hook=$category->id\"><img alt=\"" . get_string("delete") . "\"src=\"" . $OUTPUT->old_icon_url('t/delete') . "\" class=\"iconsmall\" /></a> ";
|
||||
echo "<a href=\"editcategories.php?id=$cm->id&action=edit&mode=cat&hook=$category->id\"><img alt=\"" . get_string("edit") . "\" src=\"" . $OUTPUT->old_icon_url('t/edit') . "\" class=\"iconsmall\" /></a>";
|
||||
echo "<a href=\"editcategories.php?id=$cm->id&action=delete&mode=cat&hook=$category->id\"><img alt=\"" . get_string("delete") . "\"src=\"" . $OUTPUT->pix_url('t/delete') . "\" class=\"iconsmall\" /></a> ";
|
||||
echo "<a href=\"editcategories.php?id=$cm->id&action=edit&mode=cat&hook=$category->id\"><img alt=\"" . get_string("edit") . "\" src=\"" . $OUTPUT->pix_url('t/edit') . "\" class=\"iconsmall\" /></a>";
|
||||
?>
|
||||
</b></td>
|
||||
</tr>
|
||||
|
|
|
@ -953,14 +953,14 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry, $mode='',$h
|
|||
$mainglossary = $DB->get_record('glossary', array('mainglossary'=>1,'course'=>$course->id));
|
||||
if ( $mainglossary ) { // if there is a main glossary defined, allow to export the current entry
|
||||
$output = true;
|
||||
$return .= ' <a title="'.get_string('exporttomainglossary','glossary') . '" href="exportentry.php?id='.$entry->id.'&prevmode='.$mode.'&hook='.urlencode($hook).'"><img src="'.$OUTPUT->old_icon_url('export', 'glossary').'" class="iconsmall" alt="'.get_string('exporttomainglossary','glossary').$altsuffix.'" /></a>';
|
||||
$return .= ' <a title="'.get_string('exporttomainglossary','glossary') . '" href="exportentry.php?id='.$entry->id.'&prevmode='.$mode.'&hook='.urlencode($hook).'"><img src="'.$OUTPUT->pix_url('export', 'glossary').'" class="iconsmall" alt="'.get_string('exporttomainglossary','glossary').$altsuffix.'" /></a>';
|
||||
}
|
||||
}
|
||||
|
||||
if ( $entry->sourceglossaryid ) {
|
||||
$icon = $OUTPUT->old_icon_url('minus', 'glossary'); // graphical metaphor (minus) for deleting an imported entry
|
||||
$icon = $OUTPUT->pix_url('minus', 'glossary'); // graphical metaphor (minus) for deleting an imported entry
|
||||
} else {
|
||||
$icon = $OUTPUT->old_icon_url('t/delete');
|
||||
$icon = $OUTPUT->pix_url('t/delete');
|
||||
}
|
||||
|
||||
//Decide if an entry is editable:
|
||||
|
@ -973,7 +973,7 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry, $mode='',$h
|
|||
$return .= $icon;
|
||||
$return .= "\" class=\"iconsmall\" alt=\"" . get_string("delete") .$altsuffix."\" /></a> ";
|
||||
|
||||
$return .= " <a title=\"" . get_string("edit") . "\" href=\"edit.php?cmid=$cm->id&id=$entry->id&mode=$mode&hook=".urlencode($hook)."\"><img src=\"" . $OUTPUT->old_icon_url('t/edit') . "\" class=\"iconsmall\" alt=\"" . get_string("edit") .$altsuffix. "\" /></a>";
|
||||
$return .= " <a title=\"" . get_string("edit") . "\" href=\"edit.php?cmid=$cm->id&id=$entry->id&mode=$mode&hook=".urlencode($hook)."\"><img src=\"" . $OUTPUT->pix_url('t/edit') . "\" class=\"iconsmall\" alt=\"" . get_string("edit") .$altsuffix. "\" /></a>";
|
||||
} elseif ( $importedentry ) {
|
||||
$return .= " <font size=\"-1\">" . get_string("exportedentry","glossary") . "</font>";
|
||||
}
|
||||
|
@ -1105,7 +1105,7 @@ function glossary_print_entry_approval($cm, $entry, $mode, $align="right", $ins
|
|||
if ($insidetable) {
|
||||
echo '<table class="glossaryapproval" align="'.$align.'"><tr><td align="'.$align.'">';
|
||||
}
|
||||
echo '<a title="'.get_string('approve','glossary').'" href="approve.php?eid='.$entry->id.'&mode='.$mode.'&sesskey='.sesskey().'"><img align="'.$align.'" src="'.$OUTPUT->old_icon_url('i/approve') . '" style="border:0px; width:34px; height:34px" alt="'.get_string('approve','glossary').'" /></a>';
|
||||
echo '<a title="'.get_string('approve','glossary').'" href="approve.php?eid='.$entry->id.'&mode='.$mode.'&sesskey='.sesskey().'"><img align="'.$align.'" src="'.$OUTPUT->pix_url('i/approve') . '" style="border:0px; width:34px; height:34px" alt="'.get_string('approve','glossary').'" /></a>';
|
||||
if ($insidetable) {
|
||||
echo '</td></tr></table>';
|
||||
}
|
||||
|
@ -1271,7 +1271,7 @@ function glossary_print_attachments($entry, $cm, $type=NULL, $align="left") {
|
|||
foreach ($files as $file) {
|
||||
$filename = $file->get_filename();
|
||||
$mimetype = $file->get_mimetype();
|
||||
$iconimage = '<img src="'.$OUTPUT->old_icon_url(file_mimetype_icon($mimetype)).'" class="icon" alt="'.$mimetype.'" />';
|
||||
$iconimage = '<img src="'.$OUTPUT->pix_url(file_mimetype_icon($mimetype)).'" class="icon" alt="'.$mimetype.'" />';
|
||||
$path = file_encode_url($CFG->wwwroot.'/pluginfile.php', '/'.$context->id.'/glossary_attachment/'.$entry->id.'/'.$filename);
|
||||
|
||||
if ($type == 'html') {
|
||||
|
@ -1643,7 +1643,7 @@ function glossary_print_sorting_links($cm, $mode, $sortkey = '',$sortorder = '')
|
|||
$neworder = '&sortorder=asc';
|
||||
$newordertitle = get_string('changeto', 'glossary', $asc);
|
||||
}
|
||||
$icon = " <img src=\"".$OUTPUT->old_icon_url($sortorder, 'glossary')."\" class=\"icon\" alt=\"$newordertitle\" />";
|
||||
$icon = " <img src=\"".$OUTPUT->pix_url($sortorder, 'glossary')."\" class=\"icon\" alt=\"$newordertitle\" />";
|
||||
} else {
|
||||
if ( $sortkey != 'CREATION' and $sortkey != 'UPDATE' and
|
||||
$sortkey != 'FIRSTNAME' and $sortkey != 'LASTNAME' ) {
|
||||
|
@ -1652,7 +1652,7 @@ function glossary_print_sorting_links($cm, $mode, $sortkey = '',$sortorder = '')
|
|||
} else {
|
||||
$newordertitle = $desc;
|
||||
$neworder = '&sortorder=desc';
|
||||
$icon = ' <img src="'.$OUTPUT->old_icon_url('asc', 'glossary').'" class="icon" alt="'.$newordertitle.'" />';
|
||||
$icon = ' <img src="'.$OUTPUT->pix_url('asc', 'glossary').'" class="icon" alt="'.$newordertitle.'" />';
|
||||
}
|
||||
}
|
||||
$ficon = '';
|
||||
|
|
|
@ -314,7 +314,7 @@ if ($showcommonelements) {
|
|||
if (has_capability('mod/glossary:manageentries', $context) or $glossary->allowprintview) {
|
||||
// print_box_start('printicon');
|
||||
echo '<span class="wrap printicon">';
|
||||
echo " <a title =\"". get_string("printerfriendly","glossary") ."\" href=\"print.php?id=$cm->id&mode=$mode&hook=".urlencode($hook)."&sortkey=$sortkey&sortorder=$sortorder&offset=$offset\"><img class=\"icon\" src=\"".$OUTPUT->old_icon_url('print', 'glossary')."\" alt=\"". get_string("printerfriendly","glossary") . "\" /></a>";
|
||||
echo " <a title =\"". get_string("printerfriendly","glossary") ."\" href=\"print.php?id=$cm->id&mode=$mode&hook=".urlencode($hook)."&sortkey=$sortkey&sortorder=$sortorder&offset=$offset\"><img class=\"icon\" src=\"".$OUTPUT->pix_url('print', 'glossary')."\" alt=\"". get_string("printerfriendly","glossary") . "\" /></a>";
|
||||
echo '</span>';
|
||||
// print_box_end();
|
||||
}
|
||||
|
|
|
@ -307,10 +307,10 @@
|
|||
// Show the zoom boxes
|
||||
if ($displaysection==$hotpot->section) {
|
||||
$strshowall = get_string('showall'.$course->format);
|
||||
$printsection .= '<br /><a href="index.php?id='.$course->id.'&section=all" title="'.$strshowall.'"><img src="'.$OUTPUT->old_icon_url('i/all') . '" style="height:25px; width:16px; border:0px" alt="'.$strshowall.'" /></a><br />';
|
||||
$printsection .= '<br /><a href="index.php?id='.$course->id.'&section=all" title="'.$strshowall.'"><img src="'.$OUTPUT->pix_url('i/all') . '" style="height:25px; width:16px; border:0px" alt="'.$strshowall.'" /></a><br />';
|
||||
} else {
|
||||
$strshowone = get_string('showonly'.preg_replace('|s$|', '', $course->format, 1), '', $hotpot->section);
|
||||
$printsection .= '<br /><a href="index.php?id='.$course->id.'&section='.$hotpot->section.'" title="'.$strshowone.'"><img src="'.$OUTPUT->old_icon_url('i/one') . '" class="icon" alt="'.$strshowone.'" /></a><br />';
|
||||
$printsection .= '<br /><a href="index.php?id='.$course->id.'&section='.$hotpot->section.'" title="'.$strshowone.'"><img src="'.$OUTPUT->pix_url('i/one') . '" class="icon" alt="'.$strshowone.'" /></a><br />';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1267,7 +1267,7 @@ function hotpot_print_recent_mod_activity($activity, $course, $detail=false) {
|
|||
|
||||
if ($detail) {
|
||||
// activity icon
|
||||
$src = "" . $OUTPUT->old_icon_url('icon', $activity->type) . "";
|
||||
$src = "" . $OUTPUT->pix_url('icon', $activity->type) . "";
|
||||
print '<img src="'.$src.'" class="icon" alt="'.$activity->type.'" /> ';
|
||||
|
||||
// link to activity
|
||||
|
|
|
@ -452,16 +452,16 @@ class moodle_mod_lesson_renderer extends moodle_renderer_base {
|
|||
|
||||
if ($printmove) {
|
||||
$printmovehtml = new moodle_url($CFG->wwwroot.'/mod/lesson/lesson.php', array('id'=>$this->page->cm->id, 'action'=>'move', 'pageid'=>$page->id, 'sesskey'=>sesskey()));
|
||||
$actions[] = html_link::make($printmovehtml, '<img src="'.$this->output->old_icon_url('t/move').'" class="iconsmall" alt="'.get_string('move').'" />');
|
||||
$actions[] = html_link::make($printmovehtml, '<img src="'.$this->output->pix_url('t/move').'" class="iconsmall" alt="'.get_string('move').'" />');
|
||||
}
|
||||
$url = new moodle_url($CFG->wwwroot.'/mod/lesson/editpage.php', array('id'=>$this->page->cm->id, 'pageid'=>$page->id, 'edit'=>1));
|
||||
$actions[] = html_link::make($url, '<img src="'.$this->output->old_icon_url('t/edit').'" class="iconsmall" alt="'.get_string('update').'" />');
|
||||
$actions[] = html_link::make($url, '<img src="'.$this->output->pix_url('t/edit').'" class="iconsmall" alt="'.get_string('update').'" />');
|
||||
|
||||
$url = new moodle_url($CFG->wwwroot.'/mod/lesson/view.php', array('id'=>$this->page->cm->id, 'pageid'=>$page->id));
|
||||
$actions[] = html_link::make($url, '<img src="'.$this->output->old_icon_url('t/preview').'" class="iconsmall" alt="'.get_string('preview').'" />');
|
||||
$actions[] = html_link::make($url, '<img src="'.$this->output->pix_url('t/preview').'" class="iconsmall" alt="'.get_string('preview').'" />');
|
||||
|
||||
$url = new moodle_url($CFG->wwwroot.'/mod/lesson/lesson.php', array('id'=>$this->page->cm->id, 'action'=>'confirmdelete', 'pageid'=>$page->id, 'sesskey'=>sesskey()));
|
||||
$actions[] = html_link::make($url, '<img src="'.$this->output->old_icon_url('t/delete').'" class="iconsmall" alt="'.get_string('delete').'" />');
|
||||
$actions[] = html_link::make($url, '<img src="'.$this->output->pix_url('t/delete').'" class="iconsmall" alt="'.get_string('delete').'" />');
|
||||
|
||||
if ($printaddpage) {
|
||||
$options = array();
|
||||
|
|
|
@ -431,7 +431,7 @@ function quiz_print_question_list($quiz, $pageurl, $allowdelete = true,
|
|||
echo '<div class="quizpagedelete">';
|
||||
echo '<a title="' . get_string('removeemptypage', 'quiz') . '" href="' .
|
||||
$pageurl->out_action(array('deleteemptypage' => $i - 1)) .
|
||||
'"><img src="' . $OUTPUT->old_icon_url('t/delete') . '" ' .
|
||||
'"><img src="' . $OUTPUT->pix_url('t/delete') . '" ' .
|
||||
'class="iconsmall" alt="' . $strremove . '" /></a>';
|
||||
echo '</div>';
|
||||
}
|
||||
|
@ -492,7 +492,7 @@ function quiz_print_question_list($quiz, $pageurl, $allowdelete = true,
|
|||
}
|
||||
echo "<a title=\"$strmoveup\" href=\"" .
|
||||
$pageurl->out_action(array('up' => $question->id)) . "\"><img
|
||||
src=\"" . $OUTPUT->old_icon_url('t/up') . "\" class=\"iconsmall
|
||||
src=\"" . $OUTPUT->pix_url('t/up') . "\" class=\"iconsmall
|
||||
$upbuttonclass\" alt=\"$strmoveup\" /></a>";
|
||||
}
|
||||
|
||||
|
@ -501,7 +501,7 @@ function quiz_print_question_list($quiz, $pageurl, $allowdelete = true,
|
|||
if (!$hasattempts) {
|
||||
echo "<a title=\"$strmovedown\" href=\"" .
|
||||
$pageurl->out_action(array('down' => $question->id)) . "\"><img
|
||||
src=\"" . $OUTPUT->old_icon_url('t/down') . "\" class=\"iconsmall\"" .
|
||||
src=\"" . $OUTPUT->pix_url('t/down') . "\" class=\"iconsmall\"" .
|
||||
" alt=\"$strmovedown\" /></a>";
|
||||
}
|
||||
}
|
||||
|
@ -510,7 +510,7 @@ function quiz_print_question_list($quiz, $pageurl, $allowdelete = true,
|
|||
if (!$hasattempts) {
|
||||
echo "<a title=\"$strremove\" href=\"" .
|
||||
$pageurl->out_action(array('remove' => $question->id)) . "\">
|
||||
<img src=\"" . $OUTPUT->old_icon_url('t/delete') . "\" " .
|
||||
<img src=\"" . $OUTPUT->pix_url('t/delete') . "\" " .
|
||||
"class=\"iconsmall\" alt=\"$strremove\" /></a>";
|
||||
}
|
||||
}
|
||||
|
@ -910,7 +910,7 @@ function print_random_option_icon($question) {
|
|||
$icon = 'nosubcat';
|
||||
$tooltip = get_string('randomnosubcat', 'quiz');
|
||||
}
|
||||
echo '<img src="' . $OUTPUT->old_icon_url('i/' . $icon) . '" alt="' .
|
||||
echo '<img src="' . $OUTPUT->pix_url('i/' . $icon) . '" alt="' .
|
||||
$tooltip . '" title="' . $tooltip . '" class="uihint" />';
|
||||
|
||||
}
|
||||
|
|
|
@ -838,7 +838,7 @@ function quiz_print_recent_mod_activity($activity, $courseid, $detail, $modnames
|
|||
if ($detail) {
|
||||
$modname = $modnames[$activity->type];
|
||||
echo '<div class="title">';
|
||||
echo "<img src=\"" . $OUTPUT->old_icon_url('icon', $activity->type) . "\" ".
|
||||
echo "<img src=\"" . $OUTPUT->pix_url('icon', $activity->type) . "\" ".
|
||||
"class=\"icon\" alt=\"$modname\" />";
|
||||
echo "<a href=\"$CFG->wwwroot/mod/quiz/view.php?id={$activity->cmid}\">{$activity->name}</a>";
|
||||
echo '</div>';
|
||||
|
@ -1454,26 +1454,26 @@ function quiz_extend_settings_navigation($settings, $module) {
|
|||
|
||||
if (has_capability('mod/quiz:view', $PAGE->cm->context)) {
|
||||
$url = new moodle_url($CFG->wwwroot.'/mod/quiz/view.php', array('id'=>$PAGE->cm->id));
|
||||
$quiznav->add(get_string('info', 'quiz'), $url, navigation_node::TYPE_SETTING, null, null, $OUTPUT->old_icon_url('i/info'));
|
||||
$quiznav->add(get_string('info', 'quiz'), $url, navigation_node::TYPE_SETTING, null, null, $OUTPUT->pix_url('i/info'));
|
||||
}
|
||||
if (has_capability('mod/quiz:viewreports', $PAGE->cm->context)) {
|
||||
$url = new moodle_url($CFG->wwwroot.'/mod/quiz/report.php', array('q'=>$quiz->id));
|
||||
$reportkey = $quiznav->add(get_string('results', 'quiz'), $url, navigation_node::TYPE_SETTING, null, null, $OUTPUT->old_icon_url('i/report'));
|
||||
$reportkey = $quiznav->add(get_string('results', 'quiz'), $url, navigation_node::TYPE_SETTING, null, null, $OUTPUT->pix_url('i/report'));
|
||||
|
||||
require_once($CFG->dirroot.'/mod/quiz/report/reportlib.php');
|
||||
$reportlist = quiz_report_list($PAGE->cm->context);
|
||||
foreach ($reportlist as $report) {
|
||||
$url = new moodle_url($CFG->wwwroot.'/mod/quiz/report.php', array('q'=>$quiz->id, 'mode'=>$report));
|
||||
$quiznav->get($reportkey)->add(get_string($report, 'quiz_'.$report), $url, navigation_node::TYPE_SETTING, null, null, $OUTPUT->old_icon_url('i/item'));
|
||||
$quiznav->get($reportkey)->add(get_string($report, 'quiz_'.$report), $url, navigation_node::TYPE_SETTING, null, null, $OUTPUT->pix_url('i/item'));
|
||||
}
|
||||
}
|
||||
if (has_capability('mod/quiz:preview', $PAGE->cm->context)) {
|
||||
$url = new moodle_url($CFG->wwwroot.'/mod/quiz/startattempt.php', array('cmid'=>$PAGE->cm->id, 'sesskey'=>sesskey()));
|
||||
$quiznav->add(get_string('preview', 'quiz'), $url, navigation_node::TYPE_SETTING, null, null, $OUTPUT->old_icon_url('t/preview'));
|
||||
$quiznav->add(get_string('preview', 'quiz'), $url, navigation_node::TYPE_SETTING, null, null, $OUTPUT->pix_url('t/preview'));
|
||||
}
|
||||
if (has_capability('mod/quiz:manage', $PAGE->cm->context)) {
|
||||
$url = new moodle_url($CFG->wwwroot.'/mod/quiz/edit.php', array('cmid'=>$PAGE->cm->id));
|
||||
$quiznav->add(get_string('edit'), $url, navigation_node::TYPE_SETTING, null, null, $OUTPUT->old_icon_url('t/edit'));
|
||||
$quiznav->add(get_string('edit'), $url, navigation_node::TYPE_SETTING, null, null, $OUTPUT->pix_url('t/edit'));
|
||||
}
|
||||
|
||||
if (has_capability('moodle/course:manageactivities', $PAGE->cm->context)) {
|
||||
|
|
|
@ -790,7 +790,7 @@ function quiz_question_edit_button($cmid, $question, $returnurl, $contentbeforei
|
|||
$questionparams = array('returnurl' => $returnurl, 'cmid' => $cmid, 'id' => $question->id);
|
||||
$questionurl = new moodle_url("$CFG->wwwroot/question/question.php", $questionparams);
|
||||
return '<a title="' . $action . '" href="' . $questionurl->out() . '">' . $contentbeforeicon .
|
||||
'<img src="' . $OUTPUT->old_icon_url($icon) . '" alt="' . $action . '" /></a>';
|
||||
'<img src="' . $OUTPUT->pix_url($icon) . '" alt="' . $action . '" /></a>';
|
||||
} else {
|
||||
return $contentbeforeicon;
|
||||
}
|
||||
|
@ -824,7 +824,7 @@ function quiz_question_preview_button($quiz, $question, $label = false) {
|
|||
|
||||
// Build the icon.
|
||||
$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 = $strpreviewquestion;
|
||||
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
#quiznavigation .qnbutton.flagged {
|
||||
background-image: url('<?php echo $PAGE->theme->old_icon_url('i/ne_red_mark') ?>');
|
||||
}
|
|
@ -98,7 +98,7 @@ foreach ($attemptobj->get_question_iterator() as $number => $question) {
|
|||
}
|
||||
$flag = '';
|
||||
if ($attemptobj->is_question_flagged($question->id)) {
|
||||
$flag = ' <img src="' . $OUTPUT->old_icon_url('i/flagged') . '" alt="' .
|
||||
$flag = ' <img src="' . $OUTPUT->pix_url('i/flagged') . '" alt="' .
|
||||
get_string('flagged', 'question') . '" class="questionflag" />';
|
||||
}
|
||||
$row = array('<a href="' . s($attemptobj->attempt_url($question->id)) . '">' . $number . $flag . '</a>',
|
||||
|
|
|
@ -40,10 +40,10 @@ if (has_capability('mod/quiz:viewreports', $context)) {
|
|||
}
|
||||
if (has_capability('mod/quiz:preview', $context)) {
|
||||
$strpreview = get_string('preview', 'quiz');
|
||||
$row[] = new tabobject('preview', "$CFG->wwwroot/mod/quiz/startattempt.php?cmid=$cm->id&sesskey=" . sesskey(), "<img src=\"" . $OUTPUT->old_icon_url('t/preview') . "\" class=\"iconsmall\" alt=\"$strpreview\" /> $strpreview", $strpreview);
|
||||
$row[] = new tabobject('preview', "$CFG->wwwroot/mod/quiz/startattempt.php?cmid=$cm->id&sesskey=" . sesskey(), "<img src=\"" . $OUTPUT->pix_url('t/preview') . "\" class=\"iconsmall\" alt=\"$strpreview\" /> $strpreview", $strpreview);
|
||||
}
|
||||
if (has_capability('mod/quiz:manage', $context)) {
|
||||
$row[] = new tabobject('edit', "$CFG->wwwroot/mod/quiz/edit.php?cmid=$cm->id", "<img src=\"" . $OUTPUT->old_icon_url('t/edit') . "\" class=\"iconsmall\" alt=\"$stredit\" /> $stredit",$stredit);
|
||||
$row[] = new tabobject('edit', "$CFG->wwwroot/mod/quiz/edit.php?cmid=$cm->id", "<img src=\"" . $OUTPUT->pix_url('t/edit') . "\" class=\"iconsmall\" alt=\"$stredit\" /> $stredit",$stredit);
|
||||
}
|
||||
|
||||
if ($currenttab == 'info' && count($row) == 1) {
|
||||
|
|
|
@ -89,7 +89,7 @@ foreach ($resources as $resource) {
|
|||
$icon = '';
|
||||
if (!empty($cm->icon)) {
|
||||
// each resource file has an icon in 2.0
|
||||
$icon = '<img src="'.$OUTPUT->old_icon_url($cm->icon).'" class="activityicon" alt="" /> ';
|
||||
$icon = '<img src="'.$OUTPUT->pix_url($cm->icon).'" class="activityicon" alt="" /> ';
|
||||
}
|
||||
|
||||
$class = $resource->visible ? '' : 'class="dimmed"'; // hidden modules are dimmed
|
||||
|
|
|
@ -435,9 +435,9 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
|||
if (isset($_COOKIE['hide:SCORMitem'.$nextsco->id])) {
|
||||
$icon = 'plus';
|
||||
}
|
||||
$result->toc .= '<a href="javascript:expandCollide(\'img'.$sublist.'\',\'s'.$sublist.'\','.$nextsco->id.');"><img id="img'.$sublist.'" src="'.$OUTPUT->old_icon_url('pix/' . $icon, 'scorm').'" alt="'.$strexpand.'" title="'.$strexpand.'"/></a>';
|
||||
$result->toc .= '<a href="javascript:expandCollide(\'img'.$sublist.'\',\'s'.$sublist.'\','.$nextsco->id.');"><img id="img'.$sublist.'" src="'.$OUTPUT->pix_url('pix/' . $icon, 'scorm').'" alt="'.$strexpand.'" title="'.$strexpand.'"/></a>';
|
||||
} else if ($isvisible) {
|
||||
$result->toc .= '<img src="'.$OUTPUT->old_icon_url('pix/spacer', 'scorm').'" alt="" />';
|
||||
$result->toc .= '<img src="'.$OUTPUT->pix_url('pix/spacer', 'scorm').'" alt="" />';
|
||||
}
|
||||
if (empty($sco->title)) {
|
||||
$sco->title = $sco->identifier;
|
||||
|
@ -454,9 +454,9 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
|||
$usertrack = $usertracks[$sco->identifier];
|
||||
$strstatus = get_string($usertrack->status,'scorm');
|
||||
if ($sco->scormtype == 'sco') {
|
||||
$statusicon = '<img src="'.$OUTPUT->old_icon_url('pix/' . $usertrack->status, 'scorm').'" alt="'.$strstatus.'" title="'.$strstatus.'" />';
|
||||
$statusicon = '<img src="'.$OUTPUT->pix_url('pix/' . $usertrack->status, 'scorm').'" alt="'.$strstatus.'" title="'.$strstatus.'" />';
|
||||
} else {
|
||||
$statusicon = '<img src="'.$OUTPUT->old_icon_url('pix/assetc', 'scorm').'" alt="'.get_string('assetlaunched','scorm').'" title="'.get_string('assetlaunched','scorm').'" />';
|
||||
$statusicon = '<img src="'.$OUTPUT->pix_url('pix/assetc', 'scorm').'" alt="'.get_string('assetlaunched','scorm').'" title="'.get_string('assetlaunched','scorm').'" />';
|
||||
}
|
||||
|
||||
if (($usertrack->status == 'notattempted') || ($usertrack->status == 'incomplete') || ($usertrack->status == 'browsed')) {
|
||||
|
@ -470,7 +470,7 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
|||
}
|
||||
$strsuspended = get_string('suspended','scorm');
|
||||
if (isset($usertrack->{'cmi.core.exit'}) && ($usertrack->{'cmi.core.exit'} == 'suspend')) {
|
||||
$statusicon = '<img src="'.$OUTPUT->old_icon_url('pix/suspend', 'scorm').'" alt="'.$strstatus.' - '.$strsuspended.'" title="'.$strstatus.' - '.$strsuspended.'" />';
|
||||
$statusicon = '<img src="'.$OUTPUT->pix_url('pix/suspend', 'scorm').'" alt="'.$strstatus.' - '.$strsuspended.'" title="'.$strstatus.' - '.$strsuspended.'" />';
|
||||
}
|
||||
} else {
|
||||
if ($play && empty($scoid)) {
|
||||
|
@ -478,9 +478,9 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
|||
}
|
||||
$incomplete = true;
|
||||
if ($sco->scormtype == 'sco') {
|
||||
$statusicon = '<img src="'.$OUTPUT->old_icon_url('pix/notattempted', 'scorm').'" alt="'.get_string('notattempted','scorm').'" title="'.get_string('notattempted','scorm').'" />';
|
||||
$statusicon = '<img src="'.$OUTPUT->pix_url('pix/notattempted', 'scorm').'" alt="'.get_string('notattempted','scorm').'" title="'.get_string('notattempted','scorm').'" />';
|
||||
} else {
|
||||
$statusicon = '<img src="'.$OUTPUT->old_icon_url('pix/asset', 'scorm').'" alt="'.get_string('asset','scorm').'" title="'.get_string('asset','scorm').'" />';
|
||||
$statusicon = '<img src="'.$OUTPUT->pix_url('pix/asset', 'scorm').'" alt="'.get_string('asset','scorm').'" title="'.get_string('asset','scorm').'" />';
|
||||
}
|
||||
}
|
||||
if ($sco->id == $scoid) {
|
||||
|
@ -536,8 +536,8 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
|||
$result->toc .= "\t</ul>\n";
|
||||
if ($scorm->hidetoc == 0) {
|
||||
$result->toc .= $PAGE->requires->data_for_js('scormdata', array(
|
||||
'plusicon' => $OUTPUT->old_icon_url('pix/plus', 'scorm'),
|
||||
'minusicon' => $OUTPUT->old_icon_url('pix/minus', 'scorm')))->asap();
|
||||
'plusicon' => $OUTPUT->pix_url('pix/plus', 'scorm'),
|
||||
'minusicon' => $OUTPUT->pix_url('pix/minus', 'scorm')))->asap();
|
||||
$result->toc .= $PAGE->requires->js('lib/cookies.js')->asap();
|
||||
$result->toc .= $PAGE->requires->js('mod/scorm/datamodels/scorm_datamodels.js')->asap();
|
||||
}
|
||||
|
|
|
@ -212,9 +212,9 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
|||
if (isset($_COOKIE['hide:SCORMitem'.$nextsco->id])) {
|
||||
$icon = 'plus';
|
||||
}
|
||||
$result->toc .= '<a href="javascript:expandCollide(\'img'.$sublist.'\',\'s'.$sublist.'\','.$nextsco->id.');"><img id="img'.$sublist.'" src="'.$OUTPUT->old_icon_url('pix/' . $icon, 'scorm').'" alt="'.$strexpand.'" title="'.$strexpand.'"/></a>';
|
||||
$result->toc .= '<a href="javascript:expandCollide(\'img'.$sublist.'\',\'s'.$sublist.'\','.$nextsco->id.');"><img id="img'.$sublist.'" src="'.$OUTPUT->pix_url('pix/' . $icon, 'scorm').'" alt="'.$strexpand.'" title="'.$strexpand.'"/></a>';
|
||||
} else if ($isvisible) {
|
||||
$result->toc .= '<img src="'.$OUTPUT->old_icon_url('pix/spacer', 'scorm').'" alt="" />';
|
||||
$result->toc .= '<img src="'.$OUTPUT->pix_url('pix/spacer', 'scorm').'" alt="" />';
|
||||
}
|
||||
if (empty($sco->title)) {
|
||||
$sco->title = $sco->identifier;
|
||||
|
@ -231,9 +231,9 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
|||
$usertrack = $usertracks[$sco->identifier];
|
||||
$strstatus = get_string($usertrack->status,'scorm');
|
||||
if ($sco->scormtype == 'sco') {
|
||||
$statusicon = '<img src="'.$OUTPUT->old_icon_url('pix/'.$usertrack->status, 'scorm').'" alt="'.$strstatus.'" title="'.$strstatus.'" />';
|
||||
$statusicon = '<img src="'.$OUTPUT->pix_url('pix/'.$usertrack->status, 'scorm').'" alt="'.$strstatus.'" title="'.$strstatus.'" />';
|
||||
} else {
|
||||
$statusicon = '<img src="'.$OUTPUT->old_icon_url('pix/assetc/', 'scorm').'" alt="'.get_string('assetlaunched','scorm').'" title="'.get_string('assetlaunched','scorm').'" />';
|
||||
$statusicon = '<img src="'.$OUTPUT->pix_url('pix/assetc/', 'scorm').'" alt="'.get_string('assetlaunched','scorm').'" title="'.get_string('assetlaunched','scorm').'" />';
|
||||
}
|
||||
|
||||
if (($usertrack->status == 'notattempted') || ($usertrack->status == 'incomplete') || ($usertrack->status == 'browsed')) {
|
||||
|
@ -248,7 +248,7 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
|||
$strsuspended = get_string('suspended','scorm');
|
||||
if (isset($usertrack->{'cmi.core.exit'}) && ($usertrack->{'cmi.core.exit'} == 'suspend')) {
|
||||
if($usertrack->status !='completed') {
|
||||
$statusicon = '<img src="'.$OUTPUT->old_icon_url('pix/suspend', 'scorm').'" alt="'.$strstatus.' - '.$strsuspended.'" title="'.$strstatus.' - '.$strsuspended.'" />';
|
||||
$statusicon = '<img src="'.$OUTPUT->pix_url('pix/suspend', 'scorm').'" alt="'.$strstatus.' - '.$strsuspended.'" title="'.$strstatus.' - '.$strsuspended.'" />';
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -257,9 +257,9 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
|||
}
|
||||
$incomplete = true;
|
||||
if ($sco->scormtype == 'sco') {
|
||||
$statusicon = '<img src="'.$OUTPUT->old_icon_url('pix/notattempted', 'scorm').'" alt="'.get_string('notattempted','scorm').'" title="'.get_string('notattempted','scorm').'" />';
|
||||
$statusicon = '<img src="'.$OUTPUT->pix_url('pix/notattempted', 'scorm').'" alt="'.get_string('notattempted','scorm').'" title="'.get_string('notattempted','scorm').'" />';
|
||||
} else {
|
||||
$statusicon = '<img src="'.$OUTPUT->old_icon_url('pix/asset', 'scorm').'" alt="'.get_string('asset','scorm').'" title="'.get_string('asset','scorm').'" />';
|
||||
$statusicon = '<img src="'.$OUTPUT->pix_url('pix/asset', 'scorm').'" alt="'.get_string('asset','scorm').'" title="'.get_string('asset','scorm').'" />';
|
||||
}
|
||||
}
|
||||
if ($sco->id == $scoid) {
|
||||
|
@ -318,8 +318,8 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
|||
$result->toc .= "\t</ul>\n";
|
||||
if ($scorm->hidetoc == 0) {
|
||||
$PAGE->requires->data_for_js('scormdata', array(
|
||||
'plusicon' => $OUTPUT->old_icon_url('pix/plus', 'scorm'),
|
||||
'minusicon' => $OUTPUT->old_icon_url('pix/minus', 'scorm')));
|
||||
'plusicon' => $OUTPUT->pix_url('pix/plus', 'scorm'),
|
||||
'minusicon' => $OUTPUT->pix_url('pix/minus', 'scorm')));
|
||||
$PAGE->requires->js('lib/cookies.js');
|
||||
$PAGE->requires->js('mod/scorm/datamodels/scorm_datamodels.js');
|
||||
}
|
||||
|
|
|
@ -104,9 +104,9 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
|||
$icon = 'plus';
|
||||
}
|
||||
$result->toc .= "\t\t".'<li><a href="javascript:expandCollide(\'img'.$sublist.'\',\'s'.$sublist.'\','.$nextsco->id.');">'.
|
||||
'<img id="img'.$sublist.'" src="'.$OUTPUT->old_icon_url('pix/'.$icon, 'scorm').'" alt="'.$strexpand.'" title="'.$strexpand.'"/></a>';
|
||||
'<img id="img'.$sublist.'" src="'.$OUTPUT->pix_url('pix/'.$icon, 'scorm').'" alt="'.$strexpand.'" title="'.$strexpand.'"/></a>';
|
||||
} else if ($isvisible) {
|
||||
$result->toc .= "\t\t".'<li><img src="'.$OUTPUT->old_icon_url('pix/spacer', 'scorm').'" alt="" />';
|
||||
$result->toc .= "\t\t".'<li><img src="'.$OUTPUT->pix_url('pix/spacer', 'scorm').'" alt="" />';
|
||||
}
|
||||
if (empty($sco->title)) {
|
||||
$sco->title = $sco->identifier;
|
||||
|
@ -123,9 +123,9 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
|||
$usertrack = $usertracks[$sco->identifier];
|
||||
$strstatus = get_string($usertrack->status,'scorm');
|
||||
if ($sco->scormtype == 'sco') {
|
||||
$statusicon = '<img src="'.$OUTPUT->old_icon_url('pix/'.$usertrack->status, 'scorm').'" alt="'.$strstatus.'" title="'.$strstatus.'" />';
|
||||
$statusicon = '<img src="'.$OUTPUT->pix_url('pix/'.$usertrack->status, 'scorm').'" alt="'.$strstatus.'" title="'.$strstatus.'" />';
|
||||
} else {
|
||||
$statusicon = '<img src="'.$OUTPUT->old_icon_url('pix/assetc', 'scorm').'" alt="'.get_string('assetlaunched','scorm').'" title="'.get_string('assetlaunched','scorm').'" />';
|
||||
$statusicon = '<img src="'.$OUTPUT->pix_url('pix/assetc', 'scorm').'" alt="'.get_string('assetlaunched','scorm').'" title="'.get_string('assetlaunched','scorm').'" />';
|
||||
}
|
||||
|
||||
if (($usertrack->status == 'notattempted') || ($usertrack->status == 'incomplete') || ($usertrack->status == 'browsed')) {
|
||||
|
@ -140,7 +140,7 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
|||
$strsuspended = get_string('suspended','scorm');
|
||||
if (isset($usertrack->{'cmi.core.exit'}) && ($usertrack->{'cmi.core.exit'} == 'suspend')) {
|
||||
if($usertrack->status !='completed') {
|
||||
$statusicon = '<img src="'.$OUTPUT->old_icon_url('pix/suspend', 'scorm').'" alt="'.$strstatus.' - '.$strsuspended.'" title="'.$strstatus.' - '.$strsuspended.'" />';
|
||||
$statusicon = '<img src="'.$OUTPUT->pix_url('pix/suspend', 'scorm').'" alt="'.$strstatus.' - '.$strsuspended.'" title="'.$strstatus.' - '.$strsuspended.'" />';
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -148,10 +148,10 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
|||
$scoid = $sco->id;
|
||||
}
|
||||
if ($sco->scormtype == 'sco') {
|
||||
$statusicon = '<img src="'.$OUTPUT->old_icon_url('pix/notattempted', 'scorm').'" alt="'.get_string('notattempted','scorm').'" title="'.get_string('notattempted','scorm').'" />';
|
||||
$statusicon = '<img src="'.$OUTPUT->pix_url('pix/notattempted', 'scorm').'" alt="'.get_string('notattempted','scorm').'" title="'.get_string('notattempted','scorm').'" />';
|
||||
$incomplete = true;
|
||||
} else {
|
||||
$statusicon = '<img src="'.$OUTPUT->old_icon_url('pix/asset', 'scorm').'" alt="'.get_string('asset','scorm').'" title="'.get_string('asset','scorm').'" />';
|
||||
$statusicon = '<img src="'.$OUTPUT->pix_url('pix/asset', 'scorm').'" alt="'.get_string('asset','scorm').'" title="'.get_string('asset','scorm').'" />';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -209,8 +209,8 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
|
|||
$result->toc .= "\t</ul>\n";
|
||||
if ($scorm->hidetoc == 0) {
|
||||
$PAGE->requires->data_for_js('scormdata', array(
|
||||
'plusicon' => $OUTPUT->old_icon_url('pix/plus', 'scorm'),
|
||||
'minusicon' => $OUTPUT->old_icon_url('pix/minus', 'scorm')));
|
||||
'plusicon' => $OUTPUT->pix_url('pix/plus', 'scorm'),
|
||||
'minusicon' => $OUTPUT->pix_url('pix/minus', 'scorm')));
|
||||
$PAGE->requires->js('lib/cookies.js');
|
||||
$PAGE->requires->js('mod/scorm/datamodels/scorm_datamodels.js');
|
||||
}
|
||||
|
|
|
@ -383,7 +383,7 @@ function scorm_user_complete($course, $user, $mod, $scorm) {
|
|||
if (($nextsco !== false) && ($sco->parent != $nextsco->parent) && (($level==0) || (($level>0) && ($nextsco->parent == $sco->identifier)))) {
|
||||
$sublist++;
|
||||
} else {
|
||||
$report .= '<img src="'.$OUTPUT->old_icon_url('pix/spacer', 'scorm').'" alt="" />';
|
||||
$report .= '<img src="'.$OUTPUT->pix_url('pix/spacer', 'scorm').'" alt="" />';
|
||||
}
|
||||
|
||||
if ($sco->launch) {
|
||||
|
@ -395,7 +395,7 @@ function scorm_user_complete($course, $user, $mod, $scorm) {
|
|||
$usertrack->status = 'notattempted';
|
||||
}
|
||||
$strstatus = get_string($usertrack->status,'scorm');
|
||||
$report .= "<img src='".$OUTPUT->old_icon_url('pix/'.$usertrack->status, 'scorm')."' alt='$strstatus' title='$strstatus' />";
|
||||
$report .= "<img src='".$OUTPUT->pix_url('pix/'.$usertrack->status, 'scorm')."' alt='$strstatus' title='$strstatus' />";
|
||||
if ($usertrack->timemodified != 0) {
|
||||
if ($usertrack->timemodified > $lastmodify) {
|
||||
$lastmodify = $usertrack->timemodified;
|
||||
|
@ -406,9 +406,9 @@ function scorm_user_complete($course, $user, $mod, $scorm) {
|
|||
}
|
||||
} else {
|
||||
if ($sco->scormtype == 'sco') {
|
||||
$report .= '<img src="'.$OUTPUT->old_icon_url('pix/notattempted', 'scorm').'" alt="'.get_string('notattempted','scorm').'" title="'.get_string('notattempted','scorm').'" />';
|
||||
$report .= '<img src="'.$OUTPUT->pix_url('pix/notattempted', 'scorm').'" alt="'.get_string('notattempted','scorm').'" title="'.get_string('notattempted','scorm').'" />';
|
||||
} else {
|
||||
$report .= '<img src="'.$OUTPUT->old_icon_url('pix/asset', 'scorm').'" alt="'.get_string('asset','scorm').'" title="'.get_string('asset','scorm').'" />';
|
||||
$report .= '<img src="'.$OUTPUT->pix_url('pix/asset', 'scorm').'" alt="'.get_string('asset','scorm').'" title="'.get_string('asset','scorm').'" />';
|
||||
}
|
||||
}
|
||||
$report .= " $sco->title $score$totaltime</li>\n";
|
||||
|
|
|
@ -171,7 +171,7 @@
|
|||
location = "<?php echo $result ?>";
|
||||
}
|
||||
else {
|
||||
document.body.innerHTML = "<p><?php echo get_string('activityloading', 'scorm');?> <span id='countdown'><?php echo $delayseconds ?></span> <?php echo get_string('numseconds');?>. <img src='<?php echo $OUTPUT->old_icon_url('pix/wait', 'scorm') ?>'><p>";
|
||||
document.body.innerHTML = "<p><?php echo get_string('activityloading', 'scorm');?> <span id='countdown'><?php echo $delayseconds ?></span> <?php echo get_string('numseconds');?>. <img src='<?php echo $OUTPUT->pix_url('pix/wait', 'scorm') ?>'><p>";
|
||||
var e = document.getElementById("countdown");
|
||||
var cSeconds = parseInt(e.innerHTML);
|
||||
var timer = setInterval(function() {
|
||||
|
|
|
@ -686,7 +686,7 @@ function scorm_course_format_display($user,$course) {
|
|||
$path = $CFG->wwwroot.'/course';
|
||||
$headertext .= '<span class="commands">'.
|
||||
'<a title="'.$strupdate.'" href="'.$path.'/mod.php?update='.$cm->id.'&sesskey='.sesskey().'">'.
|
||||
'<img src="'.$OUTPUT->old_icon_url('t/edit') . '" class="iconsmall" alt="'.$strupdate.'" /></a></span>';
|
||||
'<img src="'.$OUTPUT->pix_url('t/edit') . '" class="iconsmall" alt="'.$strupdate.'" /></a></span>';
|
||||
}
|
||||
$headertext .= '</td>';
|
||||
// Display report link
|
||||
|
|
|
@ -267,7 +267,7 @@
|
|||
$detailslink = ' ';
|
||||
}
|
||||
$strstatus = get_string($trackdata->status,'scorm');
|
||||
$row[] = '<img src="'.$OUTPUT->old_icon_url('pix/' . $trackdata->status, 'scorm').'" alt="'.$strstatus.'" title="'.
|
||||
$row[] = '<img src="'.$OUTPUT->pix_url('pix/' . $trackdata->status, 'scorm').'" alt="'.$strstatus.'" title="'.
|
||||
$strstatus.'" /> '.format_string($sco->title);
|
||||
$row[] = get_string($trackdata->status,'scorm');
|
||||
$row[] = $trackdata->total_time;
|
||||
|
@ -310,7 +310,7 @@
|
|||
$trackdata->total_time = '';
|
||||
}
|
||||
$strstatus = get_string($trackdata->status,'scorm');
|
||||
echo '<img src="'.$$OUTPUT->old_icon_url('pix/'.$trackdata->status, 'scorm').'" alt="'.$strstatus.'" title="'.
|
||||
echo '<img src="'.$$OUTPUT->pix_url('pix/'.$trackdata->status, 'scorm').'" alt="'.$strstatus.'" title="'.
|
||||
$strstatus.'" /> '.$trackdata->total_time.'<br />'.$scoreview.'<br />';
|
||||
echo '</div>'."\n";
|
||||
echo '<hr /><h2>'.get_string('details','scorm').'</h2>';
|
||||
|
|
|
@ -89,7 +89,7 @@ foreach ($urls as $url) {
|
|||
$icon = '';
|
||||
if (!empty($cm->icon)) {
|
||||
// each url has an icon in 2.0
|
||||
$icon = '<img src="'.$OUTPUT->old_icon_url($cm->icon).'" class="activityicon" alt="" /> ';
|
||||
$icon = '<img src="'.$OUTPUT->pix_url($cm->icon).'" class="activityicon" alt="" /> ';
|
||||
}
|
||||
|
||||
$class = $url->visible ? '' : 'class="dimmed"'; // hidden modules are dimmed
|
||||
|
|
|
@ -329,7 +329,7 @@ function ewiki_entry_downloads($row, $show_section=0, $fullinfo=false) {
|
|||
|
||||
/// Moodle Icon Handling
|
||||
global $CFG;
|
||||
$p_icon = $OUTPUT->old_icon_url(file_extension_icon($id));
|
||||
$p_icon = $OUTPUT->pix_url(file_extension_icon($id));
|
||||
$p_icon_t = '';
|
||||
|
||||
$info->id = $id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue