306 Commits

Author SHA1 Message Date
Huong Nguyen
82b661d8fa
Merge branch 'MDL-79467' of https://github.com/paulholden/moodle 2023-09-27 10:44:02 +07:00
Sara Arjona
cc9430929d
MDL-77708 docs: Update references from docs.moodle.org/dev 2023-09-26 10:30:19 +02:00
Paul Holden
379bac1fe7
MDL-79467 output: handle empty sitename display during installation.
Causes PHP warnings when null on PHP 8.1.
2023-09-22 14:32:11 +01:00
Jun Pataleta
1eb8ee32bb
MDL-78806 core: Remove redundant site name
MDL-78806 core: Remove redundant site name on page titles

* With the site name now being appended to the page titles, there
is no need to manually append the page titles.
2023-09-09 08:58:54 +08:00
Jun Pataleta
ff553e5cf4
MDL-78806 core: Append site name on page title 2023-09-09 08:58:54 +08:00
David Woloszyn
0662dfadbe MDL-77793 lib: Removed uses of deprecated functions for themes 2023-06-19 16:32:51 +10:00
Eloy Lafuente (stronk7)
30e94a8916 MDL-77953 pagelib: Ensure that null $SCRIPT continues behaving the same
It's possible to have some Moodle components soft linked instead
of being real directories within codebase (within dirroot).

For example, Composer's "vendor" directory can be soft linked
(from elsewhere), or also plugins can be installed using soft
links.

In those cases, Moodle calculates the $SCRIPT global as null. And,
then, string operations on it are emitting a PHP deprecation message
with PHP 8.1 and up.

This fix just ensures that the behaviour is the same than before
PHP 8.1, aka: ltrim(null) = '' (empty string), without any PHP warning.
2023-04-18 18:48:58 +02:00
Marina Glancy
8fc1486d36 MDL-77164 various: fix incorrect phpdocs 2023-04-13 11:35:06 +01:00
Marina Glancy
6b081d2e9f MDL-74465 blocks: allow configuration in modal
Introduce 'pagehash' - an identifier that uniquely identifies a page for the user session
2023-03-30 12:15:54 +01:00
Paul Holden
91c49cb836 MDL-75904 admin: ignore $CFG->allowcategorythemes during installation. 2022-10-21 22:32:12 +01:00
hieuvu
94c2a52528 MDL-75844 moodle_page: add a modname to body tag. 2022-09-30 08:42:36 +07:00
sam marshall
96e2caeaa2 MDL-74733 core_navigation: Secondary nav in plugins, change namespace
Secondary nav previously had to be in my_plugin\local\views\secondary; this
location continues to work but is deprecated. The new location is
my_plugin\navigation\views\secondary.
2022-06-08 15:40:44 +01:00
Michael Hawkins
a0c6b4a174 MDL-74078 core: Add the ability to lock all blocks on a page 2022-04-01 15:12:56 +08:00
Ilya Tregubov
a5ef320720 Merge branch 'MDL-74071' of https://github.com/paulholden/moodle 2022-03-16 13:57:59 +06:00
Ilya Tregubov
4e90732ebe Merge branch 'MDL-73344-master' of https://github.com/peterRd/moodle 2022-03-16 10:05:03 +06:00
Jun Pataleta
6937d87ddd MDL-72481 admin: Render the site admin navigation menu as tablist
only render the secondary nav as tablist if it is for the site admin tabs

