svn: /web/php/branches/PROTOTYPE_2010/ header.php
| From: | Hannes Magnusson | Date: | Sun, 26 Dec 2010 12:24:14 +0000 |
| Subject: | svn: /web/php/branches/PROTOTYPE_2010/ header.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-9804@lists.php.net to get a copy of this message | ||
bjori Sun, 26 Dec 2010 12:24:14 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=306663
Log:
Generate the left TOC
Fix the base href to be the page we are on
Changed paths:
U web/php/branches/PROTOTYPE_2010/header.php
Modified: web/php/branches/PROTOTYPE_2010/header.php
===================================================================
--- web/php/branches/PROTOTYPE_2010/header.php 2010-12-26 12:23:53 UTC (rev 306662)
+++ web/php/branches/PROTOTYPE_2010/header.php 2010-12-26 12:24:14 UTC (rev 306663)
@@ -22,7 +22,7 @@
<script type="text/javascript"
src="/js/jquery.hoverIntent.minified.js"></script>
<script type="text/javascript"
src="/js/jquery.autocomplete.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
- <base href="<?php echo $MYSITE ?>" />
+ <base href="<?php echo $_SERVER["BASE_PAGE"] ?>" />
</head>
<body>
@@ -212,5 +212,18 @@
if (!empty($SIDEBAR_DATA)) {
echo '<aside id="leftbar">',
"\n$SIDEBAR_DATA\n</aside>\n";
}
+if (!empty($config["leftmenu"])) {
+ echo "<aside class='layout-menu'><ul>";
+ foreach($config["leftmenu"] as $section) {
+ echo "<li><a
href='{$section["link"]}'>{$section["title"]}</a>\n";
+ echo "<ul>";
+ foreach($section["children"] as $item) {
+ echo "<li><a
href='{$item["link"]}'>{$item["title"]}</a></li>\n";
+ }
+ echo "</ul>";
+ echo "</li>";
+ }
+ echo "</ul></aside>\n";
+}
?>