Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
- <title></title>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
- <script type="text/javascript" src="./inc/jquery.layout.js"></script>
- <link rel="stylesheet" type="text/css" href="./css/index1.css" />
- <script type="text/javascript">
- $(document).ready(function() {
- var my_layout = $('#page_wrap').layout();
- $("a.title").live("click", function(){
- $(this).next("div.content").slideToggle();
- $('div#view_content').mouseleave(function(){
- $('div.content').slideUp();
- });
- });
- });
- </script>
- </head>
- <body>
- <div id='header'>
- <div id="date">
- <iframe src="http://free.timeanddate.com/clock/i2ecokut/n43/fti/tt0/tw0/tm1/tb4" frameborder="0" width="89" height="34"></iframe></div>
- <div id='loadArea'>Loading...</div>
- </div>
- <div id='page_wrap'>
- <div class='ui-layout-center' id='view_content'>
- <?php
- //get the simplepie library
- require("connect.php");
- require("./inc/simplepie.inc");
- //create new Simplepie object
- $feed1 = new SimplePie();
- $feed1->set_feed_url($url));
- //enable caching
- $feed1->enable_cache(true);
- //provide the caching folder
- $feed1->set_cache_location('cache');
- //set the amount of seconds you want to cache the feed
- $feed1->set_cache_duration(600);
- //init the process
- $feed1->init();
- //let simplepie handle the content type (atom, RSS...)
- $feed1->handle_content_type();
- /* //If there is no favicon, use an alternate one.
- if (!$favicon = $feed1->get_favicon())
- {
- //$favicon = './img/favicon.png';
- }
- */
- ?>
- <?php if ($feed->error): ?>
- <p><?php echo $feed->error; ?></p>
- <?php endif; ?>
- <?php
- echo "<a href='".$url."' class='feed_title'>".$name." »</a>
- <ul class='records'>";
- foreach ($feed1->get_items() as $item)
- {
- echo "<li><img src=".$feed1->get_favicon()." id='favicon' /><a href='javascript:;' class='title'>".$item->get_title()."</a>
- <div class='content'>
- <a class='record_title' href='".$item->get_link()."' >".$item->get_title()." »</a>"
- .$item->get_content()."<br />
- <p>Source: <a href=" . $feed1->get_permalink() . "><img src=" . $feed1->get_favicon(). " alt=". $feed1->get_title() ." /></a> | " . $item->get_date() . "</p>
- </div>
- </li>";
- }
- echo "</ul>";
- ?>
- <script type="text/javascript" src="./inc/scroller.js"></script>
- <script type="text/javascript">
- $('.records').scroller();
- </script>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement