Last change
on this file since 1575 was
1575,
checked in by saxmatt, 21 years ago
|
Vanquishing the terror of iso-8859-1.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1.4 KB
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!isset($feed) || !$feed) { |
---|
4 | $blog = 1; |
---|
5 | $doing_rss = 1; |
---|
6 | require('wp-blog-header.php'); |
---|
7 | } |
---|
8 | |
---|
9 | header('Content-type: text/xml; charset=' . get_settings('blog_charset'), true); |
---|
10 | $more = 1; |
---|
11 | |
---|
12 | ?> |
---|
13 | <?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?> |
---|
14 | <!-- generator="wordpress/<?php echo $wp_version ?>" --> |
---|
15 | <rss version="0.92"> |
---|
16 | <channel> |
---|
17 | <title><?php bloginfo_rss('name') ?></title> |
---|
18 | <link><?php bloginfo_rss('url') ?></link> |
---|
19 | <description><?php bloginfo_rss('description') ?></description> |
---|
20 | <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), 0); ?></lastBuildDate> |
---|
21 | <docs>http://backend.userland.com/rss092</docs> |
---|
22 | |
---|
23 | <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?> |
---|
24 | <item> |
---|
25 | <title><?php the_title_rss() ?></title> |
---|
26 | <?php |
---|
27 | if (get_settings('rss_use_excerpt')) { |
---|
28 | ?> |
---|
29 | <description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description> |
---|
30 | <?php |
---|
31 | } else { // use content |
---|
32 | ?> |
---|
33 | <description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), get_settings('rss_encoded_html')) ?></description> |
---|
34 | <?php |
---|
35 | } // end else use content |
---|
36 | ?> |
---|
37 | <link><?php permalink_single_rss() ?></link> |
---|
38 | </item> |
---|
39 | <?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?> |
---|
40 | </channel> |
---|
41 | </rss> |
---|
Note: See
TracBrowser
for help on using the repository browser.