mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Some feed template function cleanup.
git-svn-id: https://develop.svn.wordpress.org/trunk@2068 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+7
-7
@@ -15,11 +15,11 @@ $more = 1;
|
||||
xmlns="http://purl.org/atom/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<title><?php bloginfo_rss('name') ?></title>
|
||||
<link rel="alternate" type="text/html" href="<?php bloginfo_rss('url') ?>" />
|
||||
<link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" />
|
||||
<tagline><?php bloginfo_rss("description") ?></tagline>
|
||||
<modified><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT')); ?></modified>
|
||||
<copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate('blog')); ?></copyright>
|
||||
<generator url="http://wordpress.org/" version="<?php echo $wp_version ?>">WordPress</generator>
|
||||
<generator url="http://wordpress.org/" version="<?php bloginfo_rss('version'); ?>">WordPress</generator>
|
||||
|
||||
<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
|
||||
<entry>
|
||||
@@ -28,11 +28,11 @@ $more = 1;
|
||||
</author>
|
||||
<title><?php the_title_rss() ?></title>
|
||||
<link rel="alternate" type="text/html" href="<?php permalink_single_rss() ?>" />
|
||||
<id><?php bloginfo_rss("url") ?>?p=<?php echo $id; ?></id>
|
||||
<modified><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_modified_gmt); ?></modified>
|
||||
<issued><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt); ?></issued>
|
||||
<id><?php the_guid(); ?></id>
|
||||
<modified><?php the_time('Y-m-d\TH:i:s\Z'); ?></modified>
|
||||
<issued> <?php the_time('Y-m-d\TH:i:s\Z'); ?></issued>
|
||||
<?php the_category_rss('rdf') ?>
|
||||
<summary type="text/html" mode="escaped"><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></summary>
|
||||
<summary type="text/html" mode="escaped"><?php the_excerpt_rss(); ?></summary>
|
||||
<?php if (!get_settings('rss_use_excerpt')) : ?>
|
||||
<?php if ( strlen( $post->post_content ) ) : ?>
|
||||
<content type="text/html" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content>
|
||||
@@ -40,7 +40,7 @@ $more = 1;
|
||||
<content type="text/html" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></content>
|
||||
<?php endif; ?>
|
||||
<?php else : ?>
|
||||
<content type="text/html" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_excerpt_rss('', 2) ?>]]></content>
|
||||
<content type="text/html" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_excerpt_rss() ?>]]></content>
|
||||
<?php endif; ?>
|
||||
</entry>
|
||||
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
|
||||
|
||||
Reference in New Issue
Block a user