cvs: phpweb /include shared-manual.inc
| From: | Hannes Magnusson | Date: | Sat, 25 Aug 2007 11:07:58 +0000 |
| Subject: | cvs: phpweb /include shared-manual.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-36286@lists.php.net to get a copy of this message | ||
bjori Sat Aug 25 11:07:58 2007 UTC
Modified files:
/phpweb/include shared-manual.inc
Log:
Add "parents" links
# FC for PhD
http://cvs.php.net/viewvc.cgi/phpweb/include/shared-manual.inc?r1=1.235&r2=1.236&diff_format=u
Index: phpweb/include/shared-manual.inc
diff -u phpweb/include/shared-manual.inc:1.235 phpweb/include/shared-manual.inc:1.236
--- phpweb/include/shared-manual.inc:1.235 Sat Aug 11 19:27:04 2007
+++ phpweb/include/shared-manual.inc Sat Aug 25 11:07:58 2007
@@ -1,6 +1,6 @@
<?php // -*- C++ -*-
-// $Id: shared-manual.inc,v 1.235 2007/08/11 19:27:04 bjori Exp $
+// $Id: shared-manual.inc,v 1.236 2007/08/25 11:07:58 bjori Exp $
/*
@@ -98,6 +98,15 @@
$BAR .= ' <li class="header home"><a href="' .
$PGI['home'][0] . '">' .
$PGI['home'][1] . "</a></li>\n";
+ // Link to parents
+ if (isset($PGI['parents']) && ($c = count($PGI['parents'])-1) >
0) {
+ // The root parent is the "PHP Manual"
+ for($i=$c-1; $i>=0; $i--) {
+ $BAR .= ' <li class="header up"><a href="' .
$PGI['parents'][$i][0] . '">' .
+ $PGI['parents'][$i][1] . "</a></li>\n";
+ }
+ }
+
// Link to one page up if titles does not match
if (($PGI['home'][1] !== $PGI['up'][1]) && $PGI['up'][1])
{
$BAR .= ' <li class="header up"><a href="' .
$PGI['up'][0] . '">' .