blob: 986b46748707b4bb67581ae380af891387753941 (
plain)
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
|
<?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>
<?php echo $l->t('Some Setting');?>
:"
<?php echo $_['somesetting']; ?>
"
*/ ?>
|