Skip to content
Browse files

The summary in the week or topic description was just written out as …

…text without a class. I added a DIV class="summary" around it.
  • Loading branch information...
1 parent c3a3c5b commit 4090106907285410e765527dbcdaa9ef957fc94c urs_hunkler committed
Showing with 11 additions and 3 deletions.
  1. +5 −1 course/format/topics/format.php
  2. +6 −2 course/format/weeks/format.php
View
6 course/format/topics/format.php
@@ -96,7 +96,8 @@
echo '<tr id="section-0" class="section">';
echo '<td class="left side">&nbsp;</td>';
echo '<td class="content">';
-
+
+ echo '<div class="summary">';
$summaryformatoptions->noclean = true;
echo format_text($thissection->summary, FORMAT_HTML, $summaryformatoptions);
@@ -105,6 +106,7 @@
' href="editsection.php?id='.$thissection->id.'"><img src="'.$CFG->pixpath.'/t/edit.gif" '.
' height="11" width="11" border="0" alt="'.$streditsummary.'" /></a><br /><br />';
}
+ echo '</div>';
print_section($course, $thissection, $mods, $modnamesused);
@@ -180,6 +182,7 @@
if (!isteacher($course->id) and !$thissection->visible) { // Hidden for students
echo get_string('notavailable');
} else {
+ echo '<div class="summary">';
$summaryformatoptions->noclean = true;
echo format_text($thissection->summary, FORMAT_HTML, $summaryformatoptions);
@@ -187,6 +190,7 @@
echo ' <a title="'.$streditsummary.'" href="editsection.php?id='.$thissection->id.'">'.
'<img src="'.$CFG->pixpath.'/t/edit.gif" border="0" height="11" width="11" alt="" /></a><br /><br />';
}
+ echo '</div>';
print_section($course, $thissection, $mods, $modnamesused);
View
8 course/format/weeks/format.php
@@ -87,7 +87,8 @@
echo '<tr id="section-0" class="section">';
echo '<td class="left side">&nbsp;</td>';
echo '<td class="content">';
-
+
+ echo '<div class="summary">';
$summaryformatoptions->noclean = true;
echo format_text($thissection->summary, FORMAT_HTML, $summaryformatoptions);
@@ -96,7 +97,8 @@
' href="editsection.php?id='.$thissection->id.'"><img src="'.$CFG->pixpath.'/t/edit.gif" '.
' height="11" width="11" border="0" alt="'.$streditsummary.'" /></a><br /><br />';
}
-
+ echo '</div>';
+
print_section($course, $thissection, $mods, $modnamesused);
if (isediting($course->id)) {
@@ -179,6 +181,7 @@
} else {
echo '<div class="weekdates">'.$weekday.' - '.$endweekday.'</div>';
+ echo '<div class="summary">';
$summaryformatoptions->noclean = true;
echo format_text($thissection->summary, FORMAT_HTML, $summaryformatoptions);
@@ -186,6 +189,7 @@
echo ' <a title="'.$streditsummary.'" href="editsection.php?id='.$thissection->id.'">'.
'<img src="'.$CFG->pixpath.'/t/edit.gif" border="0" height="11" width="11" alt="" /></a><br /><br />';
}
+ echo '</div>';
print_section($course, $thissection, $mods, $modnamesused);

0 comments on commit 4090106

Please sign in to comment.
Something went wrong with that request. Please try again.