diff options
author | Gerry Weißbach <gerry.w@gammaproduction.de> | 2015-05-06 15:10:53 +0200 |
---|---|---|
committer | Gerry Weißbach <gerry.w@gammaproduction.de> | 2015-05-06 15:10:53 +0200 |
commit | 7d2ef001b9eb204eee6bca5f5091a777ec7824a4 (patch) | |
tree | 24c940b20ae085966900a7d64959494e03fa6f22 /inc/template.php | |
parent | 957202777a4d14ec2b5601d36010542f38b4740c (diff) | |
parent | dfe7cc3f3bfbfccec6a38a94ac0f2242e8bc59e7 (diff) | |
download | rpg-7d2ef001b9eb204eee6bca5f5091a777ec7824a4.tar.gz rpg-7d2ef001b9eb204eee6bca5f5091a777ec7824a4.tar.bz2 |
Merge branch 'master' of https://github.com/splitbrain/dokuwiki into extension_manager
Diffstat (limited to 'inc/template.php')
-rw-r--r-- | inc/template.php | 41 |
1 files changed, 14 insertions, 27 deletions
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 <oracle.shinoda@gmail.com> * @author Sean Coates <sean@caedmon.net> * @author <fredrik@averpil.com> - * @author Mark C. Prins <mprins@users.sf.net> + * @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 '<nav><h2 class="bchead">'.$lang['youarehere'].': </h2>'; - echo '<ul class="navlist">'; - // always print the startpage - if ($count > 1) { - echo '<li class="home">'.html_wikilink(':'.$conf['start']).$sep.'</li>'; - } else { - echo '<li class="home">'.$conf['start'].'</li>'; - } + echo '<span class="bchead">'.$lang['youarehere'].' </span>'; + // always print the startpage + echo '<span class="home">'; + tpl_pagelink(':'.$conf['start']); + echo '</span>'; // print intermediate namespace links $part = ''; @@ -927,28 +924,18 @@ function tpl_youarehere($sep = ' → ') { $page = $part; if($page == $conf['start']) continue; // Skip startpage - echo '<li>'.html_wikilink($page); - if ($i < $count - 2) { - echo $sep.'</li>'; - } else { - echo '</li>'; - } + // output + echo $sep; + tpl_pagelink($page); } // print current page, skipping start page, skipping for namespace index resolve_pageid('', $page, $exists); - if(isset($page) && $page == $part.$parts[$i]) { - echo '</li></ul></nav>'; - return true; - } - + if(isset($page) && $page == $part.$parts[$i]) return true; $page = $part.$parts[$i]; - if($page == $conf['start']) { - echo '</li></ul></nav>'; - return true; - } - - echo $sep.'</li><li class="curid">'.noNSorNS($page).'</li></ul></nav>'; + if($page == $conf['start']) return true; + echo $sep; + tpl_pagelink($page); return true; } |