svn: /web/php/branches/PROTOTYPE_2010/include/ shared-manual.inc

From: Date: Sun, 26 Dec 2010 13:37:31 +0000
Subject: svn: /web/php/branches/PROTOTYPE_2010/include/ shared-manual.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-9813@lists.php.net to get a copy of this message
bjori Sun, 26 Dec 2010 13:37:31 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=306675 Log: Print parent sections upwards Changed paths: U web/php/branches/PROTOTYPE_2010/include/shared-manual.inc Modified: web/php/branches/PROTOTYPE_2010/include/shared-manual.inc =================================================================== --- web/php/branches/PROTOTYPE_2010/include/shared-manual.inc 2010-12-26 13:37:13 UTC (rev 306674) +++ web/php/branches/PROTOTYPE_2010/include/shared-manual.inc 2010-12-26 13:37:31 UTC (rev 306675) @@ -8,12 +8,18 @@ "current" => $setup["this"][0] == $entry[0], ); } - $menu = array( - array( - "title" => $setup["up"][1], - "link" => $setup["up"][0], - "children" => $siblings, - ), + $menu = array(); + foreach(array_reverse($setup["parents"]) as $parent) { + $menu[] = array( + "title" => $parent[1], + "link" => $parent[0], + "children" => array(), + ); + } + $menu[] = array( + "title" => $setup["up"][1], + "link" => $setup["up"][0], + "children" => $siblings, ); $_SERVER["BASE_PAGE"] = "/manual/" . $setup["head"][1] . "/" . $setup["this"][0];

« previous php.webmaster (#9813) next »