[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/wiki/template/ -> rss.php (source)

   1  <?php
   2  // $Id: rss.php 19415 2005-10-14 14:08:53Z ralfbecker $
   3  
   4  // The RSS template is passed an associative array with the following
   5  // elements:
   6  //
   7  //   itemseq   => A string containing the rdf:li elements for the syndication.
   8  //   itemdesc  => A string containing the item elements for the syndication.
   9  
  10  function template_rss($args)
  11  {
  12      global $ScriptBase, $WikiName, $MetaDescription, $InterWikiPrefix;
  13      global $Charset;
  14  
  15      header('Content-type: text/plain');
  16  ?>
  17  <?php print '<?xml '; ?>version="1.0" encoding="<?php print $Charset; ?>"?>
  18  <rdf:RDF
  19           xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  20           xmlns="http://purl.org/rss/1.0/"
  21           xmlns:dc="http://purl.org/dc/elements/1.1/"
  22           xmlns:wiki="http://purl.org/rss/1.0/modules/wiki/"
  23  >
  24          <!--
  25                  Add a "days=nnn" URL parameter to get nnn days of information
  26                  (the default is 2).  Use days=-1 to show entire history.
  27                  Add a "min=nnn" URL parameter to force a minimum of nnn entries
  28                  in the output (the default is 10).
  29          -->
  30          <channel rdf:about="<?php print $ScriptBase; ?>">
  31                  <title><?php print $WikiName; ?></title>
  32                  <link><?php print $ScriptBase; ?></link>
  33                  <description><?php print $MetaDescription; ?></description>
  34                  <wiki:interwiki>
  35                          <rdf:Description link="<?php print $ScriptBase . '?'; ?>">
  36                                  <rdf:value><?php print $InterWikiPrefix; ?></rdf:value>
  37                          </rdf:Description>
  38                  </wiki:interwiki>
  39                  <items>
  40                          <rdf:Seq>
  41  <?php
  42      print $args['itemseq'];
  43  ?>
  44                          </rdf:Seq>
  45                  </items>
  46          </channel>
  47  
  48  <?php
  49      print $args['itemdesc'];
  50  ?>
  51  
  52  </rdf:RDF>
  53  <?php
  54  }
  55  ?>


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7