845 Commits

Author SHA1 Message Date
Amaia Anabitarte
36b865b3d9 MDL-78746 formslib: add variables to addHelpButton()
addHelpButton() function should allow to get variables to pass to get_string
to improve help button text.
2023-08-11 11:13:29 +02:00
Ferran Recio
a586e952ff MDL-78282 output: new sr_text renderer method
Some output classes require pre-rendered elements. In some cases, those
elements require some screen reader extra texts (especially in buttons).
The st_text method allow the outputs to create those inline tags without
using html_writer. Furthermore, the current screen reader classes are
based on bootstrap, having them isolated in renderer methods allow
themes to implement alternatives accessibility HTML structures.
2023-07-26 15:44:28 +02:00
Shamim Rezaie
316d79d038 MDL-77375 core: Cleanup redundant set_constraint() calls
Also removed the 10rem bottom margin form the quiz editing page. It was
there to make sure that there is enough room for the 'add new question'
dropdown. But it's not needed anymore (hasn't been since long time ago).
2023-07-02 00:41:22 +10:00
Petr Skoda
3c25ccdcd1 MDL-78552 core: tidy up MDL_PERF constants
* all constans usable in ABORT_AFTER_CONFIG should be always defined
* MDL_PERFDB and $PERF->logwrites not used after legacy log removal
* MDL_PERF_TEST should be documented in codebase
* deprecated warnings in shutdowb manager
2023-06-25 08:39:09 +02:00
Jake Dallimore
cff9ba572e
Merge branch 'MDL-78475' of https://github.com/paulholden/moodle 2023-06-15 11:48:58 +08:00
Paul Holden
a45f9d5076
MDL-78475 communication: earlier install check for rendering links. 2023-06-14 12:34:21 +01:00
Ferran Recio
0eaaf40f10 MDL-78175 output: new paragraph renderer method
Many main php files still uses html_writer('p...) to render a simple
paragraphs below or under other elements like forms. In many cases those
texts could be part of a template but there are may scenarios were
creating a full template for a simple paragraph is too much. However,
the html_writer is too limiting as plugins cannot provide their own
implementation. This new method in the renderer is a good in between
solution.
2023-05-29 09:26:04 +02:00
Jun Pataleta
fe69b61828 Merge branch 'MDL-78169-master' of https://github.com/andrewnicols/moodle 2023-05-25 11:50:22 +08:00
Andrew Nicols
53577b678c
MDL-78169 core: Immediate deprecation of htmllize_file_tree
This should have been done back in 2010 as part of MDL-22950. It has not
been called in that time, and is entirely untested and untestable.
2023-05-12 15:17:47 +08:00
Safat
ad5c10016a MDL-77576 core_course: Implement communication api
This commit implements the core communication api in the
core course to create or update matrix roomand its members
according to course settings. This commit will add the
communicaiton room in the course so that users can access
communication room from course.

Originally implemented as MDL-76702, MDL-76705 and MDL-76703.

Co-Authored-By: David Woloszyn <david.woloszyn@moodle.com>
Co-Authored-By: Safat Shahin <safat.shahin@moodle.com>
2023-05-11 13:35:16 +10:00
Marina Glancy
8fc1486d36 MDL-77164 various: fix incorrect phpdocs 2023-04-13 11:35:06 +01:00
Marina Glancy
a507a9e68a MDL-74465 blocks: changes for backward-compatibility 2023-03-30 12:15:55 +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
Juan Leyva
27be439eb7 MDL-73708 course: Return geo pattern generated course images via WS 2023-03-22 17:39:07 -03:00
Roberto Bravo
25c2d17157 MDL-77370 admin: Add a new setting for Support contact 2023-03-02 12:58:07 +01:00
Ilya Tregubov
2e9025e90d MDL-75379 core: Code style changes. 2023-02-16 10:49:24 +08:00
Lars Bonczek
0a704a6b03 MDL-75379 core: Use non-static template cache 2023-02-13 12:33:33 +01:00
Laurent David
fc72a1d7b1 MDL-75337 core: Single button - core changes
* Change all core calls toward single_button to use single_button::BUTTON_PRIMARY
    when needed
2023-01-24 06:01:35 +01:00
Mathew May
d83fcf1976 MDL-76134 core: Provide a option to render initials bars smaller 2023-01-09 09:22:20 +08:00
Michael Hawkins
e3b3ba90c8 MDL-74643 core_user: New admin setting for site support availability
This allows admins to configure whether contact site support is
available to everyone, authenticated users, or nobody.

The behat testing checks linked and direct access for each setting,
as well as adding testing that the support page override works as
expected.
2022-10-31 18:58:06 +08:00
Jun Pataleta
cd1b2e5eaf MDL-75841 core: Don't fetch favicon setting on install 2022-09-28 12:41:45 +08:00
Sara Arjona
33277f99f1 Merge branch 'MDL-74010' of https://github.com/paulholden/moodle 2022-09-14 11:41:42 +02:00
Michael Hawkins
c43123adde MDL-68066 output: Apply disable lambda rendering to Mustache renderer 2022-09-07 23:54:24 +08:00
Daniel Neis Araujo
7adac1fefb MDL-75218 theme: Add a Favicon setting 2022-08-29 09:35:54 -03:00
Paul Holden
a65476d590 MDL-74010 core: check defined MDL_PERF* values in conditionals. 2022-08-05 11:02:54 +01:00
Paul Holden
a65549d0b3 MDL-75031 output: swap order of buttons in confirmation prompts.
As per ff6e5cc7, the primary button "Continue" should be displayed
on the right hand site of the confirmation prompt.
2022-07-25 11:56:29 +01:00
Sujith Haridasan
73d604369d MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
Mihail Geshoski
ca1fe2afa3 MDL-74813 filepicker: Replace the dnd gif animation with a static icon 2022-07-06 10:17:04 +08:00
Víctor Déniz
32a995faf2 Merge branch 'MDL-72885-master-2' of https://github.com/junpataleta/moodle 2022-06-29 19:03:00 +01:00
Paul Holden
f70fc89217 MDL-74565 gradereport_grader: define capability required for editing. 2022-06-12 20:04:28 +01:00
Sara Arjona
ef9368967f Merge branch 'MDL-74577-master' of https://github.com/sharidas/moodle 2022-06-10 13:11:52 +02:00
Jun Pataleta
326d502c5c MDL-72885 output: Add lang attribute for language custom menu items 2022-05-27 19:38:54 +08:00
Adrian Perez
43847787e0 MDL-74250 core: Improve indicator that link opens in new window 2022-05-27 07:21:54 +02:00
Sujith Haridasan
9812b4bbaa MDL-74577 core: Reset login_failed_count_since_success after login
When the user is logged in successfully then reset the value
of login_failed_count_since_success to zero, if the value of
login_failed_count_since_success is greater than zero.
2022-05-20 10:12:42 +05:30
Sara Arjona
d60e802006 MDL-74159 output: Add icon near docs link
An icon has been added near the 'Help and documentation' link in the
site footer When the site admin setting 'Open in new window' (doctonewwindow)
is enabled, for consistency with other similar links like 'Give feedback
about this software'.

Apart from that, now the link will be opened using the standard target
'_blank' instead of using the new window Javascript, to let users decide
whether the new page should be opened in a new tab or a new window.
2022-03-10 17:07:32 +01:00
Shamim Rezaie
29c14e979b Merge branch 'MDL-74045-master' of https://github.com/bmbrands/moodle 2022-03-04 10:13:05 +11:00
Bas Brands
a31cade872 MDL-74045 theme_boost: set the base layout to drawers 2022-03-02 11:07:45 +01:00
Andrew Nicols
b43d729c85 MDL-73679 core: Add a named_templatable interface
This interface allows a templatable to provide a template name via the
'get_template_name(): string' function and have it automatically
rendered via a standard 'render()' call.
2022-03-01 12:03:06 +08:00
Michael Hawkins
533c5ccb86 MDL-73935 core: Update supportemail to accept optional custom attributes
This allows calling code such as the generic error page to define the
styles of the anchor element.
2022-02-28 12:42:47 +08:00
Jun Pataleta
5f19e1e685 Merge branch 'MDL-73608-master' of https://github.com/lameze/moodle 2022-02-18 12:06:13 +08:00
Simey Lameze
8e153111af MDL-73608 user: add contact site support page
AMOS BEGIN
 CPY [subject,mod_forum],[subject,moodle]
 CPY [message,core_message],[message,moodle]
AMOS END
2022-02-18 11:54:44 +08:00
Paul Holden
4ad5dda50d MDL-73822 user: fix Gravatar integration for missing user images. 2022-02-15 20:52:58 +00:00
Mathew May
ecb92c7ed9 MDL-72928 login: Update styling and functionality 2022-02-11 12:01:26 +08:00
Bas Brands
7c76e1c349 MDL-72466 core_output: dropdown menu alignment 2022-01-27 17:24:20 +01:00
Eloy Lafuente (stronk7)
d8b75c3e5e Merge branch 'MDL-73637-master' of https://github.com/ilyatregubov/moodle 2022-01-20 23:30:58 +01:00
Ilya Tregubov
44ff1672a0 MDL-73637 core: Fix broken web installation. 2022-01-20 18:34:19 +02:00
Bas Brands
5e8b258cac MDL-73114 theme_boost: show page title on Dashboard page
replace the page title when the welcome message is shown
2022-01-19 17:36:54 +01:00
Paul Holden
844f4a7fb3 MDL-72716 blocks: fix external fetching of available blocks.
Pass `$PAGE->subpage` value in AJAX request, which is required on
some pages (e.g. user dashboard) for loading existing blocks.
2021-12-29 11:59:27 +00:00
Jun Pataleta
2b962cf691 Merge branch 'MDL-73274-master' of https://github.com/bmbrands/moodle 2021-12-23 11:31:25 +08:00
Simey Lameze
be018b7c42 MDL-72845 core: add services and support link to help popover 2021-12-22 19:46:49 +08:00