mirror of
https://github.com/php/web-php.git
synced 2026-03-24 07:12:16 +01:00
This also removes the $vevent appendix in print_news(), whereby we walked every category even if we'd already found our match to set $vevent, then didn't use it again because it wasn't needed in the new design. That should fix global warming.
26 lines
686 B
PHP
26 lines
686 B
PHP
<?php
|
|
|
|
$_SERVER['BASE_PAGE'] = 'archive/2017.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 - 2017");
|
|
//site_header("News Archive - 2017", array("cache" => true));
|
|
?>
|
|
|
|
<h1>News Archive - 2017</h1>
|
|
|
|
<p>
|
|
Here are the most important news items we have published in 2017 on PHP.net.
|
|
</p>
|
|
|
|
<hr>
|
|
|
|
<?php
|
|
|
|
print_news($NEWS_ENTRIES, null, 500, 2017);
|
|
|
|
/* %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));
|
|
|