MDL-4782 course: swap availability info and description
This commit is contained in:
@@ -226,14 +226,15 @@ abstract class format_section_renderer_base extends plugin_renderer_base {
|
||||
$sectionname = html_writer::tag('span', $this->section_title($section, $course));
|
||||
$o.= $this->output->heading($sectionname, 3, 'sectionname' . $classes);
|
||||
|
||||
$o.= html_writer::start_tag('div', array('class' => 'summary'));
|
||||
$o.= $this->format_summary_text($section);
|
||||
$o.= html_writer::end_tag('div');
|
||||
|
||||
$context = context_course::instance($course->id);
|
||||
|
||||
$o .= $this->section_availability_message($section,
|
||||
has_capability('moodle/course:viewhiddensections', $context));
|
||||
|
||||
$o .= html_writer::start_tag('div', array('class' => 'summary'));
|
||||
$o .= $this->format_summary_text($section);
|
||||
$o .= html_writer::end_tag('div');
|
||||
|
||||
return $o;
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -890,15 +890,15 @@ class core_course_renderer extends plugin_renderer_base {
|
||||
$output .= html_writer::span($modicons, 'actions');
|
||||
}
|
||||
|
||||
// Show availability info (if module is not available).
|
||||
$output .= $this->course_section_cm_availability($mod, $displayoptions);
|
||||
|
||||
// If there is content AND a link, then display the content here
|
||||
// (AFTER any icons). Otherwise it was displayed before
|
||||
if (!empty($url)) {
|
||||
$output .= $contentpart;
|
||||
}
|
||||
|
||||
// show availability info (if module is not available)
|
||||
$output .= $this->course_section_cm_availability($mod, $displayoptions);
|
||||
|
||||
$output .= html_writer::end_tag('div'); // $indentclasses
|
||||
|
||||
// End of indentation div.
|
||||
|
||||
Reference in New Issue
Block a user