Mark Johnson dd25891bda
MDL-75610 output: Fix title display logic in activity header
The display logic for including the title in the activity header was
such that the title would only display if both the theme default and the
layout option for 'notitle' were undefined or false. It was not possible
to a theme to have 'notitle' default to true, but have a layout override
that as false to display the title.

This change re-writes the is_title_allowed method to encapsulte the new
logic, first checking if the current layout has the option set and using
that, and if not falling back to the theme default if that is set. If
neither is set, the title is displayed.

This also tweaks moodle_page::magic_get_layout_options to ensure the
theme is initialised before trying to return the layout options.
2024-11-15 08:31:29 +00:00
..
2024-10-05 15:08:28 +08:00
2024-08-06 16:01:06 +08:00
2024-08-06 16:01:06 +08:00
2024-10-05 15:08:28 +08:00
2024-09-11 11:25:16 +07:00
2024-11-15 09:21:07 +07:00