mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +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
|
@ -51,10 +51,10 @@ class block_activity_modules extends block_list {
|
|||
foreach ($modfullnames as $modname => $modfullname) {
|
||||
if ($modname === 'resources') {
|
||||
$this->content->items[] = '<a href="'.$CFG->wwwroot.'/course/resources.php?id='.$course->id.'">'.$modfullname.'</a>';
|
||||
$this->content->icons[] = '<img src="'.$OUTPUT->old_icon_url('f/html') . '" class="icon" alt="" />';
|
||||
$this->content->icons[] = '<img src="'.$OUTPUT->pix_url('f/html') . '" class="icon" alt="" />';
|
||||
} else {
|
||||
$this->content->items[] = '<a href="'.$CFG->wwwroot.'/mod/'.$modname.'/index.php?id='.$course->id.'">'.$modfullname.'</a>';
|
||||
$this->content->icons[] = '<img src="'.$OUTPUT->old_icon_url('icon', $modname) . '" class="icon" alt="" />';
|
||||
$this->content->icons[] = '<img src="'.$OUTPUT->pix_url('icon', $modname) . '" class="icon" alt="" />';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ class block_admin extends block_list {
|
|||
|
||||
/// Course editing on/off
|
||||
if ($course->id !== SITEID and has_capability('moodle/course:update', $this->page->context)) {
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->old_icon_url('i/edit') . '" class="icon" alt="" />';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/edit') . '" class="icon" alt="" />';
|
||||
if ($this->page->user_is_editing()) {
|
||||
$this->content->items[]='<a href="view.php?id='.$course->id.'&edit=off&sesskey='.sesskey().'">'.get_string('turneditingoff').'</a>';
|
||||
} else {
|
||||
|
@ -40,17 +40,17 @@ class block_admin extends block_list {
|
|||
}
|
||||
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/course/edit.php?id='.$course->id.'">'.get_string('settings').'</a>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->old_icon_url('i/settings') . '" class="icon" alt="" />';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/settings') . '" class="icon" alt="" />';
|
||||
}
|
||||
|
||||
/// Assign roles to the course
|
||||
if ($course->id != SITEID) {
|
||||
if (has_capability('moodle/role:assign', $this->page->context)) {
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?contextid='.$this->page->context->id.'">'.get_string('assignroles', 'role').'</a>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->old_icon_url('i/roles') . '" class="icon" alt="" />';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/roles') . '" class="icon" alt="" />';
|
||||
} else if (get_overridable_roles($this->page->context, ROLENAME_ORIGINAL)) {
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/roles/override.php?contextid='.$this->page->context->id.'">'.get_string('overridepermissions', 'role').'</a>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->old_icon_url('i/roles') . '" class="icon" alt="" />';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/roles') . '" class="icon" alt="" />';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -75,7 +75,7 @@ class block_admin extends block_list {
|
|||
|
||||
if ($reportavailable) {
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/grade/report/index.php?id='.$course->id.'">'.get_string('grades').'</a>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->old_icon_url('i/grades') . '" class="icon" alt="" />';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/grades') . '" class="icon" alt="" />';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -83,7 +83,7 @@ class block_admin extends block_list {
|
|||
if (!empty($CFG->enableoutcomes)) {
|
||||
if ($course->id!==SITEID and has_capability('moodle/course:update', $this->page->context)) {
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/grade/edit/outcome/course.php?id='.$course->id.'">'.get_string('outcomes', 'grades').'</a>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->old_icon_url('i/outcomes') . '" class="icon" alt="" />';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/outcomes') . '" class="icon" alt="" />';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -92,11 +92,11 @@ class block_admin extends block_list {
|
|||
if (has_capability('moodle/course:managemetacourse', $this->page->context)) {
|
||||
$strchildcourses = get_string('childcourses');
|
||||
$this->content->items[]='<a href="importstudents.php?id='.$course->id.'">'.$strchildcourses.'</a>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->old_icon_url('i/course') . '" class="icon" alt="" />';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/course') . '" class="icon" alt="" />';
|
||||
} else if (has_capability('moodle/role:assign', $this->page->context)) {
|
||||
$strchildcourses = get_string('childcourses');
|
||||
$this->content->items[]='<span class="dimmed_text">'.$strchildcourses.'</span>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->old_icon_url('i/course') . '" class="icon" alt="" />';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/course') . '" class="icon" alt="" />';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -105,37 +105,37 @@ class block_admin extends block_list {
|
|||
if (($course->id!==SITEID) && ($course->groupmode || !$course->groupmodeforce) && has_capability('moodle/course:managegroups', $this->page->context)) {
|
||||
$strgroups = get_string('groups');
|
||||
$this->content->items[]='<a title="'.$strgroups.'" href="'.$CFG->wwwroot.'/group/index.php?id='.$course->id.'">'.$strgroups.'</a>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->old_icon_url('i/group') . '" class="icon" alt="" />';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/group') . '" class="icon" alt="" />';
|
||||
}
|
||||
|
||||
/// Backup this course
|
||||
if ($course->id!==SITEID and has_capability('moodle/site:backup', $this->page->context)) {
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/backup/backup.php?id='.$course->id.'">'.get_string('backup').'</a>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->old_icon_url('i/backup') . '" class="icon" alt="" />';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/backup') . '" class="icon" alt="" />';
|
||||
}
|
||||
|
||||
/// Restore to this course
|
||||
if ($course->id !== SITEID and has_capability('moodle/site:restore', $this->page->context)) {
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/files/index.php?id='.$course->id.'&wdir=/backupdata">'.get_string('restore').'</a>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->old_icon_url('i/restore') . '" class="icon" alt="" />';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/restore') . '" class="icon" alt="" />';
|
||||
}
|
||||
|
||||
/// Import data from other courses
|
||||
if ($course->id !== SITEID and has_capability('moodle/site:import', $this->page->context)) {
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/course/import.php?id='.$course->id.'">'.get_string('import').'</a>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->old_icon_url('i/restore') . '" class="icon" alt="" />';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/restore') . '" class="icon" alt="" />';
|
||||
}
|
||||
|
||||
/// Reset this course
|
||||
if ($course->id!==SITEID and has_capability('moodle/course:reset', $this->page->context)) {
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/course/reset.php?id='.$course->id.'">'.get_string('reset').'</a>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->old_icon_url('i/return') . '" class="icon" alt="" />';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/return') . '" class="icon" alt="" />';
|
||||
}
|
||||
|
||||
/// View course reports
|
||||
if ($course->id !== SITEID and has_capability('moodle/site:viewreports', $this->page->context)) { // basic capability for listing of reports
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/course/report.php?id='.$course->id.'">'.get_string('reports').'</a>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->old_icon_url('i/stats') . '" class="icon" alt="" />';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/stats') . '" class="icon" alt="" />';
|
||||
}
|
||||
|
||||
/// Manage questions
|
||||
|
@ -161,7 +161,7 @@ class block_admin extends block_list {
|
|||
if ($questionlink) {
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/question/'.$questionlink.
|
||||
'?courseid='.$course->id.'">'.get_string('questions', 'quiz').'</a>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->old_icon_url('i/questions') . '" class="icon" alt="" />';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/questions') . '" class="icon" alt="" />';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -170,13 +170,13 @@ class block_admin extends block_list {
|
|||
$editabletypes = repository::get_editable_types($this->page->context);
|
||||
if ($course->id !== SITEID && has_capability('moodle/course:update', $this->page->context) && !empty($editabletypes)) {
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/repository/manage_instances.php?contextid='.$this->page->context->id.'">'.get_string('repositories').'</a>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->old_icon_url('i/repository') . '" alt=""/>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/repository') . '" alt=""/>';
|
||||
}
|
||||
|
||||
/// Manage files
|
||||
if ($course->id !== SITEID and has_capability('moodle/course:managefiles', $this->page->context)) {
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/files/index.php?id='.$course->id.'">'.get_string('files').'</a>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->old_icon_url('i/files') . '" class="icon" alt=""/>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/files') . '" class="icon" alt=""/>';
|
||||
}
|
||||
|
||||
/// Authorize hooks
|
||||
|
@ -189,24 +189,24 @@ class block_admin extends block_list {
|
|||
}
|
||||
}
|
||||
$this->content->items[] = $paymenturl;
|
||||
$this->content->icons[] = '<img src="'.$OUTPUT->old_icon_url('i/payment') . '" class="icon" alt="" />';
|
||||
$this->content->icons[] = '<img src="'.$OUTPUT->pix_url('i/payment') . '" class="icon" alt="" />';
|
||||
}
|
||||
|
||||
/// Unenrol link
|
||||
if (empty($course->metacourse) && ($course->id!==SITEID)) {
|
||||
if (has_capability('moodle/legacy:guest', $this->page->context, NULL, false)) { // Are a guest now
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/course/enrol.php?id='.$course->id.'">'.get_string('enrolme', '', format_string($course->shortname)).'</a>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->old_icon_url('i/user') . '" class="icon" alt="" />';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/user') . '" class="icon" alt="" />';
|
||||
} else if (has_capability('moodle/role:unassignself', $this->page->context, NULL, false) and get_user_roles($this->page->context, $USER->id, false)) { // Have some role
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/course/unenrol.php?id='.$course->id.'">'.get_string('unenrolme', '', format_string($course->shortname)).'</a>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->old_icon_url('i/user') . '" class="icon" alt="" />';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/user') . '" class="icon" alt="" />';
|
||||
}
|
||||
}
|
||||
|
||||
/// Link to the user own profile (except guests)
|
||||
if (!isguestuser() and isloggedin()) {
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/user/view.php?id='.$USER->id.'&course='.$course->id.'">'.get_string('profile').'</a>';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->old_icon_url('i/user') . '" alt="" />';
|
||||
$this->content->icons[]='<img src="'.$OUTPUT->pix_url('i/user') . '" alt="" />';
|
||||
}
|
||||
|
||||
return $this->content;
|
||||
|
|
|
@ -35,7 +35,7 @@ class block_admin_tree extends block_base {
|
|||
$strfolderopened = s(get_string('folderopened'));
|
||||
|
||||
$this->tempcontent .= '<div class="depth'.$this->currentdepth.'"><a name="d'.$this->divcounter.'">';
|
||||
$this->tempcontent .= '<img id="vh_div'.$this->divcounter.'indicator" src="'.$OUTPUT->old_icon_url('i/open') . '" alt="'.$strfolderopened.'" /> ';
|
||||
$this->tempcontent .= '<img id="vh_div'.$this->divcounter.'indicator" src="'.$OUTPUT->pix_url('i/open') . '" alt="'.$strfolderopened.'" /> ';
|
||||
$this->tempcontent .= $visiblename.'</a></div><div id="vh_div'.$this->divcounter.'">'."\n";
|
||||
$this->currentdepth++;
|
||||
$this->divcounter++;
|
||||
|
@ -61,7 +61,7 @@ class block_admin_tree extends block_base {
|
|||
if ($content->is_hidden()) {
|
||||
$class .= ' hidden';
|
||||
}
|
||||
$this->create_item($content->visiblename, $CFG->wwwroot.'/'.$CFG->admin.'/settings.php?section='.$content->name,$OUTPUT->old_icon_url('i/item'), $class);
|
||||
$this->create_item($content->visiblename, $CFG->wwwroot.'/'.$CFG->admin.'/settings.php?section='.$content->name,$OUTPUT->pix_url('i/item'), $class);
|
||||
}
|
||||
} else if ($content instanceof admin_externalpage) {
|
||||
// show hidden pages in tree if hidden page active
|
||||
|
@ -75,7 +75,7 @@ class block_admin_tree extends block_base {
|
|||
if ($content->is_hidden()) {
|
||||
$class .= ' hidden';
|
||||
}
|
||||
$this->create_item($content->visiblename, $content->url, $OUTPUT->old_icon_url('i/item'), $class);
|
||||
$this->create_item($content->visiblename, $content->url, $OUTPUT->pix_url('i/item'), $class);
|
||||
}
|
||||
} else if ($content instanceof admin_category) {
|
||||
if ($content->check_access() and !$content->is_hidden()) {
|
||||
|
@ -141,7 +141,7 @@ class block_admin_tree extends block_base {
|
|||
$this->page->requires->js('blocks/admin_tree/admintree.js');
|
||||
$this->page->requires->js_function_call('admin_tree.init',
|
||||
array($this->divcounter - 1, $this->expandnodes,
|
||||
$OUTPUT->old_icon_url('i/open'), $OUTPUT->old_icon_url('i/closed'),
|
||||
$OUTPUT->pix_url('i/open'), $OUTPUT->pix_url('i/closed'),
|
||||
get_string('folderopened'), get_string('folderclosed')));
|
||||
|
||||
$this->content = new object();
|
||||
|
|
|
@ -24,7 +24,7 @@ class block_course_list extends block_list {
|
|||
$this->content->icons = array();
|
||||
$this->content->footer = '';
|
||||
|
||||
$icon = "<img src=\"" . $OUTPUT->old_icon_url('i/course') . "\"".
|
||||
$icon = "<img src=\"" . $OUTPUT->pix_url('i/course') . "\"".
|
||||
" class=\"icon\" alt=\"".get_string("coursecategory")."\" />";
|
||||
|
||||
$adminseesall = true;
|
||||
|
@ -116,7 +116,7 @@ class block_course_list extends block_list {
|
|||
return;
|
||||
}
|
||||
|
||||
$icon = '<img src="'.$OUTPUT->old_icon_url('i/mnethost') . '" class="icon" alt="'.get_string('course').'" />';
|
||||
$icon = '<img src="'.$OUTPUT->pix_url('i/mnethost') . '" class="icon" alt="'.get_string('course').'" />';
|
||||
|
||||
// only for logged in users!
|
||||
if (!isloggedin() || isguestuser()) {
|
||||
|
|
|
@ -35,7 +35,7 @@ class block_course_summary extends block_base {
|
|||
} else {
|
||||
$editpage = $CFG->wwwroot.'/course/edit.php?id='.$this->page->course->id;
|
||||
}
|
||||
$this->content->text .= "<div class=\"editbutton\"><a href=\"$editpage\"><img src=\"" . $OUTPUT->old_icon_url('t/edit') . "\" alt=\"".get_string('edit')."\" /></a></div>";
|
||||
$this->content->text .= "<div class=\"editbutton\"><a href=\"$editpage\"><img src=\"" . $OUTPUT->pix_url('t/edit') . "\" alt=\"".get_string('edit')."\" /></a></div>";
|
||||
}
|
||||
$this->content->footer = '';
|
||||
|
||||
|
|
|
@ -163,7 +163,7 @@ class block_global_navigation_tree extends block_tree {
|
|||
$reloadicon->link->url = $this->page->url;
|
||||
$reloadicon->link->url->param('regenerate','navigation');
|
||||
$reloadicon->link->add_class('customcommand');
|
||||
$reloadicon->image->src = $OUTPUT->old_icon_url('t/reload');
|
||||
$reloadicon->image->src = $OUTPUT->pix_url('t/reload');
|
||||
$reloadicon->alt = get_string('reload');
|
||||
$reloadicon->title = get_string('reload');
|
||||
$this->content->footer .= $OUTPUT->action_icon($reloadicon);
|
||||
|
@ -175,12 +175,12 @@ class block_global_navigation_tree extends block_tree {
|
|||
$moveicon->link->add_classes('moveto customcommand requiresjs');
|
||||
$moveicon->link->url = $this->page->url;
|
||||
if ($this->docked) {
|
||||
$moveicon->image->src = $OUTPUT->old_icon_url('t/movetoblock');
|
||||
$moveicon->image->src = $OUTPUT->pix_url('t/movetoblock');
|
||||
$moveicon->image->alt = $toggleblockdisplay;
|
||||
$moveicon->image->title = $toggleblockdisplay;
|
||||
$moveicon->link->url->param('undock', $this->instance->id);
|
||||
} else {
|
||||
$moveicon->image->src = $OUTPUT->old_icon_url('t/movetosidetab');
|
||||
$moveicon->image->src = $OUTPUT->pix_url('t/movetosidetab');
|
||||
$moveicon->image->alt = $togglesidetabdisplay;
|
||||
$moveicon->image->title = $togglesidetabdisplay;
|
||||
$moveicon->link->url->param('dock', $this->instance->id);
|
||||
|
|
|
@ -11,7 +11,7 @@ class block_loancalc extends block_base {
|
|||
function get_content() {
|
||||
global $CFG, $OUTPUT;
|
||||
|
||||
$calc = $OUTPUT->old_icon_url('i/calc');
|
||||
$calc = $OUTPUT->pix_url('i/calc');
|
||||
|
||||
$this->content->text = '
|
||||
<script type="text/javascript">
|
||||
|
|
|
@ -47,7 +47,7 @@ class block_messages extends block_base {
|
|||
$this->content->text .= '<li class="listentry"><div class="user"><a href="'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&course='.SITEID.'" title="'.$timeago.'">';
|
||||
$this->content->text .= $OUTPUT->user_picture(moodle_user_picture::make($user, SITEID));
|
||||
$this->content->text .= fullname($user).'</a></div>';
|
||||
$this->content->text .= '<div class="message"><a href="'.$CFG->wwwroot.'/message/discussion.php?id='.$user->id.'" onclick="this.target=\'message_'.$user->id.'\'; return openpopup(\'/message/discussion.php?id='.$user->id.'\', \'message_'.$user->id.'\', \'menubar=0,location=0,scrollbars,status,resizable,width=400,height=500\', 0);"><img class="iconsmall" src="'.$OUTPUT->old_icon_url('t/message') . '" alt="" /> '.$user->count.'</a>';
|
||||
$this->content->text .= '<div class="message"><a href="'.$CFG->wwwroot.'/message/discussion.php?id='.$user->id.'" onclick="this.target=\'message_'.$user->id.'\'; return openpopup(\'/message/discussion.php?id='.$user->id.'\', \'message_'.$user->id.'\', \'menubar=0,location=0,scrollbars,status,resizable,width=400,height=500\', 0);"><img class="iconsmall" src="'.$OUTPUT->pix_url('t/message') . '" alt="" /> '.$user->count.'</a>';
|
||||
$this->content->text .= '</div></li>';
|
||||
}
|
||||
$this->content->text .= '</ul>';
|
||||
|
|
|
@ -82,7 +82,7 @@ class block_mnet_hosts extends block_list {
|
|||
|
||||
if ($hosts) {
|
||||
foreach ($hosts as $host) {
|
||||
$icon = '<img src="'.$OUTPUT->old_icon_url('i/'.$host->application.'_host') . '"'.
|
||||
$icon = '<img src="'.$OUTPUT->pix_url('i/'.$host->application.'_host') . '"'.
|
||||
' class="icon" alt="'.get_string('server', 'block_mnet_hosts').'" />';
|
||||
|
||||
$this->content->icons[]=$icon;
|
||||
|
|
|
@ -154,7 +154,7 @@ class block_online_users extends block_base {
|
|||
}
|
||||
if ($canshowicon and ($USER->id != $user->id) and $user->username != 'guest') { // Only when logged in and messaging active etc
|
||||
$this->content->text .= '<div class="message"><a title="'.get_string('messageselectadd').'" href="'.$CFG->wwwroot.'/message/discussion.php?id='.$user->id.'" onclick="this.target=\'message_'.$user->id.'\';return openpopup(\'/message/discussion.php?id='.$user->id.'\', \'message_'.$user->id.'\', \'menubar=0,location=0,scrollbars,status,resizable,width=400,height=500\', 0);">'
|
||||
.'<img class="iconsmall" src="'.$OUTPUT->old_icon_url('t/message') . '" alt="'. get_string('messageselectadd') .'" /></a></div>';
|
||||
.'<img class="iconsmall" src="'.$OUTPUT->pix_url('t/message') . '" alt="'. get_string('messageselectadd') .'" /></a></div>';
|
||||
}
|
||||
$this->content->text .= "</li>\n";
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ class block_participants extends block_list {
|
|||
|
||||
$this->content->items[] = '<a title="'.get_string('listofallpeople').'" href="'.
|
||||
$CFG->wwwroot.'/user/index.php?contextid='.$currentcontext->id.'">'.get_string('participants').'</a>';
|
||||
$this->content->icons[] = '<img src="'.$OUTPUT->old_icon_url('i/users') . '" class="icon" alt="" />';
|
||||
$this->content->icons[] = '<img src="'.$OUTPUT->pix_url('i/users') . '" class="icon" alt="" />';
|
||||
|
||||
return $this->content;
|
||||
}
|
||||
|
|
|
@ -120,14 +120,14 @@ foreach($feeds as $feed) {
|
|||
$editaction = new moodle_action_icon();
|
||||
$editaction->link->url = $CFG->wwwroot .'/blocks/rss_client/editfeed.php?rssid=' . $feed->id . $extraparams;
|
||||
$editaction->link->title = get_string('edit');
|
||||
$editaction->image->src = $OUTPUT->old_icon_url('t/edit');
|
||||
$editaction->image->src = $OUTPUT->pix_url('t/edit');
|
||||
$editaction->image->alt = get_string('edit');
|
||||
|
||||
$deleteaction = new moodle_action_icon();
|
||||
$deleteaction->link->url = $CFG->wwwroot .'/blocks/rss_client/managefeeds.php?deleterssid=' . $feed->id .
|
||||
'&sesskey=' . sesskey() . $extraparams;
|
||||
$deleteaction->link->title = get_string('delete');
|
||||
$deleteaction->image->src = $OUTPUT->old_icon_url('t/delete');
|
||||
$deleteaction->image->src = $OUTPUT->pix_url('t/delete');
|
||||
$deleteaction->image->alt = get_string('delete');
|
||||
$deleteaction->link->add_confirm_action(get_string('deletefeedconfirm', 'block_rss_client'));
|
||||
|
||||
|
|
|
@ -145,7 +145,7 @@ class block_settings_navigation_tree extends block_tree {
|
|||
$url->param('regenerate','navigation');
|
||||
$reloadicon->link->url = $url;
|
||||
$reloadicon->link->add_class('customcommand');
|
||||
$reloadicon->image->src = $OUTPUT->old_icon_url('t/reload');
|
||||
$reloadicon->image->src = $OUTPUT->pix_url('t/reload');
|
||||
$reloadicon->alt = get_string('reload');
|
||||
$reloadicon->title = get_string('reload');
|
||||
|
||||
|
@ -158,12 +158,12 @@ class block_settings_navigation_tree extends block_tree {
|
|||
$moveicon->link->add_classes('moveto customcommand requiresjs');
|
||||
$moveicon->link->url = $this->page->url;
|
||||
if ($this->docked) {
|
||||
$moveicon->image->src = $OUTPUT->old_icon_url('t/movetoblock');
|
||||
$moveicon->image->src = $OUTPUT->pix_url('t/movetoblock');
|
||||
$moveicon->image->alt = $toggleblockdisplay;
|
||||
$moveicon->image->title = $toggleblockdisplay;
|
||||
$moveicon->link->url->param('undock', $this->instance->id);
|
||||
} else {
|
||||
$moveicon->image->src = $OUTPUT->old_icon_url('t/movetosidetab');
|
||||
$moveicon->image->src = $OUTPUT->pix_url('t/movetosidetab');
|
||||
$moveicon->image->alt = $togglesidetabdisplay;
|
||||
$moveicon->image->title = $togglesidetabdisplay;
|
||||
$moveicon->link->url->param('dock', $this->instance->id);
|
||||
|
|
|
@ -50,9 +50,9 @@ class block_site_main_menu extends block_list {
|
|||
' href="'.$CFG->wwwroot.'/mod/'.$cm->modname.'/view.php?id='.$cm->id.'">'.$instancename.'</a>';
|
||||
//Accessibility: incidental image - should be empty Alt text
|
||||
if (!empty($cm->icon)) {
|
||||
$icon = $OUTPUT->old_icon_url($cm->icon);
|
||||
$icon = $OUTPUT->pix_url($cm->icon);
|
||||
} else {
|
||||
$icon = $OUTPUT->old_icon_url('icon', $cm->modname);
|
||||
$icon = $OUTPUT->pix_url('icon', $cm->modname);
|
||||
}
|
||||
$this->content->icons[] = '<img src="'.$icon.'" class="icon" alt="" />';
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ class block_site_main_menu extends block_list {
|
|||
$editbuttons = '';
|
||||
|
||||
if ($ismoving) {
|
||||
$this->content->icons[] = '<img src="'.$OUTPUT->old_icon_url('t/move') . '" class="iconsmall" alt="" />';
|
||||
$this->content->icons[] = '<img src="'.$OUTPUT->pix_url('t/move') . '" class="iconsmall" alt="" />';
|
||||
$this->content->items[] = $USER->activitycopyname.' (<a href="'.$CFG->wwwroot.'/course/mod.php?cancelcopy=true&sesskey='.sesskey().'">'.$strcancel.'</a>)';
|
||||
}
|
||||
|
||||
|
@ -110,7 +110,7 @@ class block_site_main_menu extends block_list {
|
|||
continue;
|
||||
}
|
||||
$this->content->items[] = '<a title="'.$strmovefull.'" href="'.$CFG->wwwroot.'/course/mod.php?moveto='.$mod->id.'&sesskey='.sesskey().'">'.
|
||||
'<img style="height:16px; width:80px; border:0px" src="'.$OUTPUT->old_icon_url('movehere') . '" alt="'.$strmovehere.'" /></a>';
|
||||
'<img style="height:16px; width:80px; border:0px" src="'.$OUTPUT->pix_url('movehere') . '" alt="'.$strmovehere.'" /></a>';
|
||||
$this->content->icons[] = '';
|
||||
}
|
||||
$instancename = $modinfo->cms[$modnumber]->name;
|
||||
|
@ -122,9 +122,9 @@ class block_site_main_menu extends block_list {
|
|||
$extra = '';
|
||||
}
|
||||
if (!empty($modinfo->cms[$modnumber]->icon)) {
|
||||
$icon = $OUTPUT->old_icon_url($modinfo->cms[$modnumber]->icon);
|
||||
$icon = $OUTPUT->pix_url($modinfo->cms[$modnumber]->icon);
|
||||
} else {
|
||||
$icon = $OUTPUT->old_icon_url('icon', $mod->modname);
|
||||
$icon = $OUTPUT->pix_url('icon', $mod->modname);
|
||||
}
|
||||
|
||||
if ($mod->modname == 'label') {
|
||||
|
@ -142,7 +142,7 @@ class block_site_main_menu extends block_list {
|
|||
|
||||
if ($ismoving) {
|
||||
$this->content->items[] = '<a title="'.$strmovefull.'" href="'.$CFG->wwwroot.'/course/mod.php?movetosection='.$section->id.'&sesskey='.sesskey().'">'.
|
||||
'<img style="height:16px; width:80px; border:0px" src="'.$OUTPUT->old_icon_url('movehere') . '" alt="'.$strmovehere.'" /></a>';
|
||||
'<img style="height:16px; width:80px; border:0px" src="'.$OUTPUT->pix_url('movehere') . '" alt="'.$strmovehere.'" /></a>';
|
||||
$this->content->icons[] = '';
|
||||
}
|
||||
|
||||
|
|
|
@ -52,9 +52,9 @@ class block_social_activities extends block_list {
|
|||
' href="'.$CFG->wwwroot.'/mod/'.$cm->modname.'/view.php?id='.$cm->id.'">'.$instancename.'</a>';
|
||||
//Accessibility: incidental image - should be empty Alt text
|
||||
if (!empty($cm->icon)) {
|
||||
$icon = $OUTPUT->old_icon_url($cm->icon);
|
||||
$icon = $OUTPUT->pix_url($cm->icon);
|
||||
} else {
|
||||
$icon = $OUTPUT->old_icon_url('icon', $cm->modname);
|
||||
$icon = $OUTPUT->pix_url('icon', $cm->modname);
|
||||
}
|
||||
$this->content->icons[] = '<img src="'.$icon.'" class="icon" alt="" />';
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ class block_social_activities extends block_list {
|
|||
$editbuttons = '';
|
||||
|
||||
if ($ismoving) {
|
||||
$this->content->icons[] = ' <img align="bottom" src="'.$OUTPUT->old_icon_url('t/move') . '" class="iconsmall" alt="" />';
|
||||
$this->content->icons[] = ' <img align="bottom" src="'.$OUTPUT->pix_url('t/move') . '" class="iconsmall" alt="" />';
|
||||
$this->content->items[] = $USER->activitycopyname.' (<a href="'.$CFG->wwwroot.'/course/mod.php?cancelcopy=true&sesskey='.sesskey().'">'.$strcancel.'</a>)';
|
||||
}
|
||||
|
||||
|
@ -119,7 +119,7 @@ class block_social_activities extends block_list {
|
|||
continue;
|
||||
}
|
||||
$this->content->items[] = '<a title="'.$strmovefull.'" href="'.$CFG->wwwroot.'/course/mod.php?moveto='.$mod->id.'&sesskey='.sesskey().'">'.
|
||||
'<img style="height:16px; width:80px; border:0px" src="'.$OUTPUT->old_icon_url('movehere') . '" alt="'.$strmovehere.'" /></a>';
|
||||
'<img style="height:16px; width:80px; border:0px" src="'.$OUTPUT->pix_url('movehere') . '" alt="'.$strmovehere.'" /></a>';
|
||||
$this->content->icons[] = '';
|
||||
}
|
||||
$instancename = $modinfo->cms[$modnumber]->name;
|
||||
|
@ -131,9 +131,9 @@ class block_social_activities extends block_list {
|
|||
$extra = '';
|
||||
}
|
||||
if (!empty($modinfo->cms[$modnumber]->icon)) {
|
||||
$icon = $OUTPUT->old_icon_url($modinfo->cms[$modnumber]->icon);
|
||||
$icon = $OUTPUT->pix_url($modinfo->cms[$modnumber]->icon);
|
||||
} else {
|
||||
$icon = $OUTPUT->old_icon_url('icon', $mod->modname);
|
||||
$icon = $OUTPUT->pix_url('icon', $mod->modname);
|
||||
}
|
||||
|
||||
if ($mod->modname == 'label') {
|
||||
|
@ -151,7 +151,7 @@ class block_social_activities extends block_list {
|
|||
|
||||
if ($ismoving) {
|
||||
$this->content->items[] = '<a title="'.$strmovefull.'" href="'.$CFG->wwwroot.'/course/mod.php?movetosection='.$section->id.'&sesskey='.sesskey().'">'.
|
||||
'<img style="height:16px; width:80px; border:0px" src="'.$OUTPUT->old_icon_url('movehere') . '" alt="'.$strmovehere.'" /></a>';
|
||||
'<img style="height:16px; width:80px; border:0px" src="'.$OUTPUT->pix_url('movehere') . '" alt="'.$strmovehere.'" /></a>';
|
||||
$this->content->icons[] = '';
|
||||
}
|
||||
|
||||
|
|
|
@ -234,7 +234,7 @@ class block_tags extends block_base {
|
|||
$arrowtitle = get_string('arrowtitle', $tagslang);
|
||||
$coursetaghelpbutton = $OUTPUT->help_icon(moodle_help_icon::make('addtags', 'adding tags', $tagslang));
|
||||
$sesskey = sesskey();
|
||||
$arrowright = $OUTPUT->old_icon_url('t/arrow_left');
|
||||
$arrowright = $OUTPUT->pix_url('t/arrow_left');
|
||||
$this->content->footer .= <<<EOT
|
||||
<hr />
|
||||
<form action="{$CFG->wwwroot}/tag/coursetags_add.php" method="post" id="coursetag"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue