FAQ
Commit: d4ea71fd5f04bb7e1d0075a8ff90ad9d286a3595
Author: Levi Morrison <levim@php.net> Mon, 11 Jun 2012 16:36:01 -0600
Parents: b6894f931a5f0dc4a11abfcc1d3e2c2d3dedbfbf
Branches: master

Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=d4ea71fd5f04bb7e1d0075a8ff90ad9d286a3595

Log:
Ordered news archive so that the most recent years are first.

Changed paths:
M include/layout.inc


Diff:
diff --git a/include/layout.inc b/include/layout.inc
index 8862ce9..c108bf5 100644
--- a/include/layout.inc
+++ b/include/layout.inc
@@ -712,7 +712,7 @@ function news_archive_sidebar()

<ul class="toc">
';
- for ($i = 1998; $i <= date("Y"); $i++) {
+ for ($i = date("Y"); $i >= 1998; $i--) {
$pagename = "archive/$i.php";
$classname = ($pagename == $_SERVER['BASE_PAGE'] ? ' class="active"' : '');
$SIDEBAR_DATA .= "<li{$classname}><a href=\"/{$pagename}\">{$i}</a></li>\n";

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-webmaster @
categoriesphp
postedJun 11, '12 at 10:36p
activeJun 11, '12 at 10:36p
posts1
users1
websitephp.net

1 user in discussion

Levi Morrison: 1 post

People

Translate

site design / logo © 2022 Grokbase