PHP Cross Reference of WordPress Subversion HEAD |
| [ Index ] [ Classes ] [ Functions ] [ Variables ] [ Constants ] |
[Summary view] [Print] [Text view]
1 <?php 2 header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true); 3 $more = 1; 4 5 ?> 6 <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> 7 8 <rss version="2.0" 9 xmlns:content="http://purl.org/rss/1.0/modules/content/" 10 xmlns:wfw="http://wellformedweb.org/CommentAPI/" 11 xmlns:dc="http://purl.org/dc/elements/1.1/" 12 xmlns:atom="http://www.w3.org/2005/Atom" 13 <?php do_action('rss2_ns'); ?> 14 > 15 16 <channel> 17 <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title> 18 <atom:link href="<?php bloginfo('rss2_url') ?>" rel="self" type="application/rss+xml" /> 19 <link><?php bloginfo_rss('url') ?></link> 20 <description><?php bloginfo_rss("description") ?></description> 21 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></pubDate> 22 <?php the_generator( 'rss2' ); ?> 23 <language><?php echo get_option('rss_language'); ?></language> 24 <?php do_action('rss2_head'); ?> 25 <?php while( have_posts()) : the_post(); ?> 26 <item> 27 <title><?php the_title_rss() ?></title> 28 <link><?php the_permalink_rss() ?></link> 29 <comments><?php comments_link(); ?></comments> 30 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate> 31 <dc:creator><?php the_author() ?></dc:creator> 32 <?php the_category_rss() ?> 33 34 <guid isPermaLink="false"><?php the_guid(); ?></guid> 35 <?php if (get_option('rss_use_excerpt')) : ?> 36 <description><![CDATA[<?php the_excerpt_rss() ?>]]></description> 37 <?php else : ?> 38 <description><![CDATA[<?php the_excerpt_rss() ?>]]></description> 39 <?php if ( strlen( $post->post_content ) > 0 ) : ?> 40 <content:encoded><![CDATA[<?php the_content() ?>]]></content:encoded> 41 <?php else : ?> 42 <content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded> 43 <?php endif; ?> 44 <?php endif; ?> 45 <wfw:commentRss><?php echo comments_rss(); ?></wfw:commentRss> 46 <?php rss_enclosure(); ?> 47 <?php do_action('rss2_item'); ?> 48 </item> 49 <?php endwhile; ?> 50 </channel> 51 </rss>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated Thu Dec 6 06:47:08 2007 for RedAlt XRefs | Cross-referenced by PHPXref 0.6 and RedAlt |