From 3940c519db432ec22e8c587504d86191631f9bfb Mon Sep 17 00:00:00 2001 From: Mark Date: Wed, 8 Jan 2014 11:56:06 +0100 Subject: use nav+ul element for "you are here" As described in the common idioms of the HTML5 spec, mark up navigation as a list inside a `nav` element for better semantics and accessibility. see: * http://www.w3.org/html/wg/drafts/html/master/common-idioms.html#rel-up * http://lists.w3.org/Archives/Public/public-html/2013Nov/thread.html#msg6 * https://dl.dropboxusercontent.com/u/377471/breadcrumb.html for discussion and background. --- inc/template.php | 41 +++++++++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 14 deletions(-) (limited to 'inc') diff --git a/inc/template.php b/inc/template.php index 3bccb0bd8..1fad18271 100644 --- a/inc/template.php +++ b/inc/template.php @@ -893,12 +893,12 @@ function tpl_breadcrumbs($sep = '•') { * @author Nigel McNie * @author Sean Coates * @author - * @todo May behave strangely in RTL languages + * @author Mark C. Prins * * @param string $sep Separator between entries * @return bool */ -function tpl_youarehere($sep = ' » ') { +function tpl_youarehere($sep = ' → ') { global $conf; global $ID; global $lang; @@ -909,12 +909,15 @@ function tpl_youarehere($sep = ' » ') { $parts = explode(':', $ID); $count = count($parts); - echo ''.$lang['youarehere'].' '; - + echo ''; + return true; + } + $page = $part.$parts[$i]; - if($page == $conf['start']) return true; - echo $sep; - tpl_pagelink($page); + if($page == $conf['start']) { + echo ''; + return true; + } + + echo $sep.'
  • '.noNSorNS($page).'
  • '; return true; } -- cgit v1.2.3