PHP Cross Reference of WordPress Subversion HEAD

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]

title

Body

[close]

/wp-includes/ -> feed-rdf.php (source)

   1  <?php
   2  header('Content-Type: application/rdf+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  <rdf:RDF
   8      xmlns="http://purl.org/rss/1.0/"
   9      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  10      xmlns:dc="http://purl.org/dc/elements/1.1/"
  11      xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  12      xmlns:admin="http://webns.net/mvcb/"
  13      xmlns:content="http://purl.org/rss/1.0/modules/content/"
  14      <?php do_action('rdf_ns'); ?>
  15  >
  16  <channel rdf:about="<?php bloginfo_rss("url") ?>">
  17      <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
  18      <link><?php bloginfo_rss('url') ?></link>
  19      <description><?php bloginfo_rss('description') ?></description>
  20      <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></dc:date>
  21      <?php the_generator( 'rdf' ); ?>
  22      <sy:updatePeriod>hourly</sy:updatePeriod>
  23      <sy:updateFrequency>1</sy:updateFrequency>
  24      <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
  25      <?php do_action('rdf_header'); ?>
  26      <items>
  27          <rdf:Seq>
  28          <?php while (have_posts()): the_post(); ?>
  29              <rdf:li rdf:resource="<?php the_permalink_rss() ?>"/>
  30          <?php endwhile; ?>
  31          </rdf:Seq>
  32      </items>
  33  </channel>
  34  <?php rewind_posts(); while (have_posts()): the_post(); ?>
  35  <item rdf:about="<?php the_permalink_rss() ?>">
  36      <title><?php the_title_rss() ?></title>
  37      <link><?php the_permalink_rss() ?></link>
  38       <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt, false); ?></dc:date>
  39      <dc:creator><?php the_author() ?></dc:creator>
  40      <?php the_category_rss('rdf') ?>
  41  <?php if (get_option('rss_use_excerpt')) : ?>
  42      <description><?php the_excerpt_rss() ?></description>
  43  <?php else : ?>
  44      <description><?php the_content_rss('', 0, '', get_option('rss_excerpt_length'), 2) ?></description>
  45      <content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
  46  <?php endif; ?>
  47      <?php do_action('rdf_item'); ?>
  48  </item>
  49  <?php endwhile;  ?>
  50  </rdf:RDF>


Generated Thu Dec 6 06:47:08 2007 for RedAlt XRefs Cross-referenced by PHPXref 0.6 and RedAlt