Changeset 1356
- Timestamp:
- 05/24/2004 04:49:19 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-atom.php
r1268 r1356 7 7 8 8 header('Content-type: application/atom+xml', true); 9 $more = 1; 9 10 10 11 ?> … … 32 33 <issued><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt); ?></issued> 33 34 <?php the_category_rss('rdf') ?> 34 <?php $more = 1; if (get_settings('rss_use_excerpt')) { ?>35 35 <summary type="text/html" mode="escaped"><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></summary> 36 <?php } else { // use content ?> 37 <summary type="text/html"><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2) ?></summary> 36 <?php if (!get_settings('rss_use_excerpt')) { ?> 38 37 <content type="text/html" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content> 39 <?php } // end else use content?>38 <?php } ?> 40 39 </entry> 41 40 <?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
Note: See TracChangeset
for help on using the changeset viewer.