com web/php: Add a 2016 archive page.: archive/2016.php
| From: | Adam Harvey | Date: | Thu, 07 Jan 2016 17:12:19 +0000 |
| Subject: | com web/php: Add a 2016 archive page.: archive/2016.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-24441@lists.php.net to get a copy of this message | ||
Commit: b9f114dd84ba7a4b917070c73cd0f05075819d43
Author: Adam Harvey <aharvey@php.net> Thu, 7 Jan 2016 09:12:19 -0800
Parents: 8c16ea7c0cfe13dce59a761954090ab0fd9a1e61
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=b9f114dd84ba7a4b917070c73cd0f05075819d43
Log:
Add a 2016 archive page.
Changed paths:
A archive/2016.php
Diff:
diff --git a/archive/2016.php b/archive/2016.php
new file mode 100644
index 0000000..5052ed9
--- /dev/null
+++ b/archive/2016.php
@@ -0,0 +1,25 @@
+<?php
+
+$_SERVER['BASE_PAGE'] = 'archive/2016.php';
+include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
+include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-news.inc';
+news_archive_sidebar();
+site_header("News Archive - 2016");
+//site_header("News Archive - 2016", array("cache" => true));
+?>
+
+<h1>News Archive - 2016</h1>
+
+<p>
+ Here are the most important news items we have published in 2016 on PHP.net.
+</p>
+
+<hr>
+
+<?php
+
+print_news($NEWS_ENTRIES, array("conferences", "cfp", "frontpage",
"nofrontpage"), 500, 2016);
+
+/* %s/<a href="\(.*\)"><img src="\/images\/news\/\(.*\)"
alt="\(.*\)" width.*><\/a>/<?php news_image("\1", "\2",
"\3"); ?>/g */
+site_footer(array('elephpants' => true, 'sidebar' => $SIDEBAR_DATA));
+