com web/php: New year, new page. Welcome 2021: archive/2021.php
| From: | Gabriel Caruso | Date: | Thu, 07 Jan 2021 17:34:36 +0000 |
| Subject: | com web/php: New year, new page. Welcome 2021: archive/2021.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-29052@lists.php.net to get a copy of this message | ||
Commit: 496b7de5af4110a48a680d26d916708e7e66b821
Author: Gabriel Caruso <carusogabriel34@gmail.com> Thu, 7 Jan 2021 14:34:36 -0300
Parents: 511182cf7bc2cdb5ea89ad866e15a46c0bc231c1
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=496b7de5af4110a48a680d26d916708e7e66b821
Log:
New year, new page. Welcome 2021
Changed paths:
A archive/2021.php
Diff:
diff --git a/archive/2021.php b/archive/2021.php
new file mode 100644
index 000000000..ed11b3c62
--- /dev/null
+++ b/archive/2021.php
@@ -0,0 +1,24 @@
+<?php
+
+$_SERVER['BASE_PAGE'] = 'archive/2021.php';
+include_once __DIR__ . '/../include/prepend.inc';
+include_once __DIR__ . '/../include/pregen-news.inc';
+news_archive_sidebar();
+site_header("News Archive - 2021");
+//site_header("News Archive - 2021", array("cache" => true));
+?>
+
+<h1>News Archive - 2021</h1>
+
+<p>
+ Here are the most important news items we have published in 2021 on PHP.net.
+</p>
+
+<hr>
+
+<?php
+
+print_news($NEWS_ENTRIES, null, 500, 2021);
+
+/* %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));