svn: /web/php/branches/PROTOTYPE_2010/ css/structure.css header.php include/shared-manual.inc
| From: | Hannes Magnusson | Date: | Sun, 26 Dec 2010 13:37:13 +0000 |
| Subject: | svn: /web/php/branches/PROTOTYPE_2010/ css/structure.css header.php include/shared-manual.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-9812@lists.php.net to get a copy of this message | ||
bjori Sun, 26 Dec 2010 13:37:13 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=306674
Log:
Make the current doc page stick out in the sidebar
Changed paths:
U web/php/branches/PROTOTYPE_2010/css/structure.css
U web/php/branches/PROTOTYPE_2010/header.php
U web/php/branches/PROTOTYPE_2010/include/shared-manual.inc
Modified: web/php/branches/PROTOTYPE_2010/css/structure.css
===================================================================
--- web/php/branches/PROTOTYPE_2010/css/structure.css 2010-12-26 13:29:29 UTC (rev 306673)
+++ web/php/branches/PROTOTYPE_2010/css/structure.css 2010-12-26 13:37:13 UTC (rev 306674)
@@ -156,6 +156,9 @@
margin: 0;
font-weight: normal;
}
+.layout-menu li.current a {
+ font-weight: bold;
+}
.layout-content {
margin-left: 190px;
Modified: web/php/branches/PROTOTYPE_2010/header.php
===================================================================
--- web/php/branches/PROTOTYPE_2010/header.php 2010-12-26 13:29:29 UTC (rev 306673)
+++ web/php/branches/PROTOTYPE_2010/header.php 2010-12-26 13:37:13 UTC (rev 306674)
@@ -131,7 +131,11 @@
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";
+ if ($item["current"]) {
+ echo "<li class='current'><a
href='{$item["link"]}'>{$item["title"]}</a></li>\n";
+ } else {
+ echo "<li><a
href='{$item["link"]}'>{$item["title"]}</a></li>\n";
+ }
}
echo "</ul>";
echo "</li>";
Modified: web/php/branches/PROTOTYPE_2010/include/shared-manual.inc
===================================================================
--- web/php/branches/PROTOTYPE_2010/include/shared-manual.inc 2010-12-26 13:29:29 UTC (rev 306673)
+++ web/php/branches/PROTOTYPE_2010/include/shared-manual.inc 2010-12-26 13:37:13 UTC (rev 306674)
@@ -5,6 +5,7 @@
$siblings[] = array(
"title" => $entry[1],
"link" => $entry[0],
+ "current" => $setup["this"][0] == $entry[0],
);
}
$menu = array(