mirror of
https://github.com/moodle/moodle.git
synced 2025-04-25 02:16:06 +02:00
MDL-31822 course: Formatting the section name
This commit is contained in:
parent
a7aae18cf6
commit
fecca79d5a
10
index.php
10
index.php
@ -130,11 +130,17 @@
|
||||
echo '</font></p>';
|
||||
}
|
||||
|
||||
$context = context_course::instance(SITEID);
|
||||
|
||||
// If the section name is set we show it.
|
||||
if (!is_null($section->name)) {
|
||||
echo $OUTPUT->heading($section->name, 1, 'sectionname');
|
||||
echo $OUTPUT->heading(
|
||||
format_string($section->name, true, array('context' => $context)),
|
||||
2,
|
||||
'sectionname'
|
||||
);
|
||||
}
|
||||
|
||||
$context = context_course::instance(SITEID);
|
||||
$summarytext = file_rewrite_pluginfile_urls($section->summary, 'pluginfile.php', $context->id, 'course', 'section', $section->id);
|
||||
$summaryformatoptions = new stdClass();
|
||||
$summaryformatoptions->noclean = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user