b2evolution

Multilingual multiuser multiblog engine

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

Source for file rss.php

Documentation is available at rss.php

  1. <?php
  2.     /**
  3.    * This template generates an RSS 0.92 feed for the requested blog's latest posts
  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.     $show_statuses array();     // Restrict to published posts
  15.     $timestamp_min '';                    // Show past
  16.     $timestamp_max 'now';                // Hide future
  17.     /**
  18.      * Initialize everything:
  19.      */
  20.     $resolve_extra_path false;    // We don't want extra path resolution on this page
  21.   require dirname(__FILE__).'/../b2evocore/_blog_main.php';
  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.         ?></title>
  34.     <link><?php $Blog->disp'blogurl''xml' ?></link>
  35.     <description><?php $Blog->disp'shortdesc' ,'xml' ?></description>
  36.     <language><?php $Blog->disp'locale''xml' ?></language>
  37.     <docs>http://backend.userland.com/rss092</docs>
  38.     <?php while$Item $MainList->get_item() ) ?>
  39.     <item>
  40.       <title><?php $Item->title''''false'xml' ?></title>
  41.       <description><?php
  42.         $Item->url_link''' ''entityencoded' );
  43.         $Item->content1falseT_('[...] Read more!')'''''''entityencoded' );
  44.       ?></description>
  45.       <link><?php $Item->permalink'single' ?></link>
  46.     </item>
  47.     <?php ?>
  48.   </channel>
  49. </rss>
  50. <?php log_hit();  // log the hit on this page ?>

Documentation generated on Tue, 20 May 2008 01:52:00 +0200 by phpDocumentor 1.4.2