Source for file rss.php
Documentation is available at rss.php
* This template generates an RSS 0.92 feed for the requested blog's latest posts
* See {@link http://backend.userland.com/rss092}
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
* @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
$skin =
''; // We don't want this do be displayed in a skin !
$show_statuses =
array(); // Restrict to published posts
$timestamp_min =
''; // Show past
$timestamp_max =
'now'; // Hide future
$resolve_extra_path =
false; // We don't want extra path resolution on this page
require
dirname(__FILE__
).
'/../b2evocore/_blog_main.php';
header("Content-type: application/xml");
echo
"<?xml version=\"1.0\"?".
">";
<!-- generator="b2evolution/
<?php echo
$b2_version ?>" -->
$Blog->disp( 'name', 'xml' );
<link>
<?php $Blog->disp( 'blogurl', 'xml' ) ?></link>
<description>
<?php $Blog->disp( 'shortdesc' ,'xml' ) ?></description>
<language>
<?php $Blog->disp( 'locale', 'xml' ) ?></language>
<docs>http://backend.userland.com/rss092</docs>
<?php while( $Item =
$MainList->get_item() ) { ?>
<title>
<?php $Item->title( '', '', false, 'xml' ) ?></title>
$Item->url_link( '', ' ', 'entityencoded' );
$Item->content( 1, false, T_('[...] Read more!'), '', '', '', 'entityencoded' );
<link>
<?php $Item->permalink( 'single' ) ?></link>
<?php log_hit(); // log the hit on this page ?>