cvs: php-wiki-web /dokuwiki/lib/tpl/default main.php
| From: | Lukas Smith | Date: | Tue, 29 Apr 2008 19:22:04 +0000 |
| Subject: | cvs: php-wiki-web /dokuwiki/lib/tpl/default main.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-1651@lists.php.net to get a copy of this message | ||
lsmith Tue Apr 29 19:22:04 2008 UTC
Modified files:
/php-wiki-web/dokuwiki/lib/tpl/default main.php
Log:
- further tweaks to the breadcrumbs (slightly tweaked patch from Jordi)
http://cvs.php.net/viewvc.cgi/php-wiki-web/dokuwiki/lib/tpl/default/main.php?r1=1.2&r2=1.3&diff_format=u
Index: php-wiki-web/dokuwiki/lib/tpl/default/main.php
diff -u php-wiki-web/dokuwiki/lib/tpl/default/main.php:1.2
php-wiki-web/dokuwiki/lib/tpl/default/main.php:1.3
--- php-wiki-web/dokuwiki/lib/tpl/default/main.php:1.2 Mon Apr 14 12:25:57 2008
+++ php-wiki-web/dokuwiki/lib/tpl/default/main.php Tue Apr 29 19:22:04 2008
@@ -75,9 +75,16 @@
<div class="header">
<div class="pagename">
- [[<a href="/">start</a><?php if(tpl_pagetitle($ID,true) !==
'start') { echo ':';
-tpl_link(wl($ID,'do=backlink'), tpl_pagetitle($ID,true)); } ?>]]
- </div>
+ [[<a href="/">start</a><?php
+if (tpl_pagetitle($ID,true) !== 'start') {
+ $_link = '';
+ $_parts = explode(':', tpl_pagetitle($ID,true)); while ($_part = array_shift($_parts))
{
+ $_link .= '/'.$_part;
+ echo ':<a
href="'.$_link.'">'.$_part.'</a>';
+ }
+}
+ ?>]]
+ </div>
<div class="logo">
<?php tpl_link(wl(),$conf['title'],'name="dokuwiki__top"
id="dokuwiki__top" accesskey="h" title="[ALT+H]"')?>
</div>