svn: /web/php/branches/PROTOTYPE_2010/include/ shared-manual.inc
| From: | Hannes Magnusson | Date: | Sun, 26 Dec 2010 12:23:53 +0000 |
| Subject: | svn: /web/php/branches/PROTOTYPE_2010/include/ shared-manual.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-9803@lists.php.net to get a copy of this message | ||
bjori Sun, 26 Dec 2010 12:23:53 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=306662
Log:
Generate the left TOC
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 12:23:33 UTC (rev 306661)
+++ web/php/branches/PROTOTYPE_2010/include/shared-manual.inc 2010-12-26 12:23:53 UTC (rev 306662)
@@ -1,12 +1,31 @@
<?php
function manual_setup($setup) {
+ $siblings = array();
+ foreach($setup["toc"] as $entry) {
+ $siblings[] = array(
+ "title" => $entry[1],
+ "link" => $entry[0],
+ );
+ }
+ $menu = array(
+ array(
+ "title" => $setup["up"][1],
+ "link" => $setup["up"][0],
+ "children" => $siblings,
+ ),
+ );
+
+ $_SERVER['BASE_PAGE'] = "/manual/en/function.strpos.php";
+ site_header("Manual page", array("current" => "docs",
"leftmenu" => $menu));
+
+ echo '<div class="layout-content">';
}
function manual_header() {
- $_SERVER['BASE_PAGE'] = "manual/en/function.strpos.php";
- site_header("Manual page", array("current" => "docs"));
+ /* No longer used. see manual_setup() */
}
function manual_footer() {
+ echo '</div>'; // layout-content
site_footer();
}