b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (0.9.x) [ class tree: xmlsrv ] [ index: xmlsrv ] [ all elements ]

Source for file rss.comments.php

Documentation is available at rss.comments.php

  1. <?php
  2.     /**
  3.      * This template generates an RSS 0.92 feed for the requested blog's latest comments
  4.      *
  5.      * See {@link http://backend.userland.com/rss092}
  6.      *
  7.      * b2evolution - {@link http://b2evolution.net/}
  8.      * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
  9.      * @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
  10.      *
  11.      * @package xmlsrv
  12.      */
  13.     $skin '';                                // We don't want this do be displayed in a skin !
  14.     $disp 'comments';                // What we want is the latest comments
  15.     $show_statuses array()// Restrict to published comments
  16.     /**
  17.      * Initialize everything:
  18.      */
  19.     $resolve_extra_path false;    // We don't want extra path resolution on this page
  20.     require dirname(__FILE__).'/../b2evocore/_blog_main.php' ;
  21.     $CommentList new CommentList$blog"'comment'"$show_statuses'',    '',    'DESC',    '',    20 );
  22.     header("Content-type: application/xml");
  23.     echo "<?xml version=\"1.0\"?".">";
  24. ?>
  25. <!-- generator="b2evolution/<?php echo $b2_version ?>" -->
  26. <rss version="0.92">
  27.     <channel>
  28.         <title><?php 
  29.             $Blog->disp'name''xml' );
  30.             single_cat_title' - ''xml' )
  31.             single_month_title' - ''xml' );
  32.             single_post_title' - ''xml' );
  33.             last_comments_title' - ''xml' ;
  34.         ?></title>
  35.         <link><?php $Blog->disp'lastcommentsurl''xml' ?></link>
  36.         <description></description>
  37.         <language><?php $Blog->disp'locale''xml' ?></language>
  38.         <docs>http://backend.userland.com/rss092</docs>
  39.         <?php while$Comment $CommentList->get_next() )
  40.         // Loop through comments: ?>
  41.         <item>
  42.             <title><?php echo format_to_outputT_('In response to:')'xml' ?> <?php $Comment->Item->title''''false'xml' ?></title>
  43.             <description><?php $Comment->content'entityencoded' ?></description>
  44.             <link><?php $Comment->permalink(?></link>
  45.         </item>
  46.         <?php // End of comment loop. ?>
  47.     </channel>
  48. </rss>
  49. <?php log_hit();    // log the hit on this page ?>

Documentation generated on Tue, 20 May 2008 01:51:59 +0200 by phpDocumentor 1.4.2