Commit ec911cb8 authored by Seth Meranda's avatar Seth Meranda
Browse files

Since we're on a PHP server, use PHP to parse and output the JSON feed instead of JS.

parent 40ad2098
......@@ -171,8 +171,17 @@
<div class="grid4" id="newsItems">
<script src="*%20from%20rss%20where%20url%3D''&format=json&diagnostics=true&callback=buildNews" type="text/javascript"></script>
<h3>News from Nebraska</h3>
<ul id="newsList">
$news = json_decode(file_get_contents("*%20from%20rss%20where%20url%3D''&format=json&diagnostics=true"), true);
foreach($news['query']['results']['item'] as $result){
echo '<li><a href="'.$result['link'].'">'.$result['title'].'</a></li>';
<!-- TemplateEndEditable -->
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment