|
5 | 5 | use moodle_page;
|
6 | 6 |
|
7 | 7 | /**
|
8 |
| -* Basic renderer for pluginname format. |
9 |
| -* |
10 |
| -* @copyright 2022 Someone < [email protected]> |
11 |
| - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
12 |
| - */ |
13 |
| - class renderer extends section_renderer { |
| 8 | + * Basic renderer for pluginname format. |
| 9 | + * |
| 10 | + * @copyright Someone < [email protected]> |
| 11 | + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
| 12 | + */ |
| 13 | +class renderer extends section_renderer { |
14 | 14 | // Override any necessary renderer method here.
|
15 |
| - |
16 | 15 | /**
|
17 |
| - * Generate the section title, wraps it in a link to the section page if page is to be displayed on a separate page. |
18 |
| - * |
19 |
| - * This method is required to enable the inplace section title editor. |
20 |
| - * |
21 |
| - * @param section_info|stdClass $section The course_section entry from DB |
22 |
| - * @param stdClass $course The course entry from DB |
23 |
| - * @return string HTML to output. |
24 |
| - */ |
| 16 | + * Generate the section title, wraps it in a link to the section page if page is to be displayed on a separate page. |
| 17 | + * |
| 18 | + * This method is required to enable the inplace section title editor. |
| 19 | + * |
| 20 | + * @param section_info|stdClass $section The course_section entry from DB |
| 21 | + * @param stdClass $course The course entry from DB |
| 22 | + * @return string HTML to output. |
| 23 | + */ |
25 | 24 | public function section_title($section, $course) {
|
26 |
| - return $this->render(format_base::instance($course)->inplace_editable_render_section_name($section)); |
| 25 | + return $this->render(format_base::instance($course)->inplace_editable_render_section_name($section)); |
27 | 26 | }
|
28 | 27 |
|
29 | 28 | /**
|
30 |
| - * Generate the section title to be displayed on the section page, without a link. |
31 |
| - * |
32 |
| - * This method is required to enable the inplace section title editor. |
33 |
| - * |
34 |
| - * @param section_info|stdClass $section The course_section entry from DB |
35 |
| - * @param int|stdClass $course The course entry from DB |
36 |
| - * @return string HTML to output. |
37 |
| - */ |
| 29 | + * Generate the section title to be displayed on the section page, without a link. |
| 30 | + * |
| 31 | + * This method is required to enable the inplace section title editor. |
| 32 | + * |
| 33 | + * @param section_info|stdClass $section The course_section entry from DB |
| 34 | + * @param int|stdClass $course The course entry from DB |
| 35 | + * @return string HTML to output. |
| 36 | + */ |
38 | 37 | public function section_title_without_link($section, $course) {
|
39 |
| - return $this->render(format_base::instance($course)->inplace_editable_render_section_name($section, false)); |
40 |
| - } |
| 38 | + return $this->render(format_base::instance($course)->inplace_editable_render_section_name($section, false)); |
41 | 39 | }
|
| 40 | +} |
0 commit comments