Changeset 956 for trunk/wp-atom.php
- Timestamp:
- 03/01/2004 06:13:32 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-atom.php
r901 r956 8 8 header('Content-type: application/atom+xml', true); 9 9 10 if (!isset($rss_language)) { $rss_language = 'en'; }11 if (!isset($rss_encoded_html)) { $rss_encoded_html = 0; }12 if (!isset($rss_excerpt_length) || ($rss_encoded_html == 1)) { $rss_excerpt_length = 0; }13 10 ?> 14 11 <?php echo '<?xml version="1.0"?'.'>'; ?> … … 16 13 xmlns="http://purl.org/atom/ns#" 17 14 xmlns:dc="http://purl.org/dc/elements/1.1/" 18 xml:lang="<?php echo $rss_language?>">15 xml:lang="<?php echo get_settings('rss_language'); ?>"> 19 16 <title><?php bloginfo_rss('name') ?></title> 20 17 <link rel="alternate" type="text/html" href="<?php bloginfo_rss('url') ?>" /> … … 35 32 <issued><?php the_time('Y-m-d\TH:i:s\Z'); ?></issued> 36 33 <?php the_category_rss('rdf') ?> 37 <?php $more = 1; if ( $rss_use_excerpt) {34 <?php $more = 1; if (get_settings('rss_use_excerpt')) { 38 35 ?> 39 <summary type="text/html" mode="escaped"><?php the_excerpt_rss( $rss_excerpt_length, 2) ?></summary>36 <summary type="text/html" mode="escaped"><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></summary> 40 37 <?php 41 38 } else { // use content 42 39 ?> 43 <summary type="text/html"><?php the_content_rss('', 0, '', $rss_excerpt_length, 2) ?></summary>40 <summary type="text/html"><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2) ?></summary> 44 41 <?php 45 42 } // end else use content … … 47 44 <content type="text/html" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content> 48 45 </entry> 49 <?php $items_count++; if (($items_count == $posts_per_rss) && empty($m)) { break; } } } ?>46 <?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?> 50 47 </feed>
Note: See TracChangeset
for help on using the changeset viewer.