MDL-79986 course: Create new course/section.php page
commit6792a40924d4b9f7882f210bb28bd9f6501a5a27
authorSara Arjona <sara@moodle.com>
Fri, 10 Nov 2023 08:45:50 +0000 (10 09:45 +0100)
committerSara Arjona <sara@moodle.com>
Fri, 1 Dec 2023 08:15:48 +0000 (1 09:15 +0100)
tree5ac6e740e177803f907862e2d406bf6da83db71d
parentd53dc05e9e08cd4887084effacf9b69e9a7b8bb1
MDL-79986 course: Create new course/section.php page

The page course/section.php has been created, to display the content of a
single section. This page will only accept sectionid (to get rid of the
legacy sectionnumber).

Some features of this page:
- The General section won't be displayed anymore above the selected
section.
- In the main course page content, regardless of the Course layout ("All
sections on one page" vs "One section per page"), all the section names
will link to the new page (except when editing mode is on).
27 files changed:
blocks/section_links/renderer.php
course/format/classes/base.php
course/format/classes/output/local/content.php
course/format/classes/output/local/content/section.php
course/format/classes/output/local/content/section/controlmenu.php
course/format/classes/output/local/content/section/header.php
course/format/classes/output/local/content/sectionnavigation.php
course/format/classes/output/local/state/section.php
course/format/singleactivity/lib.php
course/format/singleactivity/tests/format_singleactivity_test.php [new file with mode: 0644]
course/format/social/lib.php
course/format/social/tests/format_social_test.php [new file with mode: 0644]
course/format/templates/local/content/section/content.mustache
course/format/templates/local/content/section/header.mustache
course/format/tests/base_test.php
course/format/tests/behat/bulk_show_one_section_actions.feature
course/format/tests/behat/course_manageactivities.feature
course/format/tests/behat/section_page.feature [new file with mode: 0644]
course/format/topics/lib.php
course/format/topics/tests/format_topics_test.php
course/format/weeks/lib.php
course/format/weeks/tests/format_weeks_test.php
course/section.php [new file with mode: 0644]
course/tests/behat/activity_resource_delete.feature
course/tests/behat/course_controls.feature
course/tests/behat/move_sections.feature
course/tests/behat/paged_course_navigation.feature