Changeset 956 for trunk/wp-rdf.php
- Timestamp:
- 03/01/2004 06:13:32 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-rdf.php
r901 r956 23 23 24 24 add_filter('the_content', 'trim'); 25 if (!isset($rss_language)) { $rss_language = 'en'; }26 25 ?> 27 26 <?php echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?".">"; ?> … … 39 38 <link><?php bloginfo_rss('url') ?></link> 40 39 <description><?php bloginfo_rss('description') ?></description> 41 <dc:language><?php echo $rss_language?></dc:language>40 <dc:language><?php echo get_settings('rss_language'); ?></dc:language> 42 41 <dc:date><?php echo gmdate('Y-m-d\TH:i:s'); ?></dc:date> 43 42 <dc:creator><?php echo antispambot($admin_email) ?></dc:creator> … … 51 50 <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?> 52 51 <rdf:li rdf:resource="<?php permalink_single_rss() ?>"/> 53 <?php $wp_items[] = $row; $items_count++; if (($items_count == $posts_per_rss) && empty($m)) { break; } } } ?>52 <?php $wp_items[] = $row; $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?> 54 53 </rdf:Seq> 55 54 </items> … … 62 61 <dc:creator><?php the_author() ?> (mailto:<?php the_author_email() ?>)</dc:creator> 63 62 <?php the_category_rss('rdf') ?> 64 <?php $more = 1; if ( $rss_use_excerpt) {63 <?php $more = 1; if (get_settings('rss_use_excerpt')) { 65 64 ?> 66 <description><?php the_excerpt_rss( $rss_excerpt_length, 2) ?></description>65 <description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description> 67 66 <?php 68 67 } else { // use content 69 68 ?> 70 <description><?php the_content_rss('', 0, '', $rss_excerpt_length, 2) ?></description>69 <description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2) ?></description> 71 70 <?php 72 71 } // end else use content
Note: See TracChangeset
for help on using the changeset viewer.