Adding hooks in syndication feeds.
git-svn-id: https://develop.svn.wordpress.org/trunk@2625 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5a7601b50c
commit
1b7bfde51f
@ -16,6 +16,7 @@ $more = 1;
|
||||
xmlns="http://purl.org/atom/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xml:lang="<?php echo get_option('rss_language'); ?>"
|
||||
<?php do_action('atom_ns'); ?>
|
||||
>
|
||||
<title><?php bloginfo_rss('name') ?></title>
|
||||
<link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" />
|
||||
@ -23,7 +24,7 @@ $more = 1;
|
||||
<modified><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></modified>
|
||||
<copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate('blog'), 0); ?></copyright>
|
||||
<generator url="http://wordpress.org/" version="<?php bloginfo_rss('version'); ?>">WordPress</generator>
|
||||
|
||||
<?php do_action('atom_head'); ?>
|
||||
<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
|
||||
<entry>
|
||||
<author>
|
||||
@ -40,6 +41,7 @@ $more = 1;
|
||||
<content type="<?php bloginfo('html_type'); ?>" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content>
|
||||
<?php endif; ?>
|
||||
<?php rss_enclosure(); ?>
|
||||
<?php do_action('atom_entry'); ?>
|
||||
</entry>
|
||||
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
|
||||
</feed>
|
||||
|
@ -20,6 +20,7 @@ $more = 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/"
|
||||
<?php do_action('rdf_ns'); ?>
|
||||
>
|
||||
<channel rdf:about="<?php bloginfo_rss("url") ?>">
|
||||
<title><?php bloginfo_rss('name') ?></title>
|
||||
@ -30,6 +31,7 @@ $more = 1;
|
||||
<sy:updatePeriod>hourly</sy:updatePeriod>
|
||||
<sy:updateFrequency>1</sy:updateFrequency>
|
||||
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
|
||||
<?php do_action('rdf_header'); ?>
|
||||
<items>
|
||||
<rdf:Seq>
|
||||
<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
|
||||
@ -51,7 +53,7 @@ $more = 1;
|
||||
<description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2) ?></description>
|
||||
<content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php do_action('rdf_item'); ?>
|
||||
</item>
|
||||
<?php } } ?>
|
||||
</rdf:RDF>
|
@ -21,6 +21,7 @@ $more = 1;
|
||||
<lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate>
|
||||
<docs>http://backend.userland.com/rss092</docs>
|
||||
<language><?php echo get_option('rss_language'); ?></language>
|
||||
<?php do_action('rss_head'); ?>
|
||||
|
||||
<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
|
||||
<item>
|
||||
@ -31,6 +32,7 @@ $more = 1;
|
||||
<description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length')) ?></description>
|
||||
<?php } ?>
|
||||
<link><?php permalink_single_rss() ?></link>
|
||||
<?php do_action('rss_item'); ?>
|
||||
</item>
|
||||
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
|
||||
</channel>
|
||||
|
@ -18,6 +18,7 @@ $more = 1;
|
||||
xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
||||
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
<?php do_action('rss2_ns'); ?>
|
||||
>
|
||||
|
||||
<channel>
|
||||
@ -27,7 +28,7 @@ $more = 1;
|
||||
<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></pubDate>
|
||||
<generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator>
|
||||
<language><?php echo get_option('rss_language'); ?></language>
|
||||
|
||||
<?php do_action('rss2_head'); ?>
|
||||
<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
|
||||
<item>
|
||||
<title><?php the_title_rss() ?></title>
|
||||
@ -50,6 +51,7 @@ $more = 1;
|
||||
<?php endif; ?>
|
||||
<wfw:commentRSS><?php echo comments_rss(); ?></wfw:commentRSS>
|
||||
<?php rss_enclosure(); ?>
|
||||
<?php do_action('rss2_item'); ?>
|
||||
</item>
|
||||
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
|
||||
</channel>
|
||||
|
Loading…
Reference in New Issue
Block a user