[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-forums/bbpress/bb-templates/kakumei/ -> rss2.php (source)

   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      >
  12      <channel>
  13          <title><?php echo $title; ?></title>
  14          <link><?php echo $link; ?></link>
  15          <description><?php echo $description; ?></description>
  16          <language><?php echo esc_html( bb_get_option( 'language' ) ); ?></language>
  17          <pubDate><?php echo gmdate( 'D, d M Y H:i:s +0000' ); ?></pubDate>
  18          <?php bb_generator( 'rss2' ); ?>
  19          <?php do_action( 'bb_rss2_head' ); ?>
  20          <atom:link href="<?php echo $link_self; ?>" rel="self" type="application/rss+xml" />
  21  
  22  <?php foreach ( (array) $posts as $bb_post ) : ?>
  23          <item>
  24              <title><?php post_author(); ?> <?php _e( 'on' ); ?> "<?php topic_title( $bb_post->topic_id ); ?>"</title>
  25              <link><?php post_link(); ?></link>
  26              <pubDate><?php bb_post_time( array( 'format' => 'D, d M Y H:i:s +0000', 'localize' => false ) ); ?></pubDate>
  27              <dc:creator><?php post_author(); ?></dc:creator>
  28              <guid isPermaLink="false"><?php post_id(); ?>@<?php bb_uri(); ?></guid>
  29              <description><![CDATA[<?php post_text(); ?>]]></description>
  30              <?php do_action( 'bb_rss2_item' ); ?>
  31          </item>
  32  <?php endforeach; ?>
  33  
  34      </channel>
  35  </rss>


Generated: Thu Dec 7 01:01:35 2017 Cross-referenced by PHPXref 0.7.1