]> git.mjollnir.org Git - moodle.git/commitdiff
XHTML Strict fixes
authormoodler <moodler>
Fri, 5 Jan 2007 16:40:04 +0000 (16:40 +0000)
committermoodler <moodler>
Fri, 5 Jan 2007 16:40:04 +0000 (16:40 +0000)
course/format/social/format.php
course/format/topics/format.php
theme/standard/styles_fonts.css
theme/standard/styles_layout.css

index f917e08e651a025254f21c867aeb7418dd5c4a96..ddb2512bf3debdee0ce4be3b94071bfa2881232a 100644 (file)
 
     echo '<td id="middle-column"><a name="startofcontent"></a>';
     if ($forum = forum_get_course_forum($course->id, 'social')) {
+        print_heading_block(get_string('socialheadline'));
         if (forum_is_forcesubscribed($forum->id)) {
-            $subtext = '<div class="link">'.get_string('everyoneissubscribed', 'forum').'</div>';
+            echo '<div class="subscribelink">'.get_string('everyoneissubscribed', 'forum').'</div>';
         } else if (forum_is_subscribed($USER->id, $forum->id)) {
-            $subtext = '<div class="link"><a href="../mod/forum/subscribe.php?id='.$forum->id.'">'.get_string('unsubscribe', 'forum').'</a></div>';
+            echo '<div class="subscribelink"><a href="../mod/forum/subscribe.php?id='.$forum->id.'">'.get_string('unsubscribe', 'forum').'</a></div>';
         } else {
-            $subtext = '<div class="link"><a href="../mod/forum/subscribe.php?id='.$forum->id.'">'.get_string('subscribe', 'forum').'</a></div>';
+            echo '<div class="subscribelink"><a href="../mod/forum/subscribe.php?id='.$forum->id.'">'.get_string('subscribe', 'forum').'</a></div>';
         }
-        $headertext = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>'.
-                      '<td><div class="title">'.get_string('socialheadline').'</div></td>'.
-                      '<td>'.$subtext.'</td></tr></table>';
-        print_heading_block($headertext);
 
         forum_print_latest_discussions($course, $forum, 10, 'plain', '', false);
 
index 92616da7beb7c26c84e5aed6dc86184399446af7..7485e77a72f6da31b3ebbfc59d713cdc58990a1c 100644 (file)
         $summaryformatoptions->noclean = true;
         echo format_text($thissection->summary, FORMAT_HTML, $summaryformatoptions);
 
-        //Accessibility: added Alt, filled empty Alt-link text.
         if (isediting($course->id)) {
             echo '<a title="'.$streditsummary.'" '.
                  ' href="editsection.php?id='.$thissection->id.'"><img src="'.$CFG->pixpath.'/t/edit.gif" '.
-                 ' height="11" width="11" border="0" alt="'.$streditsummary.'" /></a><br /><br />';
+                 ' alt="'.$streditsummary.'" /></a><br /><br />';
         }
         echo '</div>';
 
 
                 if (isediting($course->id)) {
                     echo ' <a title="'.$streditsummary.'" href="editsection.php?id='.$thissection->id.'">'.
-                         '<img src="'.$CFG->pixpath.'/t/edit.gif" border="0" height="11" width="11" alt="'.$streditsummary.'" /></a><br /><br />';
+                         '<img src="'.$CFG->pixpath.'/t/edit.gif" alt="'.$streditsummary.'" /></a><br /><br />';
                 }
                 echo '</div>';
 
             echo '<td 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="'.$CFG->pixpath.'/i/all.gif" height="25" width="16" border="0" alt="'.$strshowalltopics.'" /></a><br />';
+                     '<img src="'.$CFG->pixpath.'/i/all.gif" 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="'.$CFG->pixpath.'/i/one.gif" height="16" width="16" border="0" alt="'.$strshowonlytopic.'" /></a><br />';
+                     '<img src="'.$CFG->pixpath.'/i/one.gif" alt="'.$strshowonlytopic.'" /></a><br />';
             }
 
             if (isediting($course->id)) {
                 if ($course->marker == $section) {  // Show the "light globe" on/off
                     echo '<a href="view.php?id='.$course->id.'&amp;marker=0&amp;sesskey='.$USER->sesskey.'#section-'.$section.'" title="'.$strmarkedthistopic.'">'.
-                         '<img src="'.$CFG->pixpath.'/i/marked.gif" vspace="3" height="16" width="16" border="0" alt="'.$strmarkedthistopic.'" /></a><br />';
+                         '<img src="'.$CFG->pixpath.'/i/marked.gif" alt="'.$strmarkedthistopic.'" /></a><br />';
                 } else {
                     echo '<a href="view.php?id='.$course->id.'&amp;marker='.$section.'&amp;sesskey='.$USER->sesskey.'#section-'.$section.'" title="'.$strmarkthistopic.'">'.
-                         '<img src="'.$CFG->pixpath.'/i/marker.gif" vspace="3" height="16" width="16" border="0" alt="'.$strmarkthistopic.'" /></a><br />';
+                         '<img src="'.$CFG->pixpath.'/i/marker.gif" alt="'.$strmarkthistopic.'" /></a><br />';
                 }
 
                 if ($thissection->visible) {        // Show the hide/show eye
                     echo '<a href="view.php?id='.$course->id.'&amp;hide='.$section.'&amp;sesskey='.$USER->sesskey.'#section-'.$section.'" title="'.$strtopichide.'">'.
-                         '<img src="'.$CFG->pixpath.'/i/hide.gif" vspace="3" height="16" width="16" border="0" alt="'.$strtopichide.'" /></a><br />';
+                         '<img src="'.$CFG->pixpath.'/i/hide.gif" alt="'.$strtopichide.'" /></a><br />';
                 } else {
                     echo '<a href="view.php?id='.$course->id.'&amp;show='.$section.'&amp;sesskey='.$USER->sesskey.'#section-'.$section.'" title="'.$strtopicshow.'">'.
-                         '<img src="'.$CFG->pixpath.'/i/show.gif" vspace="3" height="16" width="16" border="0" alt="'.$strtopicshow.'" /></a><br />';
+                         '<img src="'.$CFG->pixpath.'/i/show.gif" alt="'.$strtopicshow.'" /></a><br />';
                 }
 
                 if ($section > 1) {                       // Add a arrow to move section up
                     echo '<a href="view.php?id='.$course->id.'&amp;random='.rand(1,10000).'&amp;section='.$section.'&amp;move=-1&amp;sesskey='.$USER->sesskey.'#section-'.($section-1).'" title="'.$strmoveup.'">'.
-                         '<img src="'.$CFG->pixpath.'/t/up.gif" vspace="3" height="11" width="11" border="0" alt="'.$strmoveup.'" /></a><br />';
+                         '<img src="'.$CFG->pixpath.'/t/up.gif" alt="'.$strmoveup.'" /></a><br />';
                 }
 
                 if ($section < $course->numsections) {    // Add a arrow to move section down
                     echo '<a href="view.php?id='.$course->id.'&amp;random='.rand(1,10000).'&amp;section='.$section.'&amp;move=1&amp;sesskey='.$USER->sesskey.'#section-'.($section+1).'" title="'.$strmovedown.'">'.
-                         '<img src="'.$CFG->pixpath.'/t/down.gif" vspace="3" height="11" width="11" border="0" alt="'.$strmovedown.'" /></a><br />';
+                         '<img src="'.$CFG->pixpath.'/t/down.gif" alt="'.$strmovedown.'" /></a><br />';
                 }
 
             }
index e42b54aa28ff717ef92d4cd459e56392007d8e88..bd5a3b65a938e8cb3e1235bef54fd3d35a4b15e5 100644 (file)
@@ -124,7 +124,8 @@ h4 {
   font-weight: bold;
 }
 
-#site-index .subscribelink {
+#site-index .subscribelink,
+#course-view .subscribelink {
   font-size: 0.8em;
 }
 
index 814fcae94f4e218fffb0262342490d0e0394ace2..01c83c7af2ccfaf34384647b0644c16144a4debc 100644 (file)
@@ -1318,7 +1318,8 @@ body#course-user .section h2 {
   margin:0;
 }
 
-#site-index .subscribelink {
+#site-index .subscribelink,
+#course-view .subscribelink {
   text-align:right;
 }