407 Commits

Author SHA1 Message Date
Mikel Martín
a973ea46d7 MDL-81825 core: Replace sr_text() with visually_hidden_text()
In core renderer, replace 'sr_text' method with 'visually_hidden_text' to be
consistent with Bootstrap 5 upgrade.
2024-12-10 14:02:34 +01:00
Mikel Martín
f9abc562f5 MDL-81825 theme_boost: Refactor .sr-only usages for BS5
- Add .visually-hidden to the Boostratp 5 bridge SCSS file
- Replace .sr-only occurrences with .visually-hidden
- Replace .dropzone-sr-only-focusable  with .dropzone-visually-hidden-focusable
  for consistency
2024-12-10 14:02:32 +01:00
Khoa Nguyen
c5e4c202f5 MDL-75075 core_tag: Add an option to render tag lists without links 2024-12-10 13:44:17 +07:00
Huong Nguyen
3ffaddc136
Merge branch 'MDL-83128' of https://github.com/paulholden/moodle 2024-12-03 09:31:54 +07:00
Paul Holden
430020f3ba
MDL-83128 blocks: consistently style/align block list icons. 2024-12-02 09:25:16 +00:00
Shamim Rezaie
17201694ef Merge branch 'MDL-75610_main' of https://github.com/marxjohnson/moodle 2024-12-02 15:23:23 +11:00
Huong Nguyen
86c1eaa4ef
Merge branch 'MDL-83786-main' of https://github.com/andrewnicols/moodle 2024-11-25 14:34:25 +07:00
Andrew Nicols
9781d5f392
MDL-83786 navigation: Correct incorrect paren in navfilter
This condition was checking whether navgfilter was true, and the
stringfilter was also true.

In most cases the condition will have actually worked correctly, albeit
by fluke. For users upgrading or otherwise missing the navfilter
configuration this condition led to warnings.
2024-11-22 08:36:17 +08:00
Simon Adams
776d1e40e4 MDL-71378 mod_qbank: Add question bank management 2024-11-15 15:18:47 +00:00
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
Huong Nguyen
5c9cf0955f
Merge branch 'MDL-63219v3-main' of https://github.com/michael-milette/moodle 2024-10-31 11:21:43 +07:00
Mikel Martín
93285b103c
MDL-83477 output: Deprecate t/collapsedcaret icon 2024-10-22 09:28:27 +07:00
Sara Arjona
3f9087a161
Merge branch 'MDL-83318-main' of https://github.com/aanabit/moodle 2024-10-03 08:11:10 +02:00
Amaia Anabitarte
76f84a929d MDL-83318 pix: Recover previous and next icons 2024-10-02 15:14:36 +02:00
meirzamoodle
3229dda3d6 MDL-83332 core: Revert the slashargument removal on MDL-62640
Removing the option causes issues on MacOS.
2024-10-02 18:36:14 +07:00
Michael Milette
b2d59a0372 MDL-63219 Output: Enable filters in custom menus. 2024-09-30 18:12:20 -04:00
Huong Nguyen
7c3c18c4e8
Merge branch 'MDL-62640-main' of https://github.com/meirzamoodle/moodle 2024-09-26 11:06:55 +07:00
Jake Dallimore
9a293aae34
Merge branch 'MDL-80746-main-update-rebased' of https://github.com/mihailges/moodle 2024-09-25 14:45:26 +08:00
Jake Dallimore
0504fd353b MDL-80746 core: make comboboxsearch a named_templatable
This class was rolling its own version of get_template_name, which
meant that calling code needed to first call get_template and was forced
to use render_from_template(). This fixes that by implementing the
named_templatable interface and the get_template_name method. Now,
renderables that extend comboboxsearch can just be passed to render()
for rendering.
2024-09-25 12:47:07 +08:00
Huong Nguyen
5f2d20ef64
Merge branch 'MDL-72856-main' of https://github.com/michael-milette/moodle 2024-09-25 08:58:04 +07:00
meirzamoodle
4d2ad0bff7 MDL-62640 core: Adjust code for slashargument removal 2024-09-25 08:30:18 +07:00
Andrew Nicols
11216cc711
MDL-83164 core: Add support for namespaced renderer methods 2024-09-23 21:35:13 +08:00
Huong Nguyen
cb4e621ce9
MDL-80890 AI: Course Assistance Placement
Co-authored-by: Matt Porritt <pozze30@gmail.com>
2024-09-19 09:30:10 +07:00
Huong Nguyen
15cc34791c
Merge branch 'MDL-83124-main' of https://github.com/sarjona/moodle 2024-09-17 08:45:59 +07:00
Sara Arjona
086757bd8c
MDL-83109 theme: Update core:t/completion_fail icon and resize it
This commit:
- Updates core:t/completion_fail from fa-times to fa-xmark
- Reduces the font size of course index completion icons from 12px to 10px.
2024-09-13 16:14:55 +02:00
Sara Arjona
da28389a59
MDL-83124 theme: Revert t/move icon to arrows-up-down
Change the core:t/move icon from four-directional arrows (up-down-left-right)
to two-directional arrows (up-down) to reduce confusion, as it is used in areas
where drag-and-drop functionality is not supported
2024-09-13 16:10:08 +02:00
Huong Nguyen
ff39465628
Merge branch 'MDL-83084-main' of https://github.com/sarjona/moodle 2024-09-13 09:57:13 +07:00
Jun Pataleta
f416dc4c6a
Merge branch 'MDL-83068-main' of https://github.com/sarjona/moodle 2024-09-12 16:22:04 +08:00
Sara Arjona
b82d814ef2
MDL-83084 theme: Update the view category icon 2024-09-10 16:48:42 +02:00
Sara Arjona
a9cdd7384f
MDL-83083 theme: Revert preview icon
In MDL-82211, the preview icon was updated to use the "fa-regular fa-eye" icon.
However, this icon is also used elsewhere to represent hide/show functionality,
leading to potential confusion.
To address this, the UX team has requested that the change be reverted, and the
preview icon should now be replaced with "fa-magnifying-glass-plus".
2024-09-10 15:55:41 +02:00
Sara Arjona
64b0c39c88
MDL-83068 theme: Update grade icons
The fa-check-double icon for correct/incorrect/partial grades were updated
in MDL-82497. However, the UX team has decided to replace these icons with
the following:

 - core:i/grade_correct : fa-check-double --> fa-regular fa-circle-check
 - core:i/grade_incorrect : fa-xmark --> fa-regular fa-circle-xmark
 - core:i/grade_partiallycorrect : fa-check --> fa-circle-half-stroke

