Huong Nguyen
58ced4add0
MDL-75316 core_moodlenet: Share to MoodleNet modal and activity menu
...
Originally implemented as MDL-75785
2023-04-18 17:05:07 +08:00
Marina Glancy
8fc1486d36
MDL-77164 various: fix incorrect phpdocs
2023-04-13 11:35:06 +01:00
Jun Pataleta
a482fb4488
Merge branch 'MDL-75903' of https://github.com/paulholden/moodle
2022-11-18 11:28:31 +08:00
Paul Holden
94818dd23f
MDL-75903 output: increase precision of primary active node matching.
...
Co-authored-by: Mikel Martín <mikel@moodle.com >
2022-11-14 17:31:26 +00:00
Stevani Andolo
b554773b0a
MDL-76099 core_navigation: allow setting selected course overflow node
...
Allow pages to choose which course reuse overflow node is selected, to
handle cases where the default selection (based on matching PAGE->url
to the node action URL) isn't possible (such as when several pages need
to exist under the same selected node).
2022-11-09 15:15:50 +08:00
Paul Holden
d53b5879ca
MDL-75897 output: safer checking of course reuse action nodes.
...
Also ensure that if course reuse contains only a single node (e.g.
reset), then it is still accessible from secondary navigation.
Co-authored-by: Meirza Arson <meirza.arson@moodle.com >
2022-10-20 11:08:22 +01:00
Stefan Hanauska
8e371f138a
MDL-75714 navigation: Check if node is false
2022-09-14 23:35:15 +02:00
Jake Dallimore
c3aae36612
MDL-74901 core_navigation: support callbacks in frontpage secondary nav
...
Fixes the site home secondary nav, so that nodes added by plugins
implementing the PLUGIN_extend_navigation_frontpage callback can be
displayed for users who don't have the 'course:update' capability.
This change comprises:
- Removed course:update capability checks from site home (index.php)
and from the secondary nav view. This isn't needed since the nav is
capability aware.
- Fixed the initialisation of the secondary nav for the frontpage
course, removing erroneous duplicate 'home' nodes. The nav is now only
shown if there are nodes to display.
2022-07-25 15:06:14 +08:00
Alexey
25b5125187
MDL-74522 lib/classes/navigation fix Navbar My courses data-key value
2022-06-07 16:29:31 +03:00
Peter Dias
40ad488405
MDL-74407 navigation: Perform a strict array_search for node keys
...
Perform strict array_search due to conflicting results in versions <php8.0
2022-04-14 12:25:15 +08:00
Mihail Geshoski
93aa5ab03e
MDL-74386 navigation: Do not load course navigation in system context
2022-04-08 15:02:01 +08:00
Mihail Geshoski
d5a48c941e
MDL-74208 navigation: Avoid showing empty menu in single activity course
...
The following change prevents showing the 'Course' item (dropdown) in
the secondary navigation if this dropdown does not contain any items
when using the single activity course format.
2022-04-04 15:46:18 +08:00
Mihail Geshoski
eac7fa895e
MDL-74266 navigation: Perform strict check whether key exists in array
2022-03-25 16:06:24 +08:00
Jun Pataleta
1e533995dd
Merge branch 'MDL-73233-master' of https://github.com/sarjona/moodle
2022-03-18 00:35:11 +08:00
Sara Arjona
c612f121a0
MDL-73233 navigation: Hide Dashboard from primary nav
...
When the $CFG->enabledashboard is disabled, the "Dashboard"
menu option won't be displayed in the primary navigation.
2022-03-16 11:35:07 +01:00
Mihail Geshoski
7066c7618c
MDL-74216 navigation: Do not show 'My courses' in primary nav to guests
2022-03-16 18:16:58 +08:00
Shamim Rezaie
c6a74d4752
MDL-74033 theme_boost: Ability to remove primary nav items in boost
2022-03-08 11:39:38 +11:00
Jun Pataleta
7ac5deaced
Merge branch 'MDL-73462-master' of https://github.com/peterRd/moodle
2022-03-02 13:46:10 +08:00
Peter Dias
4d5a25ffde
MDL-73462 navigation: Leverage participants bar for category
2022-03-02 12:27:02 +08:00
Jun Pataleta
d8cadf7ecf
Merge branch 'MDL-73462-master' of https://github.com/peterRd/moodle
2022-03-01 18:32:05 +08:00
Peter Dias
b9f9aae134
MDL-73462 course: Update visible nodes in a cat context.
2022-03-01 17:57:24 +08:00
Peter Dias
f1959af7f6
MDL-73462 course: Introduce course category tertiary navigation
...
Update the category management page.
2022-03-01 17:57:24 +08:00
Ilya Tregubov
127655326e
Merge branch 'MDL-73978-master' of https://github.com/peterRd/moodle
2022-02-28 09:18:27 +02:00
Peter Dias
109c5f70a1
MDL-73978 navigation: Update the scoping when adding nodes
...
Make sure to use the rootnode variable that is being passed specifically for single activity course formats
2022-02-23 13:35:52 +08:00
Peter Dias
3139741a43
MDL-73743 navigation: Update primary set_active_node
...
Account for the situation where we are in the site course and viewing course type options.
2022-02-23 08:03:22 +08:00
Mathew May
25699339d9
MDL-73743 navigation: Add more nav nodes to site home
2022-02-23 08:03:22 +08:00
Ilya Tregubov
4f4bb7303a
Merge branch 'MDL-73273-master' of https://github.com/peterRd/moodle
2022-02-21 11:15:33 +02:00
Mihail Geshoski
cc2769ad94
MDL-73532 navigation: Fix the secondary navigation highlighting
...
Fixes the highlighting of the items the secondary navigation menu
in the single activity course format.
2022-02-18 18:11:14 +08:00
Jun Pataleta
6b65550240
Merge branch 'MDL-73373-master' of https://github.com/peterRd/moodle
2022-02-16 21:14:26 +08:00
Peter Dias
bdf4f8a651
MDL-73273 navigation: Add checks to enforce action param types
...
* Added checks in navigationlib to enforce the data type of the passed in action
* Add nodes with non moodleurls to the end of the secondary nav
2022-02-15 11:30:07 +08:00
Mihail Geshoski
98c89410f9
MDL-73532 navigation: Secondary navigation for single activity course
...
Creates secondary navigation dedicated for the single activity course
format. To accomodate these chanages a new property
'showchildreninsubmenu' is introduced in navigation_node which can be
used to define whether the node's children should be displayed in a
submenu when applicable. Also, new method get_page() is added in
settings_navigation which can be used to get the $page class property.
2022-02-14 09:35:03 +08:00
Jun Pataleta
7d743b255d
Merge branch 'MDL-73633-master' of git://github.com/mihailges/moodle
2022-02-09 17:45:54 +08:00
Peter Dias
81492f900f
MDL-73373 roles: Enable tertiary navigation in module context
2022-02-08 09:04:04 +08:00
Jun Pataleta
4e1a6e6830
Merge branch 'MDL-73646-master-v2' of https://github.com/sharidas/moodle
2022-02-03 19:09:37 +08:00
Sujith Haridasan
3eda637c44
MDL-73646 navigation: Fix breadcrumbs for site admin
...
Fix the breadcrumbs for site administration page.
Created a new public method get_active_method for the same.
2022-02-02 10:56:16 +05:30
Mihail Geshoski
1c8cf75c47
MDL-73633 navigation: Force 'Overrides' into the more menu by default
...
Forces the 'Overrides' item to be always displayed within the 'more'
menu in the secondary navigation in the module context.
2022-02-01 23:42:04 +08:00
Michael Hawkins
537e31cf96
MDL-73452 navigation: Update to Course reuse string in secondary nav
...
Previously this used the "Course administration" string, which causes
some confusion for those familiar with the older usage of that string.
A new "Course reuse" string has been added to better reflect what is
being linked to in course secondary navigation.
2022-02-01 21:10:59 +08:00
Sara Arjona
a654a1674a
Merge branch 'MDL-73366-master' of git://github.com/abgreeve/moodle
2022-01-17 09:00:24 +01:00
Andrew Nicols
4f0b70ba6d
Merge branch 'MDL-73316' of https://github.com/Chocolate-lightning/moodle
2022-01-17 14:16:12 +08:00
Adrian Greeve
4870b363b0
MDL-73366 navigation: Changed the first tab of site administration.
...
It now reads "General" instead of "Site administration"
2022-01-17 11:52:13 +08:00
Mathew May
76eaf6ee5f
MDL-73316 contentbank: Add in secondary navigation
2022-01-12 13:54:57 +08:00
Mathew May
a9952cfe4c
MDL-73316 navigation: Add homepagesecondary nav
2022-01-12 13:54:57 +08:00
Jun Pataleta
7c710d6c6e
Merge branch 'MDL-73487-master' of git://github.com/mihailges/moodle
2022-01-07 11:02:01 +08: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
abgreeve
060e5dedee
MDL-72930 navigation: Change over old code to use new static methods.
...
This removes the old and less good methods for retrieving an array
for use with a url_select and uses the newer better ones instead.
2022-01-04 15:58:52 +08:00
abgreeve
f17b124b7b
MDL-72930 navigation: Creation of new secondary nav methods
...
This adds new static methods for general use when dealing with
third party navigation nodes that have been added via callbacks.
2022-01-04 15:58:52 +08:00
Mihail Geshoski
cb9e513ee5
MDL-73487 navigation: Remove outcomes from course admin overflow nodes
2022-01-04 14:57:06 +08:00
Peter Dias
96dd6c9c94
MDL-72904 core_badges: Introduce tertiary navigation for badges
2021-12-23 21:02:01 +08:00
Andrew Nicols
873000b23b
Merge branch 'MDL-73329' of https://github.com/paulholden/moodle
2021-12-15 09:34:34 +08:00
Mathew May
54e098c5a5
MDL-73231 my: Allow my courses to be a homepage
2021-12-13 22:43:28 +08:00