diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-05-08 15:59:52 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-05-08 15:59:52 -0400 |
commit | bb29f28e99a499475258afec3008f9bd94e973d7 (patch) | |
tree | 531b9541606cc8578e532ffc83c6adef4bdc289e /templates | |
parent | 4bf4af8741ca723273ae9aff0f1d6c38511e2a07 (diff) |
missing a file in the previous commit
Diffstat (limited to 'templates')
-rw-r--r-- | templates/main.php | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/templates/main.php b/templates/main.php index 8e2eccefa..986b46748 100644 --- a/templates/main.php +++ b/templates/main.php @@ -1,3 +1,32 @@ +<?php + +$feed = new SimplePie_Core(); +$feed->set_feed_url( 'http://algorithmsforthekitchen.com/blog/?feed=rss2' ); +$feed->enable_cache( false ); +$feed->init(); +$feed->handle_content_type(); + +$item = new OC_News_Item($feed->get_item(1)); + +if ($item->isRead()) + echo $l->t('Read'); +else + echo $l->t('Unread'); + +$item->setRead(); +$item->setUnread(); +$item->setRead(); + +echo "<br>"; + +if ($item->isRead()) + echo $l->t('Read'); +else + echo $l->t('Unread'); + +?> + +<?php /* this is from apptemplate <h1>This is an example app template</h1> @@ -5,6 +34,4 @@ :" <?php echo $_['somesetting']; ?> " - - - +*/ ?>
\ No newline at end of file |