cvs: pearweb /include pear-format-html.php /public_html/css tabs.css

From: Date: Thu, 15 Jun 2006 19:26:11 +0000
Subject: cvs: pearweb /include pear-format-html.php /public_html/css tabs.css
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-40724@lists.php.net to get a copy of this message
mj Thu Jun 15 19:26:11 2006 UTC Modified files: /pearweb/include pear-format-html.php /pearweb/public_html/css tabs.css Log: * Reimplemented tabbed navigation using lists. http://cvs.php.net/viewcvs.cgi/pearweb/include/pear-format-html.php?r1=1.182&r2=1.183&diff_format=u Index: pearweb/include/pear-format-html.php diff -u pearweb/include/pear-format-html.php:1.182 pearweb/include/pear-format-html.php:1.183 --- pearweb/include/pear-format-html.php:1.182 Fri Feb 3 13:37:56 2006 +++ pearweb/include/pear-format-html.php Thu Jun 15 19:26:11 2006 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: pear-format-html.php,v 1.182 2006/02/03 13:37:56 pajoye Exp $ + $Id: pear-format-html.php,v 1.183 2006/06/15 19:26:11 mj Exp $ */ PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'error_handler'); @@ -964,18 +964,22 @@ { global $self; - $page = basename($self); + $page = basename($self); echo '<div id="nav">' . "\n"; + echo " <ul>\n"; foreach ($items as $title => $item) { + echo " <li>"; echo '<a href="' . $item['url'] . '" title="' . $item['title'] . '"'; if ($page == $item['url']) { echo ' class="active"'; } - echo '>' . $title . "</a>\n"; + echo '>' . $title . "</a>"; + echo "</li>\n"; } - echo '</div>'; + echo " </ul>\n"; + echo "</div>\n"; } /** http://cvs.php.net/viewcvs.cgi/pearweb/public_html/css/tabs.css?r1=1.3&r2=1.4&diff_format=u Index: pearweb/public_html/css/tabs.css diff -u pearweb/public_html/css/tabs.css:1.3 pearweb/public_html/css/tabs.css:1.4 --- pearweb/public_html/css/tabs.css:1.3 Sat Jun 19 01:58:59 2004 +++ pearweb/public_html/css/tabs.css Thu Jun 15 19:26:11 2006 @@ -8,6 +8,17 @@ clear: both; } +#nav ul { + padding: 0; + margin: 0; + + list-style: none; +} + +#nav li { + float: left; +} + #nav a { float: left; font-weight: bold;

« previous php.pear.cvs (#40724) next »