Commit graph

27 commits

Author SHA1 Message Date
JD
560cea838b MDL-54977 blocks_navigation: Use html_writer::random_id for id
uniqid() may returns the same id for faster machines (seen on iis)
so use html_writer::random_id(), to ensure id is different and
navigation don't break
2016-07-13 14:04:16 +08:00
Cameron Ball
0043daf4ca MDL-53311 block_navigation: Update renderer
The renderer and styles require changes to match the new behaviour
introduced by the modifications to tree.js and the JavaScript renderer.

The PHP renderer now closely matches the JavaScript one, and we now use
the aria-hidden attribute to determine the node state.
2016-05-13 16:01:47 +08:00
Rajesh Taneja
7e341eb48f MDL-50484 block_navigation: Set number to be unique
Set number to be unique for unique id's
in navigation
2016-02-19 14:00:04 +08:00
Ryan Wyllie
5697de1832 MDL-35590 block_navigation: fix keyboard nav
Fixed up the left/right keyboard navigation to match
the aria specification. Also stopped the root node from
being collapsible.
2016-01-29 10:15:26 +08:00
Simey Lameze
6759dc35fe MDL-35590 block_navigation: fix remaining issues 2016-01-22 18:48:04 +08:00
John Okely
f889544657 MDL-35590 block_navigation: Add aria roles to navigation block tree 2016-01-21 10:18:22 +08:00
Syxton
483fb4ec44 MDL-50293 navigation: File name not wrapping
A long File name doesn't always wrap correctly in the Navigation block.
2015-07-16 10:26:19 -04:00
Sam Hemelryk
892e21aadd MDL-36296 block_navigation: consistency fixes
This change fixes a couple of consistency issues in the navigation block.
At the same time it fixes it the CSS for the navigation block as it had
really degraded over the last years.
Notable points about this change:

* Fixed icon display by wrapping content in a span allowing columns to
  be styled.
* Re-wrote the CSS entirely as it could be done much better.
* Fixed inconsistencies between the php and JS for rendering nodes.
2015-02-04 09:04:50 +13:00
Tim Hunt
5bcfd504df MDL-45618 Fix @since PHPdoc tags. 2014-05-19 17:03:04 +01:00
Marina Glancy
3b42c973d7 MDL-38631 link categories in My courses only when needed 2013-06-22 16:27:28 +10:00
Rajesh Taneja
e5c46b5435 MDL-30833 Accessibility: Added aria-expanded attribute on navigation nodes 2012-09-18 17:26:39 +08:00
Andrew Robert Nicols
65dcd906e3 MDL-34322 Don't display empty navigation nodes which have no link 2012-07-13 15:01:39 +01:00
Sam Hemelryk
887fd0e4c7 Merge branch 'MDL-31831' of git://github.com/stronk7/moodle 2012-03-01 14:34:09 +13:00
Eloy Lafuente (stronk7)
5dbfbacc49 MDL-31831 whitespace clean - take2 2012-03-01 02:20:35 +01:00
Adrian Greeve
31fde54fbc MDL-30976 - navigation - Updating the api block documentation. 2012-02-27 08:14:54 +08:00
Sam Hemelryk
13915f89d4 MDL-31224 block_navigation: Fixed display of icons for node with an action_link action 2012-01-20 11:19:25 +08:00
Aparup Banerjee
32561cafd4 MDL-27428 accessibility : made navigation and settings menu category span nodes navigable using tabs with tabindex=0 2011-05-23 11:12:53 +08:00
Sam Hemelryk
8e5c23e04f blocks-navigation MDL-25596 Fixed up redundant AJAX calls when navigation was limited by config 2011-01-06 11:50:01 +08:00
Sam Hemelryk
480f906e25 block-navigation MDL-23838 There is now an option that you can enable so that categories in the navigation are links as well. 2010-12-02 07:13:07 +00:00
Sam Hemelryk
ea2bc3599b navigation MDL-23831 Always show activity icons on the navigation 2010-08-17 02:43:09 +00:00
Sam Hemelryk
31513462b8 navigation MDL-22425 Fixed my courses being shown as an item despite having children 2010-05-18 02:20:51 +00:00
Sam Hemelryk
4766a50c19 navigation MDL-22425 Restructured navigation for the nth time plus performance tweaking and course display limit 2010-05-13 09:57:43 +00:00
Sam Hemelryk
7081714dc4 navigation MDL-22322 Icons not used for navigation branches and fixed indenting of navigation items 2010-05-05 05:59:57 +00:00
Sam Hemelryk
6c721bbfed navigation MDL-22173 Fixed XHTML issue with navbar, and removed redundant ul's from nodes without children 2010-04-27 02:01:38 +00:00
Sam Hemelryk
d24016944f block-navigation MDL-22044 Level 1 branches are no longer indented, and home/myhome link is no longer collapsible. Also fixed the everything bold issue 2010-04-22 07:51:52 +00:00
Sam Hemelryk
88f77c3c26 navigation MDL-22044 Added setting to limit content that is shown on the navigation back into the navigation block 2010-04-21 09:44:16 +00:00
Sam Hemelryk
3406acdef9 navigation MDL-22044 Major navigation structure changes.
Navigation has now been re-ordered in accordance with http://docs.moodle.org/en/Development:Navigation_2.0_structure.
This has led to several changes in the way in which navigation is generated included API changes, most notably using the
navigation_nodes add method now returns the newly added node rather than the key.
At the same time the global_navigation_tree block has been renamed to navigation and settings_navigation_tree to settings.
2010-04-19 06:30:30 +00:00