[web-php] master: Add 2022 archive page
| From: | Ben Ramsey | Date: | Fri, 21 Jan 2022 03:40:01 +0000 |
| Subject: | [web-php] master: Add 2022 archive page | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-29891@lists.php.net to get a copy of this message | ||
Author: Ben Ramsey (ramsey)
Date: 2022-01-20T21:39:24-06:00
Commit: https://github.com/php/web-php/commit/fb539eac0b2fc956c1488fafec6a493663a7fb76
Raw diff: https://github.com/php/web-php/commit/fb539eac0b2fc956c1488fafec6a493663a7fb76.diff
Add 2022 archive page
Changed paths:
A archive/2022.php
Diff:
diff --git a/archive/2022.php b/archive/2022.php
new file mode 100644
index 000000000..af0378272
--- /dev/null
+++ b/archive/2022.php
@@ -0,0 +1,21 @@
+<?php
+
+$_SERVER['BASE_PAGE'] = 'archive/2022.php';
+include_once __DIR__ . '/../include/prepend.inc';
+include_once __DIR__ . '/../include/pregen-news.inc';
+news_archive_sidebar();
+site_header("News Archive - 2022");
+?>
+
+<h1>News Archive - 2022</h1>
+
+<p>
+ Here are the most important news items we have published in 2022 on PHP.net.
+</p>
+
+<hr>
+
+<?php
+
+print_news($NEWS_ENTRIES, null, 500, 2022);
+site_footer(array('elephpants' => true, 'sidebar' => $SIDEBAR_DATA));