-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathreader.php
More file actions
44 lines (31 loc) · 1.22 KB
/
Copy pathreader.php
File metadata and controls
44 lines (31 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
$location = "http://query.yahooapis.com/v1/public/yql?q=";
$location .= urlencode("SELECT * FROM feed where url='http://feeds.feedburner.com/Pineheadtv'");
$location .= "&format=json";
$rss = file_get_contents($location, true);
$rss = json_decode($rss);
?>
<html>
<head>
<title>Simple Mobile Wordpress RSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,height=device-height,width=device-width,user-scalable = no">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
</head>
</head>
<div data-role="page" id="home">
<h3 style="text-align:center;">Pinehead.tv Simple Mobile Rss Site</h3>
<ul data-role="listview">
<?php
foreach($rss->query->results->item as $post) {
$title = $post->title;
$img = $post->enclosure->url;
$link = $post->link;
$detail = $post->description;
echo "<li><a href=\"detail.php?title=$title&detail=$detail\" rel=\"external\"><img src=\"$img\" /><h3>$title</h3></a></li>";
}
?>
</ul>
</div>