com phd: Also render the next link in the front page: phpdotnet/phd/Package/PHP/ChunkedXHTML.php

From: Date: Wed, 21 Mar 2012 00:53:41 +0000
Subject: com phd: Also render the next link in the front page: phpdotnet/phd/Package/PHP/ChunkedXHTML.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9917@lists.php.net to get a copy of this message
Commit: 68977f226592953e80bede26f934b0c5dcae8806 Author: Moacir de Oliveira <moacir@php.net> Tue, 20 Mar 2012 20:53:41 -0400 Parents: 891b0644fe193de89718d0bb85076d0726a06f90 Branches: master Link: http://git.php.net/?p=phd.git;a=commitdiff;h=68977f226592953e80bede26f934b0c5dcae8806 Log: Also render the next link in the front page Signed-off-by: Moacir de Oliveira <moacir@php.net> Changed paths: M phpdotnet/phd/Package/PHP/ChunkedXHTML.php Diff: 68977f226592953e80bede26f934b0c5dcae8806 diff --git a/phpdotnet/phd/Package/PHP/ChunkedXHTML.php b/phpdotnet/phd/Package/PHP/ChunkedXHTML.php index 43340d0..95fa6b6 100644 --- a/phpdotnet/phd/Package/PHP/ChunkedXHTML.php +++ b/phpdotnet/phd/Package/PHP/ChunkedXHTML.php @@ -31,27 +31,24 @@ class Package_PHP_ChunkedXHTML extends Package_PHP_Web { </head> <body> HEADER; - $parent = Format::getParent($id); $next = $prev = $up = array("href" => null, "desc" => null); - if ($parent && $parent != "ROOT") { - if ($prevId = Format::getPrevious($id)) { - $prev = array( - "href" => $this->getFilename($prevId) . $this->getExt(), - "desc" => $this->getShortDescription($prevId), - ); - } - if ($nextId = Format::getNext($id)) { - $next = array( - "href" => $this->getFilename($nextId) . $this->getExt(), - "desc" => $this->getShortDescription($nextId), - ); - } - if ($parentId = Format::getParent($id)) { - $up = array( - "href" => $this->getFilename($parentId) . $this->getExt(), - "desc" => $this->getShortDescription($parentId), - ); - } + if ($prevId = Format::getPrevious($id)) { + $prev = array( + "href" => $this->getFilename($prevId) . $this->getExt(), + "desc" => $this->getShortDescription($prevId), + ); + } + if ($nextId = Format::getNext($id)) { + $next = array( + "href" => $this->getFilename($nextId) . $this->getExt(), + "desc" => $this->getShortDescription($nextId), + ); + } + if ($parentId = Format::getParent($id)) { + $up = array( + "href" => $this->getFilename($parentId) . $this->getExt(), + "desc" => $this->getShortDescription($parentId), + ); } $nav = <<<NAV

« previous php.doc.cvs (#9917) next »