-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
48 lines (46 loc) · 1.67 KB
/
index.php
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
45
46
47
48
<html>
<head>
<title>Wonderbolt Radio</title>
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
<center>
<div id=logoarea>
<div id=logo><img id=logo src=icon.png></img></div>
<center><div id=Logotext><h1>Wonderbolt Radio</h1></div></center>
<div id=navbar>
<ul id=nav>
<li><a href="index.php">Home</a></li>
<li><a href="calendar.html">Calendar</a></li>
<li><a href="about.html">About</a></li>
</ul>
</div>
</div>
<div>
<h2>Radio Player</h2>
<center><div id=player><iframe src="https://ponyvillelive.com/index/tunein/skin/dark/embed/true/autoplay/false/showonlystation/true/id/22" frameborder="0" allowtransparency="true" style="overflow: visible; width: 100%; height: 150px; border: 0;"></iframe></div></center>
<div id=tumblr>
<?php
$request_url = "http://wonderboltradio.tumblr.com/api/read?type=post&start=0&num=5";
$xml = simplexml_load_file($request_url);
$posts = $xml->posts->post;
foreach ($posts as $post) {
$title = $post->{'regular-title'};
$date = $post['date'];
$body = $post->{'regular-body'};
$link = $post['url'];
$small_post = substr($body, 0, 320);
echo '<div id=tumblrpost>';
echo '<h2>' . $title . '</h2>';
echo '<h4>' . $date . '</h4>';
echo '<p>' . $small_post. '</p>';
echo "…";
echo "</br><a target=frame2 href='" . $link . "'>Read More</a>";
echo "</div>";
}
?>
</div>
</div>
<div><p>This site is under development. Wonderbolt Radio is a proud partner of PonyvilleLive! The webmaster for this site is Dusk <a href=mailto:[email protected]>[email protected]</a></p>
</div>
</html>