Commit: ae8aa85575ef55096e1e9831d6a0d65b93d42d8c Author: Peter Cowburn <[email protected]> Wed, 9 Jan 2013 10:33:37 +0000 Parents: dafa66353c65fa746836f22e164973b9be8a8625 Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=ae8aa85575ef55096e1e9831d6a0d65b93d42d8c Log: Revert "Removal of left menu class prefixes for method names since they're already indented within that class name" This reverts commit 16a31cfa93e9bc1042310c61f8172dccacdb94ad. Changed paths: M include/header.inc M include/shared-manual.inc Diff: diff --git a/include/header.inc b/include/header.inc index fe2fa18..4d3cb02 100644 --- a/include/header.inc +++ b/include/header.inc @@ -227,42 +227,35 @@ if (isset($shortname) && $shortname) { </div> <div id="layout"> -<?php if (!empty($SIDEBAR_DATA)): ?> - <aside class="tips"> - <div class="border first"></div> - <div class="border second"></div> - <div class="border third"></div> - <div class="inner"><?php echo $SIDEBAR_DATA; ?></div> - </aside> -<?php endif; ?> - -<?php if (!empty($config["leftmenu"])): ?> - <aside class='layout-menu'> - - <ul class='parent-menu-list'> - <?php foreach($config['leftmenu'] as $section): ?> - <li> - <a href="<?php echo $section['link']; ?>"><?php echo $section['title']; ?></a> - - <?php if ($section['children']): ?> - <ul class='child-menu-list'> - - <?php - foreach($section['children'] as $item): - $cleanTitle = $item['title']; - ?> - <li class="<?php echo ($item['current']) ? 'current' : ''; ?>"> - <a href="<?php echo $item['link']; ?>" title="<?php echo $cleanTitle; ?>"><?php echo $cleanTitle; ?></a> - </li> - <?php endforeach; ?> - - </ul> - <?php endif; ?> - - </li> - <?php endforeach; ?> - </ul> - </aside> -<?php endif; ?> +<?php +if (!empty($SIDEBAR_DATA)) { + echo '<aside class="tips">', + '<div class="border first"></div>', + '<div class="border second"></div>', + '<div class="border third"></div>', + '<div class="inner">', + $SIDEBAR_DATA, + '</div></aside>'; +} +if (!empty($config["leftmenu"])) { + echo "<aside class='layout-menu'><ul class='parent-menu-list'>"; + foreach($config["leftmenu"] as $section) { + echo "<li><a href='{$section["link"]}'>{$section["title"]}</a>\n"; + if ($section["children"]) { + echo "<ul class='child-menu-list'>"; + foreach($section["children"] as $item) { + 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>"; + } + echo "</ul></aside>\n"; +} +?> <section class="layout-content <?php echo $curr ?>"> diff --git a/include/shared-manual.inc b/include/shared-manual.inc index 4dfea02..e07eb32 100644 --- a/include/shared-manual.inc +++ b/include/shared-manual.inc @@ -575,18 +575,12 @@ function manual_setup_beta($setup) { $siblings = array(); foreach($setup["toc"] as $entry) { - // We strip out any class prefix here, we only want method names - $methodname = $entry[1]; - if(strpos($entry[1], '::') !== false) { - list($classname, $methodname) = explode('::', $entry[1]); - } $siblings[] = array( - "title" => $methodname, + "title" => $entry[1], "link" => $entry[0], "current" => $setup["this"][0] == $entry[0], ); } - $menu = array(); foreach(array_reverse($setup["parents"]) as $parent) { $menu[] = array( @@ -603,7 +597,7 @@ function manual_setup_beta($setup) { "children" => $siblings, ); } - + $_SERVER["BASE_PAGE"] = "/manual/" . $setup["head"][1] . "/" . $setup["this"][0]; $config = array( -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
