cvs: phd /themes/pear pearchunkedhtml.php
| From: | Christian Weiske | Date: | Thu, 16 Oct 2008 21:15:28 +0000 |
| Subject: | cvs: phd /themes/pear pearchunkedhtml.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2249@lists.php.net to get a copy of this message | ||
cweiske Thu Oct 16 21:15:28 2008 UTC
Modified files:
/phd/themes/pear pearchunkedhtml.php
Log:
Don't display index link on footer when we are on the index page
http://cvs.php.net/viewvc.cgi/phd/themes/pear/pearchunkedhtml.php?r1=1.7&r2=1.8&diff_format=u
Index: phd/themes/pear/pearchunkedhtml.php
diff -u phd/themes/pear/pearchunkedhtml.php:1.7 phd/themes/pear/pearchunkedhtml.php:1.8
--- phd/themes/pear/pearchunkedhtml.php:1.7 Thu Oct 16 21:00:46 2008
+++ phd/themes/pear/pearchunkedhtml.php Thu Oct 16 21:15:28 2008
@@ -5,7 +5,7 @@
* PEAR theme for the normal-html-in-many-files version
*
* @package PhD
-* @version CVS: $Id: pearchunkedhtml.php,v 1.7 2008/10/16 21:00:46 cweiske Exp $
+* @version CVS: $Id: pearchunkedhtml.php,v 1.8 2008/10/16 21:15:28 cweiske Exp $
*/
class pearchunkedhtml extends pearweb
{
@@ -40,20 +40,20 @@
$strNext = $strPrev = '';
if ($parent) {
- if ($parent != 'ROOT') {
+ if ($parent !== 'ROOT') {
$siblings = PhDHelper::getChildren($parent);
} else {
$siblings = array($id => PhDHelper::getSelf($id));
}
$this->prev = parent::createPrev($id, $parent, $siblings);
- if ($this->prev[0] == 'index') {
+ if ($this->prev[0] === 'index') {
$this->prev = array(null, null);
}
$this->next = parent::createNext($id, $parent, $siblings);
- if ($this->next[0] == 'index') {
+ if ($this->next[0] === 'index') {
$this->next = array(null, null);
}
- if ($parent != 'index' && $parent != 'ROOT') {
+ if ($parent !== 'index' && $parent !== 'ROOT') {
$this->up = array($parent.".html", PhDHelper::getDescription($parent,
false));
}
}
@@ -124,6 +124,8 @@
if ($this->next[0]) {
$strNext = '<a accesskey="n" href="' . $this->next[0] .
'">Next</a>';
}
+ $strHome = $id !== 'index' ? '<a accesskey="h"
href="index.html">PEAR Manual</a>' : '';
+
$nav = <<<NAV
<div class="navfooter">
<hr />
@@ -135,7 +137,7 @@
</tr>
<tr>
<td width="40%" align="left"
valign="top">{$this->prev[1]}</td>
- <td width="20%" align="center"><a accesskey="h"
href="index.html">PEAR Manual</a></td>
+ <td width="20%" align="center">{$strHome}</td>
<td width="40%" align="right"
valign="top">{$this->next[1]}</td>
</tr>
</table>