\n";
break;
}
Index: theme/standard/styles_color.css
===================================================================
RCS file: /cvsroot/moodle/moodle/theme/standard/styles_color.css,v
retrieving revision 1.101
diff -u -r1.101 styles_color.css
--- theme/standard/styles_color.css 8 Aug 2006 05:13:21 -0000 1.101
+++ theme/standard/styles_color.css 25 Aug 2006 16:54:53 -0000
@@ -196,6 +196,10 @@
*** Header
***/
+.breadcrumb li span {
+ color:#aaa;
+}
+
.headerskip a:link,
.headerskip a:visited,
.headerskip a:hover {
Index: theme/standard/config.php
===================================================================
RCS file: /cvsroot/moodle/moodle/theme/standard/config.php,v
retrieving revision 1.18
diff -u -r1.18 config.php
--- theme/standard/config.php 29 Mar 2005 14:20:11 -0000 1.18
+++ theme/standard/config.php 25 Aug 2006 16:54:53 -0000
@@ -121,9 +121,21 @@
/// files from the moodle/pix directory, plus a
/// "pix/mod" directory containing all the icons
/// for all the activity modules.
-////////////////////////////////////////////////////////////////////////////////
+///$THEME->rarrow = '►' //OR '→';
+///$THEME->larrow = '◄' //OR '←';
+///
+/// Accessibility: Right and left arrow-like characters are
+/// used in the breadcrumb trail, course navigation menu
+/// (previous/next activity), calendar, and search forum block.
+///
+/// If the theme does not set characters, appropriate defaults
+/// are set by (lib/weblib.php:check_theme_arrows). The suggestions
+/// above are 'silent' in a screen-reader like JAWS. Please DO NOT
+/// use < > » - these are confusing for blind users.
+////////////////////////////////////////////////////////////////////////////////
+
// These colours are not used anymore, so I've set them to
// bright green to help identify where they should be removed
Index: lib/weblib.php
===================================================================
RCS file: /cvsroot/moodle/moodle/lib/weblib.php,v
retrieving revision 1.614
diff -u -r1.614 weblib.php
--- lib/weblib.php 18 Aug 2006 07:29:19 -0000 1.614
+++ lib/weblib.php 25 Aug 2006 16:54:53 -0000
@@ -2498,25 +2498,53 @@
}
/**
- * Prints breadcrumbs links
+ * Tests whether $THEME->rarrow, $THEME->larrow have been set (theme/-/config.php).
+ * If not it applies sensible defaults.
+ *
+ * Accessibility: right and left arrow Unicode characters for breadcrumb, calendar,
+ * search forum block, etc. Important: these are 'silent' in a screen-reader
+ * (unlike > »), and must be accompanied by text.
+ * @uses $THEME
+ */
+function check_theme_arrows() {
+ global $THEME;
+
+ if (!isset($THEME->rarrow) and !isset($THEME->larrow)) {
+ $THEME->rarrow = '►';
+ $THEME->larrow = '◄';
+ if (FALSE !== strpos($_SERVER['HTTP_USER_AGENT'], 'Opera')) {
+ $THEME->rarrow = '▶';
+ $THEME->larrow = '◀';
+ }
+ }
+}
+
+/**
+ * Prints breadcrumb trail of links, called in theme/-/header.html
*
* @uses $CFG
- * @param string $navigation The breadcrumbs string to be printed
+ * @param string $navigation The breadcrumb navigation string to be printed
+ * @param boolean $return False to echo the breadcrumb string (default), true to return it.
+ * @param string $separator The breadcrumb trail separator. The default 0 leads to the use
+ * of $THEME->rarrow, themes could use '→', '/', or '' for a style-sheet solution.
*/
-function print_navigation ($navigation, $return=false) {
- global $CFG, $USER;
+function print_navigation ($navigation, $return=false, $separator=0) {
+ global $CFG, $THEME;
+ check_theme_arrows();
+ if (0 == $separator) {
+ $separator = ''. $THEME->rarrow .'';
+ }
$output = '';
if ($navigation) {
- //Accessibility: breadcrumb links now in a list, » replaced with image.
+ //Accessibility: breadcrumb links now in a list, » replaced with a 'silent' character.
$nav_text = get_string('youarehere','access');
- $output .= '