From 08d7a57554e606109805d4e663759d31ac40df96 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 2 May 2015 11:24:54 +0200 Subject: Revert "use nav+ul element for "you are here"" This reverts commit 3940c519db432ec22e8c587504d86191631f9bfb as discussed in #1082. --- inc/template.php | 41 ++++++++++++++--------------------------- 1 file changed, 14 insertions(+), 27 deletions(-) (limited to 'inc/template.php') diff --git a/inc/template.php b/inc/template.php index a4ace1a63..88b6b14b8 100644 --- a/inc/template.php +++ b/inc/template.php @@ -894,12 +894,12 @@ function tpl_breadcrumbs($sep = '•') { * @author Nigel McNie * @author Sean Coates * @author - * @author Mark C. Prins + * @todo May behave strangely in RTL languages * * @param string $sep Separator between entries * @return bool */ -function tpl_youarehere($sep = ' → ') { +function tpl_youarehere($sep = ' » ') { global $conf; global $ID; global $lang; @@ -910,15 +910,12 @@ function tpl_youarehere($sep = ' → ') { $parts = explode(':', $ID); $count = count($parts); - echo ''; - return true; - } - + if(isset($page) && $page == $part.$parts[$i]) return true; $page = $part.$parts[$i]; - if($page == $conf['start']) { - echo ''; - return true; - } - - echo $sep.'
  • '.noNSorNS($page).'
  • '; + if($page == $conf['start']) return true; + echo $sep; + tpl_pagelink($page); return true; } -- cgit v1.2.3