Skip to content

Commit

Permalink
Add CSS class to section title prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
james-cnz committed Jun 9, 2024
1 parent d3f36c3 commit 687d814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -440,12 +440,12 @@ public function get_section_name($section): string {
. '–' . $yearendstring . $weekword . ' ' . $dateend->W . ' ' . $dateend->D;
}
}
$daystring = $daystring . ': ';
$daystring = '<span class="section-title-prefix">' . $daystring . ': ' . '</span>';
}
// END ADDED.

if ((string)$section->name !== '') {
return format_string($daystring . $section->name, true,
return $daystring . format_string($section->name, true,
['context' => context_course::instance($this->courseid)]); // CHANGED.
} else {
return $daystring . $this->get_default_section_name($section);
Expand Down

0 comments on commit 687d814

Please sign in to comment.