Co-authored-by: Shamim Rezaie <shamim@moodle.com>
2022-03-15 12:48:21 +11:00
Peter Dias
5bb98d99ec MDL-73344 reports: Include the user/report node based on context
Properly indicate the report node based on context.
2022-03-08 13:59:00 +08:00
Paul Holden
7f3d270a37 MDL-74071 output: code docs for activity header API to aid IDE hints. 2022-03-03 09:59:57 +00:00
Adrian Greeve
0a04ebde11 MDL-72930 navigation: Remove duplicated navigation boxes.
Some pages have settings that really aren't required anymore.
These have been removed and a function has been aded so that other
developers can turn off the navigation overflow if they want.
2022-01-04 15:58:52 +08:00
Peter Dias
a2d8ac6eea MDL-72413 core: Introduce new header component to render standard items
New activity header to render common module items in a centralised location.
2021-12-13 09:49:34 +08:00
Bas Brands
d1b9f7d1f1 MDL-71965 theme_boost: move footer content in popover 2021-10-06 11:32:08 +02:00
Sujith Haridasan
c1a2df7f64 MDL-72396 core: Allow setting of active tab
Allow easy setting of active tab for the navigation
views.
2021-09-17 12:37:42 +05:30
Peter Dias
f4d3606a2e MDL-71901 core: Allow blocks to specify their own nav
- Part of: MDL-69588
2021-08-23 17:47:01 +08:00
Peter Dias
d91183883e MDL-71901 core: Load plugin specific secondary nav
- Part of: MDL-69588
Try to search and load a plugin specific version of secondary nav
2021-08-23 17:46:40 +08:00
Bas Brands
17e9d4a51a MDL-70202 theme_boost: push secondary navigation in admin search page
- Part of: MDL-69588
2021-08-23 17:46:39 +08:00
Peter Dias
6462e651e4 MDL-71148 core_navigation: New renderer to combine nav components
- Part of: MDL-69588
2021-08-23 17:45:55 +08:00
Peter Dias
f8f83eae0e MDL-70207 core_navigation: Initial backend for primary navigation 2021-04-06 11:45:44 +08:00
Peter Dias
683e7b2aaf MDL-70198 core_navigation: Implement secondary nav and curate nodes
Implement the new secondary nav and curate the nodes from flatnav and settingsnav
2021-03-17 13:32:53 +08:00
Paul Holden
b14cca8a24 MDL-69993 output: correct navigation node type for user reports. 2020-10-23 08:04:44 +01:00
Marina Glancy
cd467644eb MDL-69464 core_output: allow to avoid formatting in page->set_heading 2020-08-20 14:56:08 +02:00
Tim Hunt
f883c681ff MDL-68645 output: Make module generators fail if they init the output
The coding exception hint should say it all. Creating an activity module
should not need any output function call. It turned out it can lead to
hard-to-debug bugs and unexpected behaviour. So better to explicitly
fail and let the developer fix the code.
2020-05-13 10:03:01 +02:00
Farhan Karmali
caf5ebb582 MDL-67024 Lib: Check if user->mnethostid is set before using it 2020-03-20 11:59:04 +05:30
Ryan Wyllie
c77d1ae40f MDL-66477 mod_forum: move region main settings menu to header
Add a generic way to render actions in the page content header
and then moved the region main settings menu there for the forum.
2019-09-27 15:38:54 +08:00
Jun Pataleta
b6e465c870 MDL-46267 core: https_required, verify_https_required final deprecation 2019-07-22 10:59:38 +08:00
Mathew May
c8edee421e MDL-64506 theme_bootstrapbase: Remove bootstrapbase from core 2019-04-03 19:34:17 +08:00
Sara Arjona
88cb8b781d MDL-61601 cohort: Add theme support for cohorts
If enabled $CFG->allowcohortthemes, then themes can be set at the cohort level.
This will affect all users with only one cohort or more than one but with the same theme.
The default theme order will be: course, category, session, user, cohort, site.
2018-04-06 08:28:01 +02:00
John Okely
672f483670 MDL-42834 admin: Removal of httpswwwroot 2017-10-23 12:25:36 +08:00
John Okely
4b501ec96b MDL-42834 admin: Deprecate https_required and verify_https_required 2017-10-23 12:25:35 +08:00
Jake Dallimore
273d310601 MDL-58138 completion: Fixes for a number of small issues. 2017-04-19 11:41:57 +08:00
Marina Glancy
06cdda468a MDL-58139 completion: bulk update completion
Part of MDL-58138 epic
2017-04-19 08:52:57 +08:00
Frederic Massart
36e6789b27
MDL-57101 filter: Load globally available filters on every page
Previous commits were overlooked, they should have passed the
system context to filter_manager::setup_page_for_fitlers(), the
page context was passed instead. Regardless, the processing of
the latter is too excessive for what we need, but, more importantly,
it does not return "Off, but available" filters which we also need.
2016-12-01 14:51:40 +08:00
Frederic Massart
e37c128686
MDL-57101 filter: Always set-up the page for filters 2016-11-29 12:36:28 +08:00
Adrian Greeve
839b391f74 MDL-56489 Lib: force_settings_menu added to pagelib.
This introduces a flag to force the settings menu
to be displayed on the page if the theme uses a settings
menu. This is for use by activities and resources.
2016-11-01 10:00:12 +08:00
Damyon Wiese
99061152af MDL-55074 theme_boost: Navigation and blocks
This patch includes a big set of changes that are all designed to work together to provide
a better way to navigate in the new theme, and a different way of working with blocks.

Blocks have been moved to a "drawer" that can be opened and closed (this is remembered in a user pref).

A new "flat navigation" element is also available in a drawer - which should let you do 90% of things
without needing to open the "blocks" drawer.

The flat navigation is build from specific parts of the nav tree - the top nodes like "calendar, dashboard" are
hand picked. There is a mycourses node listing your enrolled courses.

There is a node for the current course, built from the top nodes in the current course node in the nav tree.

Administrators have a link to the Site admin settings here too.

These nav elements are used by the templates for the new theme, which also has a resigned layout for login and signup.

There have also been some additional fixes / improvements to the scss for the new theme which goes along with these
layout changes.

This set of changes is a collaboration between Martin, Damyon and Alberto (thanks!).
2016-10-21 12:37:33 +08:00
Ryan Wyllie
607454d6f3 MDL-54708 message: change popover processor to nav bar notification 2016-10-07 16:26:40 +08:00
Mark Nelson
466a1713a0 MDL-52035 core: added ability to override pagelayout
This is required by the LTI plugin when we share an
activity. We do not want the user to be shown the
navigation blocks etc. The activity should be the
only thing displayed.
2016-04-26 12:08:31 +08:00
Damyon Wiese
e02e7f5a01 MDL-53772 libraries: More context fixes
1. Improve upgrade note
2. Don't abuse $PAGE to get the current course/cm
3. Use validate_context, never $PAGE->set_context()
4. Reset current coursemodule in validate_context().
5. Respect moodlepageclass when calling an external function.
2016-04-14 15:02:41 +08:00
Damyon Wiese
56fa860ead MDL-53772 externallib: Fix busted webservices context handling
Fix:
$PAGE->context must be reset when calling validate_context

Improve:
Provide wrapper for calling an external function

The wrapper correctly checks the function parameters and return type against
the description of the external function, and stores the PAGE and COURSE global
state variables, restoring them before the function returns.

Fix: buggy unit tests.

These tests are expecting debugging from a bug that was fixed, and calling web
service functions with no user or session.
2016-04-14 13:58:23 +08:00
Dan Poltawski
0729ea9fd7 Merge branch 'wip-MDL-53274-master' of https://github.com/marinaglancy/moodle 2016-03-29 17:12:42 +08:00
Marina Glancy
67fc782fe8 MDL-53274 core: in AJAX throw exception if page context was not set 2016-03-18 08:08:50 +08:00