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
|
@ -1343,7 +1343,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
|
|||
if ($ismoving) {
|
||||
echo '<a title="'.$strmovefull.'"'.
|
||||
' href="'.$CFG->wwwroot.'/course/mod.php?moveto='.$mod->id.'&sesskey='.sesskey().'">'.
|
||||
'<img class="movetarget" src="'.$OUTPUT->old_icon_url('movehere') . '" '.
|
||||
'<img class="movetarget" src="'.$OUTPUT->pix_url('movehere') . '" '.
|
||||
' alt="'.$strmovehere.'" /></a><br />
|
||||
';
|
||||
}
|
||||
|
@ -1383,12 +1383,12 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
|
|||
if (!empty($customicon)) {
|
||||
if (substr($customicon, 0, 4) === 'mod/') {
|
||||
list($modname, $iconname) = explode('/', substr($customicon, 4), 2);
|
||||
$icon = $OUTPUT->old_icon_url(str_replace(array('.gif', '.png'), '', $customicon), $modname);
|
||||
$icon = $OUTPUT->pix_url(str_replace(array('.gif', '.png'), '', $customicon), $modname);
|
||||
} else {
|
||||
$icon = $OUTPUT->old_icon_url(str_replace(array('.gif', '.png'), '', $customicon));
|
||||
$icon = $OUTPUT->pix_url(str_replace(array('.gif', '.png'), '', $customicon));
|
||||
}
|
||||
} else {
|
||||
$icon = $OUTPUT->old_icon_url('icon', $mod->modname);
|
||||
$icon = $OUTPUT->pix_url('icon', $mod->modname);
|
||||
}
|
||||
|
||||
//Accessibility: for files get description via icon, this is very ugly hack!
|
||||
|
@ -1506,7 +1506,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
|
|||
}
|
||||
}
|
||||
if ($completionicon) {
|
||||
$imgsrc = $OUTPUT->old_icon_url('i/completion-'.$completionicon);
|
||||
$imgsrc = $OUTPUT->pix_url('i/completion-'.$completionicon);
|
||||
$imgalt = get_string('completion-alt-'.$completionicon,'completion');
|
||||
if ($completion==COMPLETION_TRACKING_MANUAL && !$isediting) {
|
||||
$imgtitle = get_string('completion-title-'.$completionicon,'completion');
|
||||
|
@ -1570,7 +1570,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
|
|||
if ($ismoving) {
|
||||
echo '<li><a title="'.$strmovefull.'"'.
|
||||
' href="'.$CFG->wwwroot.'/course/mod.php?movetosection='.$section->id.'&sesskey='.sesskey().'">'.
|
||||
'<img class="movetarget" src="'.$OUTPUT->old_icon_url('movehere') . '" '.
|
||||
'<img class="movetarget" src="'.$OUTPUT->pix_url('movehere') . '" '.
|
||||
' alt="'.$strmovehere.'" /></a></li>
|
||||
';
|
||||
}
|
||||
|
@ -1952,7 +1952,7 @@ function print_category_info($category, $depth, $showcourses = false) {
|
|||
}
|
||||
|
||||
if ($showcourses and $coursecount) {
|
||||
$catimage = '<img src="'.$OUTPUT->old_icon_url('i/course') . '" alt="" />';
|
||||
$catimage = '<img src="'.$OUTPUT->pix_url('i/course') . '" alt="" />';
|
||||
} else {
|
||||
$catimage = " ";
|
||||
}
|
||||
|
@ -1996,23 +1996,23 @@ function print_category_info($category, $depth, $showcourses = false) {
|
|||
echo '</td><td align="right" valign="top" class="course info">';
|
||||
if ($course->guest ) {
|
||||
echo '<a title="'.$strallowguests.'" href="'.$CFG->wwwroot.'/course/view.php?id='.$course->id.'">';
|
||||
echo '<img alt="'.$strallowguests.'" src="'.$OUTPUT->old_icon_url('i/guest') . '" /></a>';
|
||||
echo '<img alt="'.$strallowguests.'" src="'.$OUTPUT->pix_url('i/guest') . '" /></a>';
|
||||
} else {
|
||||
echo '<img alt="" style="width:18px;height:16px;" src="'.$OUTPUT->old_icon_url('spacer') . '" />';
|
||||
echo '<img alt="" style="width:18px;height:16px;" src="'.$OUTPUT->pix_url('spacer') . '" />';
|
||||
}
|
||||
if ($course->password) {
|
||||
echo '<a title="'.$strrequireskey.'" href="'.$CFG->wwwroot.'/course/view.php?id='.$course->id.'">';
|
||||
echo '<img alt="'.$strrequireskey.'" src="'.$OUTPUT->old_icon_url('i/key') . '" /></a>';
|
||||
echo '<img alt="'.$strrequireskey.'" src="'.$OUTPUT->pix_url('i/key') . '" /></a>';
|
||||
} else {
|
||||
echo '<img alt="" style="width:18px;height:16px;" src="'.$OUTPUT->old_icon_url('spacer') . '" />';
|
||||
echo '<img alt="" style="width:18px;height:16px;" src="'.$OUTPUT->pix_url('spacer') . '" />';
|
||||
}
|
||||
if ($course->summary) {
|
||||
$link = html_link::make('/course/info.php?id='.$course->id, '<img alt="'.$strsummary.'" src="'.$OUTPUT->old_icon_url('i/info') . '" />');
|
||||
$link = html_link::make('/course/info.php?id='.$course->id, '<img alt="'.$strsummary.'" src="'.$OUTPUT->pix_url('i/info') . '" />');
|
||||
$link->add_action(new popup_action('click', $link->url, 'courseinfo', array('height' => 400, 'width' => 500)));
|
||||
$link->title = $strsummary;
|
||||
echo $OUTPUT->link($link);
|
||||
} else {
|
||||
echo '<img alt="" style="width:18px;height:16px;" src="'.$OUTPUT->old_icon_url('spacer') . '" />';
|
||||
echo '<img alt="" style="width:18px;height:16px;" src="'.$OUTPUT->pix_url('spacer') . '" />';
|
||||
}
|
||||
echo '</td></tr>';
|
||||
}
|
||||
|
@ -2215,7 +2215,7 @@ function print_course($course, $highlightterms = '') {
|
|||
if ($ra->hidden == 0 || $canseehidden) {
|
||||
$fullname = fullname($ra->user, $canviewfullnames);
|
||||
if ($ra->hidden == 1) {
|
||||
$status = " <img src=\"" . $OUTPUT->old_icon_url('t/show') . "\" title=\"".get_string('userhashiddenassignments', 'role')."\" alt=\"".get_string('hiddenassign')."\" class=\"hide-show-image\"/>";
|
||||
$status = " <img src=\"" . $OUTPUT->pix_url('t/show') . "\" title=\"".get_string('userhashiddenassignments', 'role')."\" alt=\"".get_string('hiddenassign')."\" class=\"hide-show-image\"/>";
|
||||
} else {
|
||||
$status = '';
|
||||
}
|
||||
|
@ -2423,7 +2423,7 @@ function print_remote_host($host, $width="100%") {
|
|||
echo '<div class="coursebox clearfix">';
|
||||
echo '<div class="info">';
|
||||
echo '<div class="name">';
|
||||
echo '<img src="'.$OUTPUT->old_icon_url('i/mnethost') . '" class="icon" alt="'.get_string('course').'" />';
|
||||
echo '<img src="'.$OUTPUT->pix_url('i/mnethost') . '" class="icon" alt="'.get_string('course').'" />';
|
||||
echo '<a title="'.s($host['name']).'" href="'.s($host['url']).'">'
|
||||
. s($host['name']).'</a> - ';
|
||||
echo $host['count'] . ' ' . get_string('courses');
|
||||
|
@ -2859,12 +2859,12 @@ function make_editing_buttons($mod, $absolute=false, $moveselect=true, $indent=-
|
|||
if ($mod->visible) {
|
||||
$hideshow = '<a class="editing_hide" title="'.$str->hide.'" href="'.$path.'/mod.php?hide='.$mod->id.
|
||||
'&sesskey='.$sesskey.$section.'"><img'.
|
||||
' src="'.$OUTPUT->old_icon_url('t/hide') . '" class="iconsmall" '.
|
||||
' src="'.$OUTPUT->pix_url('t/hide') . '" class="iconsmall" '.
|
||||
' alt="'.$str->hide.'" /></a>'."\n";
|
||||
} else {
|
||||
$hideshow = '<a class="editing_show" title="'.$str->show.'" href="'.$path.'/mod.php?show='.$mod->id.
|
||||
'&sesskey='.$sesskey.$section.'"><img'.
|
||||
' src="'.$OUTPUT->old_icon_url('t/show') . '" class="iconsmall" '.
|
||||
' src="'.$OUTPUT->pix_url('t/show') . '" class="iconsmall" '.
|
||||
' alt="'.$str->show.'" /></a>'."\n";
|
||||
}
|
||||
} else {
|
||||
|
@ -2875,17 +2875,17 @@ function make_editing_buttons($mod, $absolute=false, $moveselect=true, $indent=-
|
|||
if ($mod->groupmode == SEPARATEGROUPS) {
|
||||
$grouptitle = $str->groupsseparate;
|
||||
$groupclass = 'editing_groupsseparate';
|
||||
$groupimage = $OUTPUT->old_icon_url('t/groups') . '';
|
||||
$groupimage = $OUTPUT->pix_url('t/groups') . '';
|
||||
$grouplink = $path.'/mod.php?id='.$mod->id.'&groupmode=0&sesskey='.$sesskey;
|
||||
} else if ($mod->groupmode == VISIBLEGROUPS) {
|
||||
$grouptitle = $str->groupsvisible;
|
||||
$groupclass = 'editing_groupsvisible';
|
||||
$groupimage = $OUTPUT->old_icon_url('t/groupv') . '';
|
||||
$groupimage = $OUTPUT->pix_url('t/groupv') . '';
|
||||
$grouplink = $path.'/mod.php?id='.$mod->id.'&groupmode=1&sesskey='.$sesskey;
|
||||
} else {
|
||||
$grouptitle = $str->groupsnone;
|
||||
$groupclass = 'editing_groupsnone';
|
||||
$groupimage = $OUTPUT->old_icon_url('t/groupn') . '';
|
||||
$groupimage = $OUTPUT->pix_url('t/groupn') . '';
|
||||
$grouplink = $path.'/mod.php?id='.$mod->id.'&groupmode=2&sesskey='.$sesskey;
|
||||
}
|
||||
if ($mod->groupmodelink) {
|
||||
|
@ -2905,16 +2905,16 @@ function make_editing_buttons($mod, $absolute=false, $moveselect=true, $indent=-
|
|||
if ($moveselect) {
|
||||
$move = '<a class="editing_move" title="'.$str->move.'" href="'.$path.'/mod.php?copy='.$mod->id.
|
||||
'&sesskey='.$sesskey.$section.'"><img'.
|
||||
' src="'.$OUTPUT->old_icon_url('t/move') . '" class="iconsmall" '.
|
||||
' src="'.$OUTPUT->pix_url('t/move') . '" class="iconsmall" '.
|
||||
' alt="'.$str->move.'" /></a>'."\n";
|
||||
} else {
|
||||
$move = '<a class="editing_moveup" title="'.$str->moveup.'" href="'.$path.'/mod.php?id='.$mod->id.
|
||||
'&move=-1&sesskey='.$sesskey.$section.'"><img'.
|
||||
' src="'.$OUTPUT->old_icon_url('t/up') . '" class="iconsmall" '.
|
||||
' src="'.$OUTPUT->pix_url('t/up') . '" class="iconsmall" '.
|
||||
' alt="'.$str->moveup.'" /></a>'."\n".
|
||||
'<a class="editing_movedown" title="'.$str->movedown.'" href="'.$path.'/mod.php?id='.$mod->id.
|
||||
'&move=1&sesskey='.$sesskey.$section.'"><img'.
|
||||
' src="'.$OUTPUT->old_icon_url('t/down') . '" class="iconsmall" '.
|
||||
' src="'.$OUTPUT->pix_url('t/down') . '" class="iconsmall" '.
|
||||
' alt="'.$str->movedown.'" /></a>'."\n";
|
||||
}
|
||||
} else {
|
||||
|
@ -2935,20 +2935,20 @@ function make_editing_buttons($mod, $absolute=false, $moveselect=true, $indent=-
|
|||
if ($indent > 0) {
|
||||
$leftright .= '<a class="editing_moveleft" title="'.$str->moveleft.'" href="'.$path.'/mod.php?id='.$mod->id.
|
||||
'&indent=-1&sesskey='.$sesskey.$section.'"><img'.
|
||||
' src="'.$OUTPUT->old_icon_url($leftarrow).'" class="iconsmall" '.
|
||||
' src="'.$OUTPUT->pix_url($leftarrow).'" class="iconsmall" '.
|
||||
' alt="'.$str->moveleft.'" /></a>'."\n";
|
||||
}
|
||||
if ($indent >= 0) {
|
||||
$leftright .= '<a class="editing_moveright" title="'.$str->moveright.'" href="'.$path.'/mod.php?id='.$mod->id.
|
||||
'&indent=1&sesskey='.$sesskey.$section.'"><img'.
|
||||
' src="'.$OUTPUT->old_icon_url($rightarrow).'" class="iconsmall" '.
|
||||
' src="'.$OUTPUT->pix_url($rightarrow).'" class="iconsmall" '.
|
||||
' alt="'.$str->moveright.'" /></a>'."\n";
|
||||
}
|
||||
}
|
||||
if (has_capability('moodle/course:managegroups', $modcontext)){
|
||||
$context = get_context_instance(CONTEXT_MODULE, $mod->id);
|
||||
$assign = '<a class="editing_assign" title="'.$str->assign.'" href="'.$CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?contextid='.
|
||||
$context->id.'"><img src="'.$OUTPUT->old_icon_url('i/roles') . '" alt="'.$str->assign.'" class="iconsmall"/></a>';
|
||||
$context->id.'"><img src="'.$OUTPUT->pix_url('i/roles') . '" alt="'.$str->assign.'" class="iconsmall"/></a>';
|
||||
} else {
|
||||
$assign = '';
|
||||
}
|
||||
|
@ -2956,11 +2956,11 @@ function make_editing_buttons($mod, $absolute=false, $moveselect=true, $indent=-
|
|||
return '<span class="commands">'."\n".$leftright.$move.
|
||||
'<a class="editing_update" title="'.$str->update.'" href="'.$path.'/mod.php?update='.$mod->id.
|
||||
'&sesskey='.$sesskey.$section.'"><img'.
|
||||
' src="'.$OUTPUT->old_icon_url('t/edit') . '" class="iconsmall" '.
|
||||
' src="'.$OUTPUT->pix_url('t/edit') . '" class="iconsmall" '.
|
||||
' alt="'.$str->update.'" /></a>'."\n".
|
||||
'<a class="editing_delete" title="'.$str->delete.'" href="'.$path.'/mod.php?delete='.$mod->id.
|
||||
'&sesskey='.$sesskey.$section.'"><img'.
|
||||
' src="'.$OUTPUT->old_icon_url('t/delete') . '" class="iconsmall" '.
|
||||
' src="'.$OUTPUT->pix_url('t/delete') . '" class="iconsmall" '.
|
||||
' alt="'.$str->delete.'" /></a>'."\n".$hideshow.$groupmode."\n".$assign.'</span>';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue