-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathentries.php
64 lines (57 loc) · 2.37 KB
/
entries.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
include("header.tpl.php");
$rss = new DOMDocument();
$load_result = $rss->load('./feed.xml');
if (!$load_result) {
print "Error Loading RSS";
exit;
}
$feed = array();
foreach ($rss->getElementsByTagName('item') as $node) {
$item = array (
'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue,
'content' => $node->getElementsByTagName('encoded')->item(0)->nodeValue,
);
array_push($feed, $item);
}
?>
<div id='container'>
<div id='content'>
<?php
$count = count($feed);
foreach ($feed as $f) {
print "<table id='".$count."' class='tborder postbit_table' style='margin-top: 3.3em;' cellspacing='1' cellpadding='4' border='1'>
<tbody>
<tr style='border-bottom: none;'>
<td class='trow1 posttop'>
<table class='avatartable' style='border: none !important;' cellspacing='0' cellpadding='0' border='0'>
<tbody><tr>
<td class='post_author' style=''>
<span class='largetext usernames'>
nixers newsletter issue
</span> |
<span class='smalltext'> ".$f['date']." </span> |
<span class='smalltext'> <a href='#".$count."'>$count</a> </span>
</td></tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class='trow1 post_content'>
<div class='post_body'>
<div class='feed_content'>".$f['content']."</div>
</div>
</td>
</tr>
</tbody>
</table>";
$count--;
}
?>
</div>
</div>
</body>
</html>