Skip to content

Commit

Permalink
MDL-32505 course formats: zooming feature be gone!
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed May 4, 2012
1 parent b9bcdb5 commit 3fe600a
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 24 deletions.
10 changes: 0 additions & 10 deletions course/format/topics/format.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
$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');
Expand Down Expand Up @@ -171,15 +170,6 @@
// 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
Expand Down
10 changes: 0 additions & 10 deletions course/format/weeks/format.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
$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');
Expand Down Expand Up @@ -177,15 +176,6 @@
// 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">'.
Expand Down
4 changes: 0 additions & 4 deletions lang/en/moodle.php
Original file line number Diff line number Diff line change
Expand Up @@ -1488,9 +1488,7 @@
$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';
Expand All @@ -1501,8 +1499,6 @@
$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';
Expand Down
Binary file removed pix/i/all.gif
Binary file not shown.
Binary file removed pix/i/one.gif
Binary file not shown.

0 comments on commit 3fe600a

Please sign in to comment.