-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
46 lines (46 loc) · 2.14 KB
/
Copy pathindex.php
File metadata and controls
46 lines (46 loc) · 2.14 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
45
46
<?php include 'core.php'; ?>
<!DOCTYPE html>
<!--
The sites linked from this page are copyright their respective owners. Not me.
Plus I take no responsibility for their content, etc.
-->
<html lang="en">
<head>
<title>PHP Feed Reader</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="styles.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/spin.js/2.0.1/spin.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/spin.js/2.0.1/jquery.spin.min.js"></script>
<script>var last_updated = <?=$REFRESHTIME;?>;</script>
<script src="functions.js"></script>
</head>
<body>
<div id="heading">
<h1>PHP Feed Reader</h1>
</div>
<div id="container">
<?php foreach ($BLOGARRAY as $BLOGITEM): ?>
<div id="<?=$BLOGITEM->getBlogMd5()?>" class="post" data-date="<?=$BLOGITEM->getPostDateTime()?>">
<div class="inner">
<div class="post_header" style="background-image:url(https://www.google.com/s2/favicons?domain_url=<?=$BLOGITEM->getBlogURL()?>)">
<h2><a href="<?=$BLOGITEM->getBlogURL()?>" target="_blank"><?=htmlspecialchars($BLOGITEM->getBlogTitle())?></a></h2>
<span class="post_date"><i>- <?=$BLOGITEM->getPostRelativeDate()?> </i></span>
</div>
<div class="post_contents">
<p class="post_title"> <a href="<?=$BLOGITEM->getPostURL()?>" target="_blank"><?=$BLOGITEM->getPostTitle()?></a> </p>
<p class="post_description"> <?=$BLOGITEM->getPostDescription($CHARLENGTH)?> </p>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
<div id="footer">
<span id="updated">Updated <?=time_elapsed_string(filemtime("/tmp/" . $BLOGITEM->getBlogMd5()))?></span> (<a href="#" onclick="requestUpdate();return false;">update now</a>) - <a href="index.php?mode=json">JSON</a>
<span class="right">Content and linked pages are copyright their respective owners</span>
</div>
</body>
</html>