Commit Graph

22 Commits

Author SHA1 Message Date
Sara Arjona 9e25f21164 MDL-80248 course: Deprecate get/set_section_number()
The methods core_courseformat\base::set_section_number() and
core_courseformat\base:: get_section_number() have been deprecated
and replaced by core_courseformat\base::set_sectionnum() and
core_courseformat\base::get_sectionnum().
The new methods use the null value when all the sections must be
displayed (instead of 0). That way, section 0, can be displayed on
a single page too.
2024-01-19 12:03:37 +01:00
Sara Arjona e6f75b59a3 MDL-80248 course: Display only content for the General section 2024-01-19 12:03:36 +01:00
Sara Arjona 2abd1a212d Merge branch 'MDL-77572_master' of https://github.com/santoshndev/moodle 2023-12-12 17:58:48 +01:00
Santosh Nagargoje 1c5445c6e6 MDL-77572 Course: Added fix for section,activity visibility capabilities 2023-12-12 22:01:46 +05:30
Sara Arjona 6792a40924 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).
2023-12-01 09:15:48 +01:00
Meirza 07a281efff MDL-77350 course: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 00:33:19 +07:00
Philipp Memmel e026dd9caf MDL-75542 core_courseformat: Add param for expanding section 2023-03-03 07:54:07 +01:00
Bas Brands c3f0f59134 MDL-73952 core_course: update section badges using JS 2022-03-14 09:10:07 +01:00
Jun Pataleta 1569398c56 Merge branch 'wip_MDL-73877_master' of https://github.com/gjb2048/moodle 2022-03-01 10:09:18 +01:00
Andrew Nicols d6052154a6 MDL-73679 courseformat: Add support for course format templating 2022-03-01 12:03:46 +08:00
Gareth Barnard d1a473a3d6 MDL-73877 core_course: current class not applied to highlighted section 2022-02-26 11:52:32 +00:00
Ferran Recio 479faca428 MDL-73762 core_courseformat: fix coursedisplay dependency
For legacy reasons, the course renderings uses a format setting to know
if the page is multiple sections per page or a single section per page.
This format specific dependency is not solved using a get_course_display
format method any plugin can extend.
2022-02-25 13:35:23 +01:00
Ferran Recio 23856b1086 MDL-73762 core_courseformat: refactor cm and section outputs 2022-02-25 13:35:23 +01:00
Ferran Recio d7df919a2c MDL-73697 core_courseformat: fix weeks format this week badge 2022-02-02 09:25:37 +01:00
Ferran Recio 88e17ccad9 MDL-72911 core_courseformat: fix deprecation messages 2021-12-28 12:50:53 +01:00
Ferran Recio 08670beb6e MDL-72819 core_courseformat: change collapsed attribute names 2021-12-21 10:02:40 +01:00
Bas Brands cdb651d46a MDL-71691 core_course: section styling 2021-12-08 13:14:05 +01:00
Ferran Recio c3dbe5a977 MDL-71691 core_course: expand / collapse all sections 2021-12-06 10:55:38 +01:00
Ferran Recio 3d2a6eacae MDL-71779 core_courseformat: reactive add and delete sections 2021-10-28 16:41:17 +02:00
Ilya Tregubov 0350d42610 MDL-71211 core_course: Keep the status of course index. 2021-10-19 13:17:25 +02:00
Ilya Tregubov f2e28c0561 MDL-71037 course: Make sections collapsible for Topics/Weeks format. 2021-09-21 18:41:59 +02:00
Ferran Recio 21d93554d4 MDL-71863 courseformat: create courseformat subsystem 2021-06-28 13:50:18 +02:00