common_element_start('channel', array('rdf:about' => $channel['url']));
common_element('title', NULL, $channel['title']);
common_element('link', NULL, $channel['link']);
common_element_start('channel', array('rdf:about' => $channel['url']));
common_element('title', NULL, $channel['title']);
common_element('link', NULL, $channel['link']);
foreach ($notices as $notice) {
common_element('rdf:li', array('rdf:resource' => $notice->uri));
}
foreach ($notices as $notice) {
common_element('rdf:li', array('rdf:resource' => $notice->uri));
}
function show_item($notice) {
global $config;
$profile = Profile::staticGet($notice->profile_id);
$nurl = common_local_url('shownotice', array('notice' => $notice->id));
common_element_start('item', array('rdf:about' => $notice->uri));
function show_item($notice) {
global $config;
$profile = Profile::staticGet($notice->profile_id);
$nurl = common_local_url('shownotice', array('notice' => $notice->id));
common_element_start('item', array('rdf:about' => $notice->uri));
common_element('dc:date', NULL, common_date_w3dtf($notice->created));
common_element('dc:creator', NULL, ($profile->fullname) ? $profile->fullname : $profile->nickname);
common_element('cc:licence', array('rdf:resource' => $config['license']['url']));
common_element_end('item');
}
common_element('dc:date', NULL, common_date_w3dtf($notice->created));
common_element('dc:creator', NULL, ($profile->fullname) ? $profile->fullname : $profile->nickname);
common_element('cc:licence', array('rdf:resource' => $config['license']['url']));
common_element_end('item');
}
'http://web.resource.org/cc/',
'xmlns' => 'http://purl.org/rss/1.0/'));
}
'http://web.resource.org/cc/',
'xmlns' => 'http://purl.org/rss/1.0/'));
}