From 49aa038b4e9cd240b1a8ce69e85a144bab3a5a27 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Tue, 11 Dec 2012 11:24:10 +0800 Subject: [PATCH 01/12] MDL-37085 Minor UI and code improvements in print_section() --- course/lib.php | 136 ++++++++++------------------ theme/base/style/core.css | 2 + theme/formal_white/style/course.css | 1 + theme/standard/style/course.css | 1 + 4 files changed, 50 insertions(+), 90 deletions(-) diff --git a/course/lib.php b/course/lib.php index 52302409346..756efd22fe1 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1353,7 +1353,7 @@ function get_print_section_cm_text(cm_info $cm, $course) { * @param array $mods (argument not used) * @param array $modnamesused (argument not used) * @param bool $absolute All links are absolute - * @param string $width Width of the container + * @param string $width (argument not used) * @param bool $hidecompletion Hide completion status * @param int $sectionreturn The section to return to * @return void @@ -1367,7 +1367,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false, static $groupbuttonslink; static $isediting; static $ismoving; - static $strmovehere; + static $movingpix; static $strmovefull; static $strunreadpostsone; @@ -1377,7 +1377,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false, $isediting = $PAGE->user_is_editing(); $ismoving = $isediting && ismoving($course->id); if ($ismoving) { - $strmovehere = get_string("movehere"); + $movingpix = new pix_icon('movehere', get_string('movehere'), 'moodle', array('class' => 'movetarget')); $strmovefull = strip_tags(get_string("movefull", "", "'$USER->activitycopyname'")); } $initialised = true; @@ -1386,12 +1386,9 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false, $modinfo = get_fast_modinfo($course); $completioninfo = new completion_info($course); - //Accessibility: replace table with list