Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 58 lines (54 sloc) 2.237 kB
d0915e2 b2rss/rdf -> wp-rss/rdf
mikelittle authored
1 <?php /* RDF 1.0 generator, original version by garym@teledyn.com */
14baf17 some cleanups, and a quick undefined variable fix
michelvaldrighi authored
2
1baf503 Break blog header up into functional chunks. Stick it all in a WP cl…
ryan authored
3 if (empty($wp)) {
4 require_once('wp-config.php');
5 wp('feed=rdf');
6d55b31 Clean feed and trackback URLs.
rboren authored
6 }
7
2d78e31 Vanquishing the terror of iso-8859-1.
saxmatt authored
8 header('Content-type: application/rdf+xml; charset=' . get_settings('blog_charset'), true);
14baf17 some cleanups, and a quick undefined variable fix
michelvaldrighi authored
9 $more = 1;
d0915e2 b2rss/rdf -> wp-rss/rdf
mikelittle authored
10
11 ?>
89d3d0e now feeds use encoding=blog_charset
michelvaldrighi authored
12 <?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?>
99a7358 Renaming Reloaded.
saxmatt authored
13 <!-- generator="wordpress/<?php echo $wp_version ?>" -->
d0915e2 b2rss/rdf -> wp-rss/rdf
mikelittle authored
14 <rdf:RDF
15 xmlns="http://purl.org/rss/1.0/"
16 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
17 xmlns:dc="http://purl.org/dc/elements/1.1/"
18 xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
19 xmlns:admin="http://webns.net/mvcb/"
20 xmlns:content="http://purl.org/rss/1.0/modules/content/"
cbe1c35 Adding hooks in syndication feeds.
matt authored
21 <?php do_action('rdf_ns'); ?>
d0915e2 b2rss/rdf -> wp-rss/rdf
mikelittle authored
22 >
23 <channel rdf:about="<?php bloginfo_rss("url") ?>">
24 <title><?php bloginfo_rss('name') ?></title>
25 <link><?php bloginfo_rss('url') ?></link>
26 <description><?php bloginfo_rss('description') ?></description>
810bf22 Do not translate dates in feeds. http://mosquito.wordpress.org/view.…
ryan authored
27 <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></dc:date>
99a7358 Renaming Reloaded.
saxmatt authored
28 <admin:generatorAgent rdf:resource="http://wordpress.org/?v=<?php echo $wp_version ?>"/>
d0915e2 b2rss/rdf -> wp-rss/rdf
mikelittle authored
29 <sy:updatePeriod>hourly</sy:updatePeriod>
30 <sy:updateFrequency>1</sy:updateFrequency>
31 <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
cbe1c35 Adding hooks in syndication feeds.
matt authored
32 <?php do_action('rdf_header'); ?>
d0915e2 b2rss/rdf -> wp-rss/rdf
mikelittle authored
33 <items>
34 <rdf:Seq>
b96fd5e Update loop in rdf. Props Leffe. fixes #1542
ryan authored
35 <?php while (have_posts()): the_post(); ?>
d0915e2 b2rss/rdf -> wp-rss/rdf
mikelittle authored
36 <rdf:li rdf:resource="<?php permalink_single_rss() ?>"/>
b96fd5e Update loop in rdf. Props Leffe. fixes #1542
ryan authored
37 <?php endwhile; ?>
d0915e2 b2rss/rdf -> wp-rss/rdf
mikelittle authored
38 </rdf:Seq>
39 </items>
40 </channel>
b96fd5e Update loop in rdf. Props Leffe. fixes #1542
ryan authored
41 <?php rewind_posts(); while (have_posts()): the_post(); ?>
d0915e2 b2rss/rdf -> wp-rss/rdf
mikelittle authored
42 <item rdf:about="<?php permalink_single_rss() ?>">
43 <title><?php the_title_rss() ?></title>
44 <link><?php permalink_single_rss() ?></link>
810bf22 Do not translate dates in feeds. http://mosquito.wordpress.org/view.…
ryan authored
45 <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt, false); ?></dc:date>
f95c9db Moderation confirmation from Ryan, some other template and comment ed…
saxmatt authored
46 <dc:creator><?php the_author() ?></dc:creator>
c3d03c5 Multiple category support for RDF.
saxmatt authored
47 <?php the_category_rss('rdf') ?>
2320c9b Correctly respect excerpt wishes.
saxmatt authored
48 <?php if (get_settings('rss_use_excerpt')) : ?>
7f98c03 Some feed template function cleanup.
saxmatt authored
49 <description><?php the_excerpt_rss() ?></description>
2320c9b Correctly respect excerpt wishes.
saxmatt authored
50 <?php else : ?>
b6aa1f6 Migration to get_settings
saxmatt authored
51 <description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2) ?></description>
d0915e2 b2rss/rdf -> wp-rss/rdf
mikelittle authored
52 <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
2320c9b Correctly respect excerpt wishes.
saxmatt authored
53 <?php endif; ?>
cbe1c35 Adding hooks in syndication feeds.
matt authored
54 <?php do_action('rdf_item'); ?>
d0915e2 b2rss/rdf -> wp-rss/rdf
mikelittle authored
55 </item>
b96fd5e Update loop in rdf. Props Leffe. fixes #1542
ryan authored
56 <?php endwhile; ?>
57 </rdf:RDF>
Something went wrong with that request. Please try again.