MDL-32505 course formats: zooming feature be gone!
authorDan Poltawski <dan@moodle.com>
Mon, 23 Apr 2012 13:17:41 +0000 (21:17 +0800)
committerDan Poltawski <dan@moodle.com>
Fri, 4 May 2012 02:52:57 +0000 (10:52 +0800)
course/format/topics/format.php
course/format/weeks/format.php
lang/en/moodle.php
pix/i/all.gif [deleted file]
pix/i/one.gif [deleted file]

index 912671d..515cd44 100644 (file)
@@ -42,7 +42,6 @@ if (($marker >=0) && has_capability('moodle/course:setcurrentsection', $context)
 $streditsummary  = get_string('editsummary');
 $stradd          = get_string('add');
 $stractivities   = get_string('activities');
-$strshowalltopics = get_string('showalltopics');
 $strtopic         = get_string('topic');
 $strgroups       = get_string('groups');
 $strgroupmy      = get_string('groupmy');
@@ -171,15 +170,6 @@ while ($section <= $course->numsections) {
         // Note, 'right side' is BEFORE content.
         echo '<div class="right side">';
 
-        if ($displaysection == $section) {    // Show the zoom boxes
-            echo '<a href="view.php?id='.$course->id.'&amp;topic=0#section-'.$section.'" title="'.$strshowalltopics.'">'.
-                 '<img src="'.$OUTPUT->pix_url('i/all') . '" class="icon" alt="'.$strshowalltopics.'" /></a><br />';
-        } else {
-            $strshowonlytopic = get_string("showonlytopic", "", $section);
-            echo '<a href="view.php?id='.$course->id.'&amp;topic='.$section.'" title="'.$strshowonlytopic.'">'.
-                 '<img src="'.$OUTPUT->pix_url('i/one') . '" class="icon" alt="'.$strshowonlytopic.'" /></a><br />';
-        }
-
         if ($PAGE->user_is_editing() && has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $course->id))) {
 
             if ($course->marker == $section) {  // Show the "light globe" on/off
index abc2c7d..a6894e6 100644 (file)
@@ -34,7 +34,6 @@ defined('MOODLE_INTERNAL') || die();
     $streditsummary  = get_string('editsummary');
     $stradd          = get_string('add');
     $stractivities   = get_string('activities');
-    $strshowallweeks = get_string('showallweeks');
     $strweek         = get_string('week');
     $strgroups       = get_string('groups');
     $strgroupmy      = get_string('groupmy');
@@ -177,15 +176,6 @@ defined('MOODLE_INTERNAL') || die();
             // Note, 'right side' is BEFORE content.
             echo '<div class="right side">';
 
-            if ($displaysection == $section) {
-                echo '<a href="view.php?id='.$course->id.'&amp;week=0#section-'.$section.'" title="'.$strshowallweeks.'">'.
-                     '<img src="'.$OUTPUT->pix_url('i/all') . '" class="icon wkall" alt="'.$strshowallweeks.'" /></a><br />';
-            } else {
-                $strshowonlyweek = get_string("showonlyweek", "", $section);
-                echo '<a href="view.php?id='.$course->id.'&amp;week='.$section.'" title="'.$strshowonlyweek.'">'.
-                     '<img src="'.$OUTPUT->pix_url('i/one') . '" class="icon wkone" alt="'.$strshowonlyweek.'" /></a><br />';
-            }
-
             if ($PAGE->user_is_editing() && has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $course->id))) {
                 if ($thissection->visible) {        // Show the hide/show eye
                     echo '<a href="view.php?id='.$course->id.'&amp;hide='.$section.'&amp;sesskey='.sesskey().'#section-'.$section.'" title="'.$strweekhide.'" class="editing_showhide">'.
index c02c0a1..9a3803a 100644 (file)
@@ -1488,9 +1488,7 @@ $string['showactions'] = 'Show actions';
 $string['showadvancedsettings'] = 'Show advanced settings';
 $string['showall'] = 'Show all {$a}';
 $string['showallcourses'] = 'Show all courses';
-$string['showalltopics'] = 'Show all topics';
 $string['showallusers'] = 'Show all users';
-$string['showallweeks'] = 'Show all weeks';
 $string['showblockcourse'] = 'Show list of courses containing block';
 $string['showcomments'] = 'Show/hide comments';
 $string['showcommentsnonjs'] = 'Show comments';
@@ -1501,8 +1499,6 @@ $string['showgrades_help'] = 'Many activities in the course allow grades to be s
 $string['showlistofcourses'] = 'Show list of courses';
 $string['showmodulecourse'] = 'Show list of courses containing activity';
 $string['showonly'] = 'Show only';
-$string['showonlytopic'] = 'Show only topic {$a}';
-$string['showonlyweek'] = 'Show only week {$a}';
 $string['showperpage'] = 'Show {$a} per page';
 $string['showrecent'] = 'Show recent activity';
 $string['showreports'] = 'Show activity reports';
diff --git a/pix/i/all.gif b/pix/i/all.gif
deleted file mode 100644 (file)
index 38a2fd0..0000000
Binary files a/pix/i/all.gif and /dev/null differ
diff --git a/pix/i/one.gif b/pix/i/one.gif
deleted file mode 100644 (file)
index 4792e7c..0000000
Binary files a/pix/i/one.gif and /dev/null differ