'', 'current' => 'community', 'css' => ['home.css'], ]); $content = "
"; $frontpage = []; foreach ($NEWS_ENTRIES as $entry) { foreach ($entry["category"] as $category) { if ($category["term"] == "cfp") { $frontpage[] = $entry; break; } if ($category["term"] == "conferences") { $frontpage[] = $entry; break; } } } $panels = '

Want to see your conference appear here?

'; foreach ($frontpage as $entry) { $link = preg_replace('~^(http://php.net/|https://www.php.net/)~', '', $entry["id"]); $id = parse_url($entry["id"], PHP_URL_FRAGMENT); $date = date_format(date_create($entry["updated"]), 'Y-m-d'); $content .= '
'; $content .= '

' . $entry["title"] . '

'; $content .= '
'; if (isset($entry["newsImage"])) { $content .= sprintf('', $entry["newsImage"]["link"], $entry["newsImage"]["content"]); } $content .= '
'; $content .= '
'; $content .= $entry["content"]; $content .= '
'; $content .= '
'; $panels .= sprintf('

%s

', $entry["newsImage"]["link"], $entry["title"]); } $content .= "
"; echo $content; site_footer([ "atom" => "/feed.atom", "elephpants" => true, "sidebar" => $panels, ]);