WordPress 3.0 beta 1 documentation kindly provided to you by Hay Kranen
| [ Index ] |
PHP Cross Reference of WordPress 3.0 beta 1 |
|
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * RSS 1 RDF Feed Template for displaying RSS 1 Posts feed. 4 * 5 * @package WordPress 6 */ 7 8 header('Content-Type: ' . feed_content_type('rdf') . '; charset=' . get_option('blog_charset'), true); 9 $more = 1; 10 11 echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> 12 <rdf:RDF 13 xmlns="http://purl.org/rss/1.0/" 14 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 15 xmlns:dc="http://purl.org/dc/elements/1.1/" 16 xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" 17 xmlns:admin="http://webns.net/mvcb/" 18 xmlns:content="http://purl.org/rss/1.0/modules/content/" 19 <?php do_action('rdf_ns'); ?> 20 > 21 <channel rdf:about="<?php bloginfo_rss("url") ?>"> 22 <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title> 23 <link><?php bloginfo_rss('url') ?></link> 24 <description><?php bloginfo_rss('description') ?></description> 25 <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></dc:date> 26 <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod> 27 <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency> 28 <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase> 29 <?php do_action('rdf_header'); ?> 30 <items> 31 <rdf:Seq> 32 <?php while (have_posts()): the_post(); ?> 33 <rdf:li rdf:resource="<?php the_permalink_rss() ?>"/> 34 <?php endwhile; ?> 35 </rdf:Seq> 36 </items> 37 </channel> 38 <?php rewind_posts(); while (have_posts()): the_post(); ?> 39 <item rdf:about="<?php the_permalink_rss() ?>"> 40 <title><?php the_title_rss() ?></title> 41 <link><?php the_permalink_rss() ?></link> 42 <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt, false); ?></dc:date> 43 <dc:creator><?php the_author() ?></dc:creator> 44 <?php the_category_rss('rdf') ?> 45 <?php if (get_option('rss_use_excerpt')) : ?> 46 <description><?php the_excerpt_rss() ?></description> 47 <?php else : ?> 48 <description><?php the_excerpt_rss() ?></description> 49 <content:encoded><![CDATA[<?php the_content_feed('rdf') ?>]]></content:encoded> 50 <?php endif; ?> 51 <?php do_action('rdf_item'); ?> 52 </item> 53 <?php endwhile; ?> 54 </rdf:RDF>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Apr 5 14:26:09 2010 | Cross-referenced by PHPXref 0.7 |