These changes should be consistent with the Navigation quiz block too.
2024-09-10 15:18:46 +02:00
Michael Milette
dff8969548 MDL-72856 lib: Only inject one robots/noindex in head of Additional HTML 2024-09-04 12:29:51 -04:00
Laurent David
7384a8bbad MDL-82490 core_output: Add disabled option for url_select
* Add a way to disable (and enable later) option in the url select
selector.
2024-09-02 17:43:33 +02:00
Ilya Tregubov
99dd18c4c3 Merge branch 'MDL-82837-main' of https://github.com/HuongNV13/moodle 2024-08-29 10:00:05 +08:00
Huong Nguyen
7bfa32276a
MDL-82837 output: Use the correct icons for block drawer 2024-08-28 09:36:19 +07:00
Jun Pataleta
76cacbd856
Merge branch 'MDL-82297-main' of https://github.com/laurentdavid/moodle 2024-08-27 10:00:31 +08:00
Laurent David
29b2bfe51f MDL-82297 core: Improve core notification message
* Improve the notification message so it can have a
title and titleicon.
2024-08-26 14:49:02 +02:00
Huong Nguyen
bb8037c457
Merge branch 'MDL-80747-main' of https://github.com/rezaies/moodle 2024-08-26 10:05:06 +07:00
Shamim Rezaie
0d23024ad0 MDL-80747 output: Inline labels in the single-select combobox widget 2024-08-23 01:29:49 +10:00
Shamim Rezaie
c171c6ef6b MDL-80747 output: Support dividers in the single-select combobox widget 2024-08-23 01:29:49 +10:00
Sara Arjona
9f63a03d93
MDL-82212 core: Add a mechanism to deprecate icons
A new method, get_deprecated_icons(), has been added to the icon_system class.
All deprecated icons should be registered through this method.
When $CFG->debugpageinfo is enabled, a console message will display a list of
the deprecated icons.
2024-08-21 07:05:13 +02:00
Jake Dallimore
45faf93d87
Merge branch 'MDL-82778-main' of https://github.com/andrewnicols/moodle 2024-08-20 11:07:13 +08:00
Jun Pataleta
99f7cb0a8a
Merge branch 'MDL-82532-main' of https://github.com/sammarshallou/moodle 2024-08-20 11:04:11 +08:00
Huong Nguyen
dca18ebca3
Merge branch 'MDL-81634-main' of https://github.com/andrewnicols/moodle 2024-08-20 09:30:44 +07:00
sam marshall
525b635cfc MDL-82532 Profile: Capability to allow/prevent view of profile images
Introduces a new capability moodle/user:viewprofilepics, granted by
default to 'user' and 'guest'. If the 'forcelogin' option or
'forceloginforprofileimage' option is enabled, then users must have
this capability in order to see profile pictures (except their own).
2024-08-19 15:42:16 +01:00
Andrew Nicols
d85201adcb
MDL-82778 core: Update core/fetch module to use Class 2024-08-15 22:45:47 +08:00
Sara Arjona
ab0d18eb00
Merge branch 'MDL-75671-main' of https://github.com/roland04/moodle 2024-08-13 09:20:47 +02:00
Ilya Tregubov
fbbd99c21e Merge branch 'MDL-82497-main' of https://github.com/sarjona/moodle 2024-08-13 10:53:46 +08:00
Mikel Martín
0a03018116 MDL-75671 theme_boost: Refactor spacing classes for BS5
- Add SCSS code for spacing utility classes to the Boostrap 5 bridge SCSS file
- Replace all occurrences in the codebase (pr-1 > pe-1, ml-auto > ms-auto, ml-sm-3 > ms-sm-3, ...)
2024-08-09 07:40:17 +02:00
raortegar
01fde971ad MDL-81718 core: Improve localstorage validation 2024-08-07 04:12:45 +00:00