cvs: phpweb /include layout.inc
| From: | Gabor Hojtsy | Date: | Sun, 17 Sep 2006 20:02:27 +0000 |
| Subject: | cvs: phpweb /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-32677@lists.php.net to get a copy of this message | ||
goba Sun Sep 17 20:02:27 2006 UTC
Modified files:
/phpweb/include layout.inc
Log:
the active classname should be on the list item
http://cvs.php.net/viewvc.cgi/phpweb/include/layout.inc?r1=1.243&r2=1.244&diff_format=u
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.243 phpweb/include/layout.inc:1.244
--- phpweb/include/layout.inc:1.243 Sun Sep 17 14:12:16 2006
+++ phpweb/include/layout.inc Sun Sep 17 20:02:27 2006
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.243 2006/09/17 14:12:16 goba Exp $ */
+/* $Id: layout.inc,v 1.244 2006/09/17 20:02:27 goba Exp $ */
// Set the static content root differently on php.net
$_SERVER['STATIC_ROOT'] = ($MYSITE == 'http://www.php.net/') ?
@@ -561,7 +561,7 @@
for ($i = 1998; $i < 2007; $i++) {
$pagename = "archive/$i.php";
$classname = ($pagename == $_SERVER['BASE_PAGE'] ? '
class="active"' : '');
- $SIDEBAR_DATA .= '<li><a href="/' . $pagename .'"' .
$classname .'>' . $i . "</a></li>\n";
+ $SIDEBAR_DATA .= "<li{$classname}><a
href=\"{$pagename}\">{$i}</a></li>\n";
}
$SIDEBAR_DATA .= '</ul>';
}