diff -Nr dotclear/inc/public/class.dc.template.php dotclear-rdf/inc/public/class.dc.template.php
542c542
< if (!preg_match('#^(rss2|atom)$#',$type)) {
---
> if (!preg_match('#^(rss2|atom|rdf)$#',$type)) {
637c637
< if (!preg_match('#^(rss2|atom)$#',$type)) {
---
> if (!preg_match('#^(rss2|atom|rdf)$#',$type)) {
1779c1779
< ?>
\ No newline at end of file
---
> ?>
diff -Nr dotclear/inc/public/default-templates/rdf-comments.xml dotclear-rdf/inc/public/default-templates/rdf-comments.xml
0a1,61
>
> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> xmlns:dc="http://purl.org/dc/elements/1.1/"
> xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> xmlns:admin="http://webns.net/mvcb/"
> xmlns:content="http://purl.org/rss/1.0/modules/content/"
> xmlns="http://purl.org/rss/1.0/">
>
>
> {{tpl:BlogName encode_xml="1"}}{{tpl:SysFeedSubtitle encode_xml="1"}}
> {{tpl:BlogURL}}
> {{tpl:BlogDescription encode_xml="1"}}
> {{tpl:BlogLanguage}}
> {{tpl:BlogEditor}}
>
> {{tpl:BlogUpdateDate}}
>
> daily
> 1
> {{tpl:BlogUpdateDate}}
>
>
>
>
>
>
>
>
>
>
>
>
>
> -
> [ping] {{tpl:PingEntryTitle encode_xml="1"}} - {{tpl:PingBlogName encode_xml="1"}}
> {{tpl:PingPostURL}}#c{{tpl:PingID}}
> {{tpl:PingDate rfc822="1"}}
> {{tpl:PingBlogName encode_xml="1"}}
> {{tpl:PingContent remove_html="1" encode_xml="1" cut_string="200"}}
> <p><a href="{{tpl:PingAuthorURL}}">{{tpl:PingTitle}}</a></p>
> {{tpl:PingContent encode_xml="1"}}
>
>
>
>
>
> -
> {{tpl:CommentEntryTitle encode_xml="1"}} - {{tpl:CommentAuthor encode_xml="1"}}
> {{tpl:CommentPostURL}}#c{{tpl:CommentID}}
> {{tpl:CommentDate rfc822="1"}}
> {{tpl:CommentAuthor encode_xml="1"}}
> {{tpl:CommentContent remove_html="1" encode_xml="1" cut_string="200"}}
> {{tpl:CommentContent absolute_urls="1" encode_xml="1"}}
>
>
>
>
>
>
>
diff -Nr dotclear/inc/public/default-templates/rdf.xml dotclear-rdf/inc/public/default-templates/rdf.xml
0a1,51
>
> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> xmlns:dc="http://purl.org/dc/elements/1.1/"
> xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> xmlns:admin="http://webns.net/mvcb/"
> xmlns:content="http://purl.org/rss/1.0/modules/content/"
> xmlns="http://purl.org/rss/1.0/">
>
>
> {{tpl:BlogName encode_xml="1"}}{{tpl:SysFeedSubtitle encode_xml="1"}}
> {{tpl:BlogURL}}
> {{tpl:BlogDescription encode_xml="1"}}
> {{tpl:BlogLanguage}}
> {{tpl:BlogEditor}}
>
> {{tpl:BlogUpdateDate}}
>
> daily
> 1
> {{tpl:BlogUpdateDate}}
>
>
>
>
>
>
>
>
>
>
>
> -
> {{tpl:EntryTitle encode_xml="1"}}
> {{tpl:EntryURL}}
> {{tpl:EntryDate rfc822="1"}}
> {{tpl:EntryLang}}
> {{tpl:EntryAuthorCommonName encode_xml="1"}}
> {{tpl:EntryCategory encode_html="1"}}
> {{tpl:MetaID}}
>
> {{tpl:EntryExcerpt remove_html="1" encode_xml="1"}}
> {{tpl:EntryContent remove_html="1" encode_xml="1" cut_string="200"}}
>
> {{tpl:EntryExcerpt absolute_urls="1" encode_xml="1"}}
> {{tpl:EntryContent absolute_urls="1" encode_xml="1"}}
>
>
>
>
>
diff -Nr dotclear/inc/public/lib.urlhandlers.php dotclear-rdf/inc/public/lib.urlhandlers.php
346c346
< elseif (preg_match('#^(atom|rss2)/comments/([0-9]+)$#',$args,$m))
---
> elseif (preg_match('#^(atom|rss2|rdf)/comments/([0-9]+)$#',$args,$m))
353c353
< elseif (preg_match('#^(?:category/(.+)/)?(atom|rss2)(/comments)?$#',$args,$m))
---
> elseif (preg_match('#^(?:category/(.+)/)?(atom|rss2|rdf)(/comments)?$#',$args,$m))
399a400,403
> if ($type == 'rdf') {
> $mime = 'application/rdf+xml';
> }
>
453c457
< ?>
\ No newline at end of file
---
> ?>
diff -Nr dotclear/plugins/metadata/_public.php dotclear-rdf/plugins/metadata/_public.php
172c172
< if (!preg_match('#^(rss2|atom)$#',$type)) {
---
> if (!preg_match('#^(rss2|atom|rdf)$#',$type)) {
230c230
< elseif (preg_match('%(.*?)/feed/(rss2|atom)?$%u',$args,$m))
---
> elseif (preg_match('%(.*?)/feed/(rss2|atom|rdf)?$%u',$args,$m))
232c232
< $type = $m[2] == 'atom' ? 'atom' : 'rss2';
---
> $type = $m[2] == 'atom' ? 'atom' : $m[2] == 'rdf' ? 'rdf' : 'rss2';
248a249,252
> if ($type == 'rdf') {
> $mime = 'application/rdf+xml';
> }
>
312c316
< ?>
\ No newline at end of file
---
> ?>
diff -Nr dotclear/plugins/widgets/_default_widgets.php dotclear-rdf/plugins/widgets/_default_widgets.php
42c42
< $widgets->subscribe->setting('type',__('Feeds type:'),'rss2','combo',array('RSS' => 'rss2','Atom' => 'atom'));
---
> $widgets->subscribe->setting('type',__('Feeds type:'),'rss2','combo',array('RSS' => 'rss2','Atom' => 'atom','RDF' => 'rdf'));
64c64
< ?>
\ No newline at end of file
---
> ?>
diff -Nr dotclear/plugins/widgets/_widgets_functions.php dotclear-rdf/plugins/widgets/_widgets_functions.php
175,176c175,176
< $type = ($w->type == 'atom' || $w->type == 'rss2') ? $w->type : 'rss2';
< $mime = $type == 'rss2' ? 'application/rss+xml' : 'application/atom+xml';
---
> $type = ($w->type == 'atom' || $w->type == 'rss2' || $w->type == 'rdf') ? $w->type : 'rss2';
> $mime = $type == 'rss2' ? 'application/rss+xml' : $type == 'rdf' ? 'application/rdf+xml' : 'application/atom+xml';
188c188
< 'title="'.sprintf($p_title,($type == 'atom' ? 'Atom' : 'RSS')).'" class="feed">'.
---
> 'title="'.sprintf($p_title,($type == 'atom' ? 'Atom' : $type == 'rdf' ? 'RDF' : 'RSS')).'" class="feed">'.
192c192
< 'title="'.sprintf($c_title,($type == 'atom' ? 'Atom' : 'RSS')).'" class="feed">'.
---
> 'title="'.sprintf($c_title,($type == 'atom' ? 'Atom' : $type == 'rdf' ? 'RDF' : 'RSS')).'" class="feed">'.
323c323
< ?>
\ No newline at end of file
---
> ?>
diff -Nr dotclear/themes/default/_head.html dotclear-rdf/themes/default/_head.html
0a1
>
6c7
<
\ No newline at end of file
---
>
diff -Nr dotclear/themes/default/category.html dotclear-rdf/themes/default/category.html
51c51
<
-
\ No newline at end of file
---
>