'', 'current' => 'community', 'css' => array('home.css'), )); $content = "
"; $frontpage = array(); 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 = substr($entry["id"], 15); // Strip http://php.net/ $id = parse_url($entry["id"], PHP_URL_FRAGMENT); $date = date_format(date_create($entry["updated"]), 'Y-m-d'); $content .= '
'; $content .= '

' . $entry["title"] . '

'; $content .= '
'; $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( array( "atom" => "/feed.atom", "elephpants" => true, "sidebar" => $panels, ) );