]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-1149 Accessibility: Current week is NOT indicated non-visually, only in styling.
authornfreear <nfreear>
Tue, 25 Sep 2007 12:00:51 +0000 (12:00 +0000)
committernfreear <nfreear>
Tue, 25 Sep 2007 12:00:51 +0000 (12:00 +0000)
course/format/topics/format.php
course/format/weeks/format.php
course/format/weekscss/format.php
lang/en_utf8/access.php

index 514f91a78ae5394409ef5e5a0b278625099e72cd..91fd095dc1f47acf49cec378d76acacd67a22330 100644 (file)
 
             $currenttopic = ($course->marker == $section);
 
+            $currenttext = '';
             if (!$thissection->visible) {
                 $sectionstyle = ' hidden';
             } else if ($currenttopic) {
                 $sectionstyle = ' current';
+                $currenttext = get_accesshide(get_string('currenttopic','access'));
             } else {
                 $sectionstyle = '';
             }
 
             echo '<tr id="section-'.$section.'" class="section main'.$sectionstyle.'">';
-            echo '<td class="left side">'.$section.'</td>';
+            echo '<td class="left side">'.$currenttext.$section.'</td>';
 
             echo '<td class="content">';
             if (!has_capability('moodle/course:viewhiddensections', $context) and !$thissection->visible) {   // Hidden for students
index f3c35b34f5d56827f8b61f1a765420e9576af5a7..5a83f23bbf68d53bf358fa369d63335c10ddbe62 100644 (file)
 
             $currentweek = (($weekdate <= $timenow) && ($timenow < $nextweekdate));
 
+            $currenttext = '';
             if (!$thissection->visible) {
                 $sectionstyle = ' hidden';
             } else if ($currentweek) {
                 $sectionstyle = ' current';
+                $currenttext = get_accesshide(get_string('currentweek','access'));
             } else {
                 $sectionstyle = '';
             }
 
             echo '<tr id="section-'.$section.'" class="section main'.$sectionstyle.'">';
-            echo '<td class="left side">&nbsp;</td>';
+            echo '<td class="left side">&nbsp;'.$currenttext.'</td>';
 
             $weekperiod = $weekday.' - '.$endweekday;
-            
 
             echo '<td class="content">';
             if (!has_capability('moodle/course:viewhiddensections', $context) and !$thissection->visible) {   // Hidden for students
index fec9bc6e677279f22758c709bcc7692d96fc4177..8c705d4cee03a7ef828b43360288be6b107f1074 100644 (file)
 
             $currentweek = (($weekdate <= $timenow) && ($timenow < $nextweekdate));
 
+            $currenttext = '';
             if (!$thissection->visible) {
                 $sectionstyle = ' hidden';
             } else if ($currentweek) {
                 $sectionstyle = ' current';
+                $currenttext = get_accesshide(get_string('currentweek','access'));
             } else {
                 $sectionstyle = '';
             }
             echo '<li id="section-'.$section.'" class="section main'.$sectionstyle.'" >'; //'<div class="left side">&nbsp;</div>';
 
             // Note, 'right side' is BEFORE content.
-            echo '<div class="right side">';
+            echo '<div class="right side">'.$currenttext;
             
             if ($displaysection == $section) {
                 echo '<a href="view.php?id='.$course->id.'&amp;week=0#section-'.$section.'" title="'.$strshowallweeks.'">'.
index 88f3f2860d405538cd2aeeee5f527c320959c7fc..b82dbf26c892288f80cb7d20d2084f6b52ed97a2 100644 (file)
@@ -1,5 +1,6 @@
 <?PHP // $Id$ 
       // access.php - created with Moodle 1.7 beta + (2006101003)
+      // Accessibility, usability and navigation language file.
 
 
 $string['access'] = 'Accessibility';
@@ -9,6 +10,8 @@ $string['accessstatement'] = 'Accessibility statement';
 $string['activitynext'] = 'Next activity';
 $string['activityprev'] = 'Previous activity';
 $string['breadcrumb'] = 'Breadcrumb trail';
+$string['currentweek'] = 'Current week ';
+$string['currenttopic'] = 'Current topic ';
 $string['monthnext'] = 'Next month';
 $string['monthprev'] = 'Previous month';
 $string['showhideblock'] = 'Show or hide block';