home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Blogs / wordpress2.6.exe / wordpress2.6 / wp-includes / feed-rdf.php < prev    next >
Encoding:
PHP Script  |  2007-12-26  |  2.0 KB  |  57 lines

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