-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewsfeed.php
79 lines (54 loc) · 1.72 KB
/
newsfeed.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php include 'zhead.php'; ?>
<!-- Document Wrapper
============================================= -->
<div id="wrapper" class="clearfix">
<!-- Header
============================================= -->
<?php include 'include/header.php'; ?>
<!-- #header end -->
<!-- Content
============================================= -->
<section id="content">
<div class="container clearfix">
<?php include 'include/county-nav.php'; ?>
<div class="clearfix"></div>
<!-- county-side-nav
============================================= -->
<?php include 'includes/nav_county_side.php'; ?>
<!-- county-side-nav :: END -->
<div class="col-md-9">
<div class="clearfix">
<div>
<div><h3><?php echo $cProfile['county']; ?> County News</h3></div>
<!-- content
============================================= -->
<div>
<fieldset class="rsslib">
<?php
if ($cid == '') { $news='kenya'; }
else { $news = 'county+'.$cProfile['county']; }
$url = "http://news.google.com/news?cf=all&ned=us&hl=en&q=".$news."&output=rss";
//echobr($url);
require_once("includes/rss/rsslib.php");
$cache = RSS_Display($url, 15, false, true);
//file_put_contents($cachename, $cache);
echo $cache;
?>
</fieldset>
</div>
<!-- content :: END -->
</div>
</div>
<div class="clearfix"><div class="padd10"></div> </div>
</div>
</div>
</section><!-- #content end -->
<!-- Footer
============================================= -->
<?php include 'include/footer.php'; ?>
<!-- #footer end -->
</div><!-- #wrapper end -->
<link href="includes/rss/rss-style.css" rel="stylesheet">
<?php include 'zfoot.php'; ?>
</body>
</html>