/bp-forums/bbpress/bb-templates/kakumei/rss2.php

  1. <?php 
  2. header( 'Content-Type: text/xml; charset=UTF-8' ); 
  3. echo '<' . '?xml version="1.0" encoding="UTF-8"?' . '>' . "\n"; 
  4. bb_generator( 'comment' ); 
  5. ?> 
  6. <rss version="2.0" 
  7. xmlns:content="http://purl.org/rss/1.0/modules/content/" 
  8. xmlns:dc="http://purl.org/dc/elements/1.1/" 
  9. xmlns:atom="http://www.w3.org/2005/Atom" 
  10. <?php do_action( 'bb_rss2_ns'); ?> 
  11. <channel> 
  12. <title><?php echo $title; ?></title> 
  13. <link><?php echo $link; ?></link> 
  14. <description><?php echo $description; ?></description> 
  15. <language><?php echo esc_html( bb_get_option( 'language' ) ); ?></language> 
  16. <pubDate><?php echo gmdate( 'D, d M Y H:i:s +0000' ); ?></pubDate> 
  17. <?php bb_generator( 'rss2' ); ?> 
  18. <?php do_action( 'bb_rss2_head' ); ?> 
  19. <atom:link href="<?php echo $link_self; ?>" rel="self" type="application/rss+xml" /> 
  20.  
  21. <?php foreach ( (array) $posts as $bb_post ) : ?> 
  22. <item> 
  23. <title><?php post_author(); ?> <?php _e( 'on' ); ?> "<?php topic_title( $bb_post->topic_id ); ?>"</title> 
  24. <link><?php post_link(); ?></link> 
  25. <pubDate><?php bb_post_time( array( 'format' => 'D, d M Y H:i:s +0000', 'localize' => false ) ); ?></pubDate> 
  26. <dc:creator><?php post_author(); ?></dc:creator> 
  27. <guid isPermaLink="false"><?php post_id(); ?>@<?php bb_uri(); ?></guid> 
  28. <description><![CDATA[<?php post_text(); ?>]]></description> 
  29. <?php do_action( 'bb_rss2_item' ); ?> 
  30. </item> 
  31. <?php endforeach; ?> 
  32.  
  33. </channel> 
  34. </rss> 
.