Created
January 16, 2011 16:40
-
-
Save pirogoeth/781930 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GNU nano 2.2.4 File: ../index.php | |
<? | |
include ('include/header.php'); | |
include ('php/simplepie.inc'); | |
function github_feed () { | |
$feed = new SimplePie; | |
$feed->set_feed_url('http://github.com/miyoko.atom'); | |
$feed->enable_cache(true); | |
$feed->init(); | |
$feed->handle_content_type(); | |
foreach($feed->get_items() as $item) { | |
echo '<strong><a href="' . $item->ge$ | |
echo '<div class="medium awesome gre$ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment