forked from nitzan/EditAppSimpleWrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
50 lines (40 loc) · 1.34 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
49
50
<?php
/*
CONFIG - CHANGE THESE SETTINGS TO MATCH YOUR OWN
*/
$title = "My Blog, running on Edit app";
$edit_account = "??????";
$twitter_username = "??????";
$email_address = "[email protected]";
/* END OF CONFIG */
?>
<!doctype html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title><?php echo $title ?></title>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id="wrapper">
<header>
<hgroup>
<h1 class="logo"><?php echo $header ?></h1>
<p><i>Running on <a href="http://app.byed.it" title="http://app.byed.it" target="_blank">Edit iPhone App</a> • <a href="http://twitter.com/<?php echo $twitter_username ?>" target="_blank" title="http://twitter.com/<?php echo $twitter_username ?>">@<?php echo $twitter_username ?></a> • <a href="mailto:<?php echo $email_address ?>" title="<?php echo $email_address ?>""><?php echo $email_address ?></a></i></p>
</hgroup>
</header>
<section>
<?php
$xml = simplexml_load_file('http://app.byed.it/'.$edit_account.'/feed');
foreach ($xml->channel->item as $i)
{
echo "<div class='itemdiv'>";
echo "<h2>", $i->title , "</h2>";
echo "<article class=''>", $i->description , "</article>";
echo "</div>";
}
?>
</section>
</div><!-- wrapper -->
</body>
</html>