| [ Index ] |
|
Code source de WordPress 2.1.2 |
1 <?php 2 3 if (empty($wp)) { 4 require_once('wp-config.php'); 5 wp('feed=rss2'); 6 } 7 8 header('Content-type: text/xml; charset=' . get_option('blog_charset'), true); 9 $more = 1; 10 11 ?> 12 <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> 13 14 <!-- generator="wordpress/<?php bloginfo_rss('version') ?>" --> 15 <rss version="2.0" 16 xmlns:content="http://purl.org/rss/1.0/modules/content/" 17 xmlns:wfw="http://wellformedweb.org/CommentAPI/" 18 xmlns:dc="http://purl.org/dc/elements/1.1/" 19 <?php do_action('rss2_ns'); ?> 20 > 21 22 <channel> 23 <title><?php bloginfo_rss('name'); ?></title> 24 <link><?php bloginfo_rss('url') ?></link> 25 <description><?php bloginfo_rss("description") ?></description> 26 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></pubDate> 27 <generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator> 28 <language><?php echo get_option('rss_language'); ?></language> 29 <?php do_action('rss2_head'); ?> 30 <?php while( have_posts()) : the_post(); ?> 31 <item> 32 <title><?php the_title_rss() ?></title> 33 <link><?php permalink_single_rss() ?></link> 34 <comments><?php comments_link(); ?></comments> 35 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate> 36 <dc:creator><?php the_author() ?></dc:creator> 37 <?php the_category_rss() ?> 38 39 <guid isPermaLink="false"><?php the_guid(); ?></guid> 40 <?php if (get_option('rss_use_excerpt')) : ?> 41 <description><![CDATA[<?php the_excerpt_rss() ?>]]></description> 42 <?php else : ?> 43 <description><![CDATA[<?php the_excerpt_rss() ?>]]></description> 44 <?php if ( strlen( $post->post_content ) > 0 ) : ?> 45 <content:encoded><![CDATA[<?php the_content() ?>]]></content:encoded> 46 <?php else : ?> 47 <content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded> 48 <?php endif; ?> 49 <?php endif; ?> 50 <wfw:commentRss><?php echo comments_rss(); ?></wfw:commentRss> 51 <?php rss_enclosure(); ?> 52 <?php do_action('rss2_item'); ?> 53 </item> 54 <?php endwhile; ?> 55 </channel> 56 </rss>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
| Généré le : Fri Mar 30 19:41:27 2007 | par Balluche grâce à PHPXref 0.7 |