[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-cvs
Subject:    [PEAR-CVS] =?utf-8?q?svn:_/pear2/sandbox/SimpleChannelFrontend/trunk/_package.xml_package=5Fcompatib
From:       Brett_Bieber <saltybeagle () php ! net>
Date:       2010-03-30 18:22:32
Message-ID: svn-saltybeagle-1269973352-297193-1162301090 () svn ! php ! net
[Download RAW message or body]

saltybeagle                              Tue, 30 Mar 2010 18:22:32 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=297193

Log:
Move templates into html directory. Add directory for rss templates. Get RSS feed of \
latest packages working.

Changed paths:
    U   pear2/sandbox/SimpleChannelFrontend/trunk/package.xml
    U   pear2/sandbox/SimpleChannelFrontend/trunk/package_compatible.xml
    U   pear2/sandbox/SimpleChannelFrontend/trunk/src/SimpleChannelFrontend/Main.php
    U   pear2/sandbox/SimpleChannelFrontend/trunk/src/SimpleChannelFrontend/TemplateMapper.php
  U   pear2/sandbox/SimpleChannelFrontend/trunk/www/index.php
    D   pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Categories.tpl.php
    D   pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/InstallInstructions.tpl.php
  D   pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/LatestReleases.tpl.php
    D   pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Main.tpl.php
    D   pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/News.tpl.php
    D   pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Package.tpl.php
    D   pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/PackageList.tpl.php
    D   pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/PackageRelease.tpl.php
  D   pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Search.tpl.php
    D   pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Support.tpl.php
    D   pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/UnregisteredViewException.tpl.php
  A   pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/
    A + pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/Categories.tpl.php
                
        (from pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Categories.tpl.php:r297098)
  A + pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/InstallInstructions.tpl.php
                
        (from pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/InstallInstructions.tpl.php:r297098)
  A + pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/LatestReleases.tpl.php
                
        (from pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/LatestReleases.tpl.php:r297176)
  A + pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/Main.tpl.php
        (from pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Main.tpl.php:r297098)
  A + pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/News.tpl.php
        (from pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/News.tpl.php:r297098)
  A + pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/Package.tpl.php
        (from pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Package.tpl.php:r297098)
  A + pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/PackageList.tpl.php
                
        (from pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/PackageList.tpl.php:r297098)
  A + pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/PackageRelease.tpl.php
                
        (from pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/PackageRelease.tpl.php:r297098)
  A + pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/Search.tpl.php
        (from pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Search.tpl.php:r297098)
  A + pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/Support.tpl.php
        (from pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Support.tpl.php:r297098)
  A + pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/UnregisteredViewException.tpl.php
                
        (from pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/UnregisteredViewException.tpl.php:r297098)
  A   pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/rss/
    A   pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/rss/LatestReleases.tpl.php
  A   pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/rss/Main.tpl.php


["svn-diffs-297193.txt" (text/x-diff)]

Modified: pear2/sandbox/SimpleChannelFrontend/trunk/package.xml
===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/package.xml	2010-03-30 18:14:06 UTC \
                (rev 297192)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/package.xml	2010-03-30 18:22:32 UTC \
(rev 297193) @@ -29,8 +29,8 @@
   <email>saltybeagle@php.net</email>
   <active>yes</active>
  </lead>
- <date>2009-12-20</date>
- <time>12:21:21</time>
+ <date>2010-03-29</date>
+ <time>16:13:46</time>
  <version>
   <release>0.1.0</release>
   <api>0.1.0</api>
@@ -61,6 +61,7 @@
      <file role="php" name="Package.php"/>
      <file role="php" name="PackageList.php"/>
      <file role="php" name="PackageRelease.php"/>
+     <file role="php" name="Search.php"/>
      <file role="php" name="Support.php"/>
      <file role="php" name="TemplateMapper.php"/>
      <file role="php" name="UnregisteredViewException.php"/>
@@ -85,6 +86,7 @@
      <file role="www" name="Package.tpl.php"/>
      <file role="www" name="PackageList.tpl.php"/>
      <file role="www" name="PackageRelease.tpl.php"/>
+     <file role="www" name="Search.tpl.php"/>
      <file role="www" name="Support.tpl.php"/>
      <file role="www" name="UnregisteredViewException.tpl.php"/>
     </dir>

Modified: pear2/sandbox/SimpleChannelFrontend/trunk/package_compatible.xml
===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/package_compatible.xml	2010-03-30 \
                18:14:06 UTC (rev 297192)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/package_compatible.xml	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -29,8 +29,8 @@
   <email>saltybeagle@php.net</email>
   <active>yes</active>
  </lead>
- <date>2009-12-20</date>
- <time>12:21:21</time>
+ <date>2010-03-29</date>
+ <time>16:13:46</time>
  <version>
   <release>0.1.0</release>
   <api>0.1.0</api>
@@ -53,6 +53,7 @@
   <dir name="/">
    <file role="www" \
name="www/PEAR2_SimpleChannelFrontend/pear2.php.net/templates/templates/UnregisteredViewException.tpl.php"/>
  <file role="www" name="www/PEAR2_SimpleChannelFrontend/pear2.php.net/templates/templates/Support.tpl.php"/>
 +   <file role="www" \
name="www/PEAR2_SimpleChannelFrontend/pear2.php.net/templates/templates/Search.tpl.php"/>
  <file role="www" name="www/PEAR2_SimpleChannelFrontend/pear2.php.net/templates/templates/PackageRelease.tpl.php"/>
  <file role="www" name="www/PEAR2_SimpleChannelFrontend/pear2.php.net/templates/templates/PackageList.tpl.php"/>
  <file role="www" name="www/PEAR2_SimpleChannelFrontend/pear2.php.net/templates/templates/Package.tpl.php"/>
 @@ -72,6 +73,7 @@
    <file role="php" \
name="php/pear2/SimpleChannelFrontend/UnregisteredViewException.php"/>  <file \
role="php" name="php/pear2/SimpleChannelFrontend/TemplateMapper.php"/>  <file \
role="php" name="php/pear2/SimpleChannelFrontend/Support.php"/> +   <file role="php" \
name="php/pear2/SimpleChannelFrontend/Search.php"/>  <file role="php" \
name="php/pear2/SimpleChannelFrontend/PackageRelease.php"/>  <file role="php" \
name="php/pear2/SimpleChannelFrontend/PackageList.php"/>  <file role="php" \
name="php/pear2/SimpleChannelFrontend/Package.php"/> @@ -102,6 +104,7 @@
    <install name="php/pear2/SimpleChannelFrontend/Package.php" \
as="pear2/SimpleChannelFrontend/Package.php"/>  <install \
name="php/pear2/SimpleChannelFrontend/PackageList.php" \
as="pear2/SimpleChannelFrontend/PackageList.php"/>  <install \
name="php/pear2/SimpleChannelFrontend/PackageRelease.php" \
as="pear2/SimpleChannelFrontend/PackageRelease.php"/> +   <install \
name="php/pear2/SimpleChannelFrontend/Search.php" \
as="pear2/SimpleChannelFrontend/Search.php"/>  <install \
name="php/pear2/SimpleChannelFrontend/Support.php" \
as="pear2/SimpleChannelFrontend/Support.php"/>  <install \
name="php/pear2/SimpleChannelFrontend/TemplateMapper.php" \
as="pear2/SimpleChannelFrontend/TemplateMapper.php"/>  <install \
name="php/pear2/SimpleChannelFrontend/UnregisteredViewException.php" \
as="pear2/SimpleChannelFrontend/UnregisteredViewException.php"/> @@ -121,6 +124,7 @@
    <install name="www/PEAR2_SimpleChannelFrontend/pear2.php.net/templates/templates/Package.tpl.php" \
as="pear2.php.net/templates/templates/Package.tpl.php"/>  <install \
name="www/PEAR2_SimpleChannelFrontend/pear2.php.net/templates/templates/PackageList.tpl.php" \
as="pear2.php.net/templates/templates/PackageList.tpl.php"/>  <install \
name="www/PEAR2_SimpleChannelFrontend/pear2.php.net/templates/templates/PackageRelease.tpl.php" \
as="pear2.php.net/templates/templates/PackageRelease.tpl.php"/> +   <install \
name="www/PEAR2_SimpleChannelFrontend/pear2.php.net/templates/templates/Search.tpl.php" \
as="pear2.php.net/templates/templates/Search.tpl.php"/>  <install \
name="www/PEAR2_SimpleChannelFrontend/pear2.php.net/templates/templates/Support.tpl.php" \
as="pear2.php.net/templates/templates/Support.tpl.php"/>  <install \
name="www/PEAR2_SimpleChannelFrontend/pear2.php.net/templates/templates/UnregisteredViewException.tpl.php" \
as="pear2.php.net/templates/templates/UnregisteredViewException.tpl.php"/>  \
</filelist>

Modified: pear2/sandbox/SimpleChannelFrontend/trunk/src/SimpleChannelFrontend/Main.php
 ===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/src/SimpleChannelFrontend/Main.php	2010-03-30 \
                18:14:06 UTC (rev 297192)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/src/SimpleChannelFrontend/Main.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -36,7 +36,8 @@

     public $page_content;

-    protected $options = array('view' => 'news');
+    public $options = array('view'   => 'news',
+                               'format' => 'html');

     protected static $view_map = array('news'       => \
                'pear2\SimpleChannelFrontend\News',
                                        'packages'   => \
'pear2\SimpleChannelFrontend\PackageList', @@ -59,13 +60,27 @@
     {
         static::setChannel($channel);
         $this->options = array_merge($this->options, $options);
+        $this->preRun();
         try {
             $this->run();
         } catch(Exception $e) {
             $this->page_content = $e;
         }
     }
-
+
+    function preRun()
+    {
+        switch ($this->options['format']) {
+        case 'rss':
+            header('Content-type:text/xml');
+            break;
+        case 'html':
+        default:
+            header('Content-Type:text/html; charset=UTF-8');
+            break;
+        }
+    }
+
     /**
      * Set the channel file for this frontend.
      *

Modified: pear2/sandbox/SimpleChannelFrontend/trunk/src/SimpleChannelFrontend/TemplateMapper.php
 ===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/src/SimpleChannelFrontend/TemplateMapper.php	2010-03-30 \
                18:14:06 UTC (rev 297192)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/src/SimpleChannelFrontend/TemplateMapper.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -10,10 +10,10 @@
             // running from svn, or extracted from archive
             if (strpos(__FILE__, 'trunk/src/SimpleChannelFrontend')) {
                 // running from svn
-                self::$templatePath = __DIR__ . '/../../www/templates/';
+                self::$templatePath = __DIR__ . '/../../www/templates/html';
             } else {
                 // running from extracted archive
-                self::$templatePath = __DIR__ . \
'/../../../www/PEAR2_SimpleChannelFrontend/pear2.php.net/templates/'; +               \
self::$templatePath = __DIR__ . \
'/../../../www/PEAR2_SimpleChannelFrontend/pear2.php.net/templates/html';  }
         }
         static::$classname_replacement = 'pear2\\SimpleChannelFrontend\\';

Modified: pear2/sandbox/SimpleChannelFrontend/trunk/www/index.php
===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/index.php	2010-03-30 18:14:06 UTC \
                (rev 297192)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/index.php	2010-03-30 18:22:32 UTC \
(rev 297193) @@ -27,7 +27,15 @@

 $savant = new pear2\Templates\Savant\Main();
 $savant->setClassToTemplateMapper(new pear2\SimpleChannelFrontend\TemplateMapper);
-$savant->setTemplatePath(array(__DIR__ . '/templates'));
+$savant->setTemplatePath(array(__DIR__ . '/templates/html'));
+
+switch($frontend->options['format']) {
+case 'rss':
+    $savant->addTemplatePath(__DIR__.'/templates/'.$frontend->options['format']);
+    break;
+}
+
+
 $savant->setEscape('htmlspecialchars');
 $savant->addFilters(array($frontend, 'postRender'));
 echo $savant->render($frontend);

Deleted: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Categories.tpl.php
===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Categories.tpl.php	2010-03-30 \
                18:14:06 UTC (rev 297192)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Categories.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -1,31 +0,0 @@
-<?php
-$parent->context->page_title = 'Categories | \
                '.pear2\SimpleChannelFrontend\Main::$channel->name; ?>
-
-<div class="grid_8 left">
-<div class="packages-header">
- <h2 class="category-title">Categories</h2>
-</div>
-<?php
-if (count($context)) : ?>
-<ul class="categories">
-<?php
-    foreach ($context as $category) : ?>
-    <li id="category-1" class="category category-clear">
-        <h3><a href=""><span class="category-title"><?php echo $category->name; \
?></span></a><span class="category-count"> (<?php echo count($category); \
                ?>)</span></h3>
-        <div><?php
-        if (count($category)) {
-            echo '<ul>';
-            foreach ($category as $package) {
-                echo '<li><a \
href="'.pear2\SimpleChannelFrontend\Main::getURL().$package->name.'">'.$package->name.'</a></li>';
                
-            }
-            echo '</ul>';
-        }
-        ?></div>
-    </li>
-    <?php
-    endforeach; ?>
-</ul>
-<?php
-endif;
-?>
-</div>

Deleted: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/InstallInstructions.tpl.php
 ===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/InstallInstructions.tpl.php	2010-03-30 \
                18:14:06 UTC (rev 297192)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/InstallInstructions.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -1,5 +0,0 @@
-<h3>Installation</h3>
-<ol class="instructions">
-    <li><code>$>php pyrus.phar channel-discover <?php echo \
                pear2\SimpleChannelFrontend\Main::$channel->name; ?></code></li>
-    <li><code>$>php pyrus.phar install <?php echo $context; ?></code></li>
-</ol>

Deleted: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/LatestReleases.tpl.php
 ===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/LatestReleases.tpl.php	2010-03-30 \
                18:14:06 UTC (rev 297192)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/LatestReleases.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -1,13 +0,0 @@
-<?php
-// Set the title for the main template
-$parent->context->page_title = 'Latest Releases | \
                '.pear2\SimpleChannelFrontend\Main::$channel->name;
-?>
-<div class="packagelist grid_8">
-    <h1>Latest Releases</h1>
-    <ul>
-    <?php
-    foreach ($context as $date=>$package) {
-        echo '<li>'.$date.' <a \
href="'.pear2\SimpleChannelFrontend\Main::getURL().$package->name.'-'.$package->version['release'].'">'.$package->name.'-'.$package->version['release'].'</a></li>';
                
-    }?>
-    </ul>
-</div>
\ No newline at end of file

Deleted: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Main.tpl.php
===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Main.tpl.php	2010-03-30 \
                18:14:06 UTC (rev 297192)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Main.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-    <link rel="search" title="search packages" \
                type="application/opensearchdescription+xml" \
                href="?view=searchdefinition">
-    <link rel="alternate" title="My Channel Latest Releases" \
                type="application/atom+xml" href="?view=latest" />
-    <link rel="stylesheet" href="<?php echo \
                pear2\SimpleChannelFrontend\Main::getURL(); ?>css/all.css" />
-    <title><?php echo $context->page_title; ?></title>
-  </head>
-  <body>
-    <div class="container_12">
-        <div class="header">
-            <h1><?php echo pear2\SimpleChannelFrontend\Main::$channel->summary; \
                ?></h1>
-            <ul class="navigation">
-                <li><a href="<?php echo \
pear2\SimpleChannelFrontend\Main::getURL('pear2\SimpleChannelFrontend\News'); \
                ?>">Home</a></li>
-                <li><a href="<?php echo \
pear2\SimpleChannelFrontend\Main::getURL('pear2\SimpleChannelFrontend\PackageList'); \
                ?>">Packages</a></li>
-                <li><a href="<?php echo \
pear2\SimpleChannelFrontend\Main::getURL('pear2\SimpleChannelFrontend\Categories'); \
                ?>">Categories</a></li>
-                <li><a href="<?php echo \
pear2\SimpleChannelFrontend\Main::getURL('pear2\SimpleChannelFrontend\Support'); \
                ?>">Support</a></li>
-            </ul>
-        </div>
-        <div class="content">
-            <?php echo $savant->render($context->page_content); ?>
-        </div>
-        <div class="footer">This is a PEAR channel running <a \
href="http://pear2.php.net/PEAR2_SimpleChannelFrontend">PEAR2_SimpleChannelFrontend</a></div>
                
-    </div>
-  </body>
-</html>

Deleted: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/News.tpl.php
===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/News.tpl.php	2010-03-30 \
                18:14:06 UTC (rev 297192)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/News.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -1,29 +0,0 @@
-<?php
-// Set the title for the main template
-$parent->context->page_title = 'News | \
                '.pear2\SimpleChannelFrontend\Main::$channel->name;
-?>
-<div id="news">
-    <div class="grid_8 left">
-    <h2>Latest News</h2>
-    <p>Welcome to the next generation of PEAR channels.</p>
-      <ol class="instructions">
-            <li>Download the new PEAR installer:<br />
-                <code><a \
href="http://svn.php.net/viewvc/pear2/Pyrus/trunk/pyrus.phar?view=co">pyrus.phar</a></code></li>
                
-            <li>Discover this channel:<br />
-                <code>$&gt;php pyrus.phar channel-discover <?php echo \
                pear2\SimpleChannelFrontend\Main::$channel->name; ?></code></li>
-            <li>Install packages:<br />
-                <code>$&gt;php pyrus.phar install <?php echo \
                pear2\SimpleChannelFrontend\Main::$channel->alias; \
                ?>/<var>package</var></code><br />
-                where package is the name of the package to install.</li>
-        </ol>
-    <p>Users can get started by reading
-    <a href="http://pear.php.net/manual/en/installationpyrus.introduction.php">the \
                introduction</a>.</p>
-    </div>
-    <div class="grid_4 right">
-        <h3>Download</h3>
-        <h4><a href="http://svn.php.net/viewvc/pear2/Pyrus/trunk/pyrus.phar?view=co">Download \
                pyrus.phar</a></h4>
-        <p>
-          This website provides packages to install using the pyrus package \
                installer.
-          With pyrus you can install all the packages available on this channel, as \
                well as any PEAR
-          compatible package from a large number of repositories.</p>
-    </div>
-</div>
\ No newline at end of file

Deleted: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Package.tpl.php
===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Package.tpl.php	2010-03-30 \
                18:14:06 UTC (rev 297192)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Package.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -1,31 +0,0 @@
-<?php
-// Set the title for the main template
-$parent->context->page_title = $context->name.' | \
                '.pear2\SimpleChannelFrontend\Main::$channel->name;
-?>
-<div class="package">
-    <div class="grid_8 left">
-        <h2>Package :: <?php echo $context->name; ?></h2>
-        <p><em><?php echo $context->summary; ?></em></p>
-        <p>
-            <?php
-            $description = preg_replace("|\&lt\;\?php(.*)\?\&gt\;|Use", \
"highlight_string('<?php'.html_entity_decode('\\1').'?>', true)", \
                $context->description);
-            echo nl2br($description);
-            ?>
-        </p>
-        <?php echo $savant->render($context->channel . '/' . $context->name . '-' . \
                $context->version['release'], 'InstallInstructions.tpl.php'); ?>
-    </div>
-    <div class="grid_4 right releases">
-        <h3>Releases</h3>
-        <ul>
-            <?php
-             foreach ($context as $version => $release): ?>
-            <li>
-                <a href="<?php echo pear2\SimpleChannelFrontend\Main::getURL() . \
                $context->name . '-' . $version; ?>"><?php echo $version; ?></a>
-                <span class="stability"><?php echo $release['stability']; ?></span>
-                <abbr class="releasedate" title="<?php echo $context->date.' \
                '.$context->time; ?>"><?php echo $context->date; ?></abbr>
-                <a class="download" href="<?php echo \
                $context->getDownloadURL('.tgz'); ?>">Download</a>
-            </li>
-            <?php endforeach; ?>
-        </ul>
-    </div>
-</div>

Deleted: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/PackageList.tpl.php
===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/PackageList.tpl.php	2010-03-30 \
                18:14:06 UTC (rev 297192)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/PackageList.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -1,14 +0,0 @@
-<?php
-// Set the title for the main template
-$parent->context->page_title = 'Packages | \
                '.pear2\SimpleChannelFrontend\Main::$channel->name;
-?>
-<div class="packagelist grid_8">
-    <h1>Available Packages</h1>
-    <ul>
-    <?php
-    foreach ($context as $package) {
-        echo '<li><a \
href="'.pear2\SimpleChannelFrontend\Main::getURL().$package->name.'">'.$package->name.'</a></li>';
                
-    }
-    ?>
-    </ul>
-</div>
\ No newline at end of file

Deleted: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/PackageRelease.tpl.php
 ===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/PackageRelease.tpl.php	2010-03-30 \
                18:14:06 UTC (rev 297192)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/PackageRelease.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -1,30 +0,0 @@
-<?php
-// Set the title for the main template
-$parent->context->page_title = $context->name.' | \
                '.pear2\SimpleChannelFrontend\Main::$channel->name;
-?>
-<div class="package">
-    <div class="grid_8 left">
-        <h2>
-            <a href="<?php echo pear2\SimpleChannelFrontend\Main::getURL() . \
$context->name; ?>"><?php echo $context->name; ?></a>-<?php echo \
                $context->version['release']; ?>
-        </h2>
-        <ul class="package-info">
-            <li><strong>Version:</strong>
-                <span><?php echo $context->version['release']; ?></span>
-            </li>
-            <li><strong>Stability:</strong>
-                <span><?php echo $context->stability['release']; ?></span>
-            </li>
-            <li><strong>Released on:</strong>
-                <span><abbr class="releasedate" title="<?php echo $context->date.' \
                '.$context->time; ?>"><?php echo $context->date; ?></abbr></span>
-            </li>
-            <li><strong>License:</strong>
-                <span><?php echo $context->license['name']; ?></span>
-            </li>
-        </ul>
-        <?php echo $savant->render($context->channel . '/' . $context->name . '-' . \
                $context->version['release'], 'InstallInstructions.tpl.php'); ?>
-    </div>
-    <div class="grid_4 right releases">
-        <h3>Release Notes</h3>
-        <?php echo nl2br($context->notes); ?>
-    </div>
-</div>

Deleted: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Search.tpl.php
===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Search.tpl.php	2010-03-30 \
                18:14:06 UTC (rev 297192)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Search.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -1,20 +0,0 @@
-<?php
-// Set the title for the main template
-$parent->context->page_title = 'Search | \
                '.pear2\SimpleChannelFrontend\Main::$channel->name;
-?>
-<div class="packagelist grid_8">
-    <h1>Package Search</h1>
-    <form method="get">
-        <input type="hidden" name="view" value="search" />
-        <label>Search:</label><input type="text" name="q" value="<?php echo \
                htmlentities($context->getRaw('query'), ENT_QUOTES); ?>" />
-        <input type="submit" value="Go" />
-    </form>
-    <h2>Results for <?php echo $context->query; ?></h2>
-    <ul>
-    <?php
-    foreach ($context as $package) {
-        echo '<li><a \
href="'.pear2\SimpleChannelFrontend\Main::getURL().$package->name.'">'.$package->name.'</a></li>';
                
-    }
-    ?>
-    </ul>
-</div>
\ No newline at end of file

Deleted: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Support.tpl.php
===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Support.tpl.php	2010-03-30 \
                18:14:06 UTC (rev 297192)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Support.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -1,15 +0,0 @@
-<?php
-// Set the title for the main template
-$parent->context->page_title = 'Support | \
                '.pear2\SimpleChannelFrontend\Main::$channel->name;
-?>
-<div class="support grid_8">
-    <h1>Support</h1>
-        <ul>
-            <li>There's a Pyrus section in <a \
                href="http://pear.php.net/manual/en/pyrus.php">PEAR manual</a>.</li>
-            <li>There are some PEAR-related mailing lists, check <a \
                href="http://pear.php.net/support/lists.php">PEAR website</a> for \
                more info.</li>
-            <li>You can also ask for help on the <i><a \
                href="irc://efnet/#pear">#pear</a></i>
-                <acronym title="Internet Relay Chat">IRC</acronym> channel at the
-                <a href="http://www.efnet.org"> Eris Free Net</a>.
-            </li>
-        </ul>
-</div>

Deleted: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/UnregisteredViewException.tpl.php
 ===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/UnregisteredViewException.tpl.php	2010-03-30 \
                18:14:06 UTC (rev 297192)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/UnregisteredViewException.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -1,3 +0,0 @@
-<?php header('HTTP/1.0 404 Not Found'); ?>
-<h1>WHOAH Nelly.</h1>
-<p>That view doesn't exist!</p>
\ No newline at end of file

Copied: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/Categories.tpl.php \
(from rev 297098, pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Categories.tpl.php)
 ===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/Categories.tpl.php	  \
                (rev 0)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/Categories.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -0,0 +1,31 @@
+<?php
+$parent->context->page_title = 'Categories | \
'.pear2\SimpleChannelFrontend\Main::$channel->name; ?> +
+<div class="grid_8 left">
+<div class="packages-header">
+ <h2 class="category-title">Categories</h2>
+</div>
+<?php
+if (count($context)) : ?>
+<ul class="categories">
+<?php
+    foreach ($context as $category) : ?>
+    <li id="category-1" class="category category-clear">
+        <h3><a href=""><span class="category-title"><?php echo $category->name; \
?></span></a><span class="category-count"> (<?php echo count($category); \
?>)</span></h3> +        <div><?php
+        if (count($category)) {
+            echo '<ul>';
+            foreach ($category as $package) {
+                echo '<li><a \
href="'.pear2\SimpleChannelFrontend\Main::getURL().$package->name.'">'.$package->name.'</a></li>';
 +            }
+            echo '</ul>';
+        }
+        ?></div>
+    </li>
+    <?php
+    endforeach; ?>
+</ul>
+<?php
+endif;
+?>
+</div>

Copied: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/InstallInstructions.tpl.php \
(from rev 297098, pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/InstallInstructions.tpl.php)
 ===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/InstallInstructions.tpl.php	 \
                (rev 0)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/InstallInstructions.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -0,0 +1,5 @@
+<h3>Installation</h3>
+<ol class="instructions">
+    <li><code>$>php pyrus.phar channel-discover <?php echo \
pear2\SimpleChannelFrontend\Main::$channel->name; ?></code></li> +    <li><code>$>php \
pyrus.phar install <?php echo $context; ?></code></li> +</ol>

Copied: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/LatestReleases.tpl.php \
(from rev 297176, pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/LatestReleases.tpl.php)
 ===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/LatestReleases.tpl.php	 \
                (rev 0)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/LatestReleases.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -0,0 +1,13 @@
+<?php
+// Set the title for the main template
+$parent->context->page_title = 'Latest Releases | \
'.pear2\SimpleChannelFrontend\Main::$channel->name; +?>
+<div class="packagelist grid_8">
+    <h1>Latest Releases</h1>
+    <ul>
+    <?php
+    foreach ($context as $date=>$package) {
+        echo '<li>'.$date.' <a \
href="'.pear2\SimpleChannelFrontend\Main::getURL().$package->name.'-'.$package->version['release'].'">'.$package->name.'-'.$package->version['release'].'</a></li>';
 +    }?>
+    </ul>
+</div>
\ No newline at end of file

Copied: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/Main.tpl.php \
(from rev 297098, pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Main.tpl.php)
 ===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/Main.tpl.php	        \
                (rev 0)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/Main.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+    <link rel="search" title="search packages" \
type="application/opensearchdescription+xml" href="?view=searchdefinition"> +    \
<link rel="alternate" title="My Channel Latest Releases" type="application/rss+xml" \
href="?view=latest&amp;format=rss" /> +    <link rel="stylesheet" href="<?php echo \
pear2\SimpleChannelFrontend\Main::getURL(); ?>css/all.css" /> +    <title><?php echo \
$context->page_title; ?></title> +  </head>
+  <body>
+    <div class="container_12">
+        <div class="header">
+            <h1><?php echo pear2\SimpleChannelFrontend\Main::$channel->summary; \
?></h1> +            <ul class="navigation">
+                <li><a href="<?php echo \
pear2\SimpleChannelFrontend\Main::getURL('pear2\SimpleChannelFrontend\News'); \
?>">Home</a></li> +                <li><a href="<?php echo \
pear2\SimpleChannelFrontend\Main::getURL('pear2\SimpleChannelFrontend\PackageList'); \
?>">Packages</a></li> +                <li><a href="<?php echo \
pear2\SimpleChannelFrontend\Main::getURL('pear2\SimpleChannelFrontend\Categories'); \
?>">Categories</a></li> +                <li><a href="<?php echo \
pear2\SimpleChannelFrontend\Main::getURL('pear2\SimpleChannelFrontend\Support'); \
?>">Support</a></li> +            </ul>
+        </div>
+        <div class="content">
+            <?php echo $savant->render($context->page_content); ?>
+        </div>
+        <div class="footer">This is a PEAR channel running <a \
href="http://pear2.php.net/PEAR2_SimpleChannelFrontend">PEAR2_SimpleChannelFrontend</a></div>
 +    </div>
+  </body>
+</html>

Copied: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/News.tpl.php \
(from rev 297098, pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/News.tpl.php)
 ===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/News.tpl.php	        \
                (rev 0)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/News.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -0,0 +1,29 @@
+<?php
+// Set the title for the main template
+$parent->context->page_title = 'News | \
'.pear2\SimpleChannelFrontend\Main::$channel->name; +?>
+<div id="news">
+    <div class="grid_8 left">
+    <h2>Latest News</h2>
+    <p>Welcome to the next generation of PEAR channels.</p>
+      <ol class="instructions">
+            <li>Download the new PEAR installer:<br />
+                <code><a \
href="http://svn.php.net/viewvc/pear2/Pyrus/trunk/pyrus.phar?view=co">pyrus.phar</a></code></li>
 +            <li>Discover this channel:<br />
+                <code>$&gt;php pyrus.phar channel-discover <?php echo \
pear2\SimpleChannelFrontend\Main::$channel->name; ?></code></li> +            \
<li>Install packages:<br /> +                <code>$&gt;php pyrus.phar install <?php \
echo pear2\SimpleChannelFrontend\Main::$channel->alias; \
?>/<var>package</var></code><br /> +                where package is the name of the \
package to install.</li> +        </ol>
+    <p>Users can get started by reading
+    <a href="http://pear.php.net/manual/en/installationpyrus.introduction.php">the \
introduction</a>.</p> +    </div>
+    <div class="grid_4 right">
+        <h3>Download</h3>
+        <h4><a href="http://svn.php.net/viewvc/pear2/Pyrus/trunk/pyrus.phar?view=co">Download \
pyrus.phar</a></h4> +        <p>
+          This website provides packages to install using the pyrus package \
installer. +          With pyrus you can install all the packages available on this \
channel, as well as any PEAR +          compatible package from a large number of \
repositories.</p> +    </div>
+</div>
\ No newline at end of file

Copied: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/Package.tpl.php \
(from rev 297098, pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Package.tpl.php)
 ===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/Package.tpl.php	     \
                (rev 0)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/Package.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -0,0 +1,31 @@
+<?php
+// Set the title for the main template
+$parent->context->page_title = $context->name.' | \
'.pear2\SimpleChannelFrontend\Main::$channel->name; +?>
+<div class="package">
+    <div class="grid_8 left">
+        <h2>Package :: <?php echo $context->name; ?></h2>
+        <p><em><?php echo $context->summary; ?></em></p>
+        <p>
+            <?php
+            $description = preg_replace("|\&lt\;\?php(.*)\?\&gt\;|Use", \
"highlight_string('<?php'.html_entity_decode('\\1').'?>', true)", \
$context->description); +            echo nl2br($description);
+            ?>
+        </p>
+        <?php echo $savant->render($context->channel . '/' . $context->name . '-' . \
$context->version['release'], 'InstallInstructions.tpl.php'); ?> +    </div>
+    <div class="grid_4 right releases">
+        <h3>Releases</h3>
+        <ul>
+            <?php
+             foreach ($context as $version => $release): ?>
+            <li>
+                <a href="<?php echo pear2\SimpleChannelFrontend\Main::getURL() . \
$context->name . '-' . $version; ?>"><?php echo $version; ?></a> +                \
<span class="stability"><?php echo $release['stability']; ?></span> +                \
<abbr class="releasedate" title="<?php echo $context->date.' '.$context->time; \
?>"><?php echo $context->date; ?></abbr> +                <a class="download" \
href="<?php echo $context->getDownloadURL('.tgz'); ?>">Download</a> +            \
</li> +            <?php endforeach; ?>
+        </ul>
+    </div>
+</div>

Copied: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/PackageList.tpl.php \
(from rev 297098, pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/PackageList.tpl.php)
 ===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/PackageList.tpl.php	 \
                (rev 0)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/PackageList.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -0,0 +1,14 @@
+<?php
+// Set the title for the main template
+$parent->context->page_title = 'Packages | \
'.pear2\SimpleChannelFrontend\Main::$channel->name; +?>
+<div class="packagelist grid_8">
+    <h1>Available Packages</h1>
+    <ul>
+    <?php
+    foreach ($context as $package) {
+        echo '<li><a \
href="'.pear2\SimpleChannelFrontend\Main::getURL().$package->name.'">'.$package->name.'</a></li>';
 +    }
+    ?>
+    </ul>
+</div>
\ No newline at end of file

Copied: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/PackageRelease.tpl.php \
(from rev 297098, pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/PackageRelease.tpl.php)
 ===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/PackageRelease.tpl.php	 \
                (rev 0)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/PackageRelease.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -0,0 +1,30 @@
+<?php
+// Set the title for the main template
+$parent->context->page_title = $context->name.' | \
'.pear2\SimpleChannelFrontend\Main::$channel->name; +?>
+<div class="package">
+    <div class="grid_8 left">
+        <h2>
+            <a href="<?php echo pear2\SimpleChannelFrontend\Main::getURL() . \
$context->name; ?>"><?php echo $context->name; ?></a>-<?php echo \
$context->version['release']; ?> +        </h2>
+        <ul class="package-info">
+            <li><strong>Version:</strong>
+                <span><?php echo $context->version['release']; ?></span>
+            </li>
+            <li><strong>Stability:</strong>
+                <span><?php echo $context->stability['release']; ?></span>
+            </li>
+            <li><strong>Released on:</strong>
+                <span><abbr class="releasedate" title="<?php echo $context->date.' \
'.$context->time; ?>"><?php echo $context->date; ?></abbr></span> +            </li>
+            <li><strong>License:</strong>
+                <span><?php echo $context->license['name']; ?></span>
+            </li>
+        </ul>
+        <?php echo $savant->render($context->channel . '/' . $context->name . '-' . \
$context->version['release'], 'InstallInstructions.tpl.php'); ?> +    </div>
+    <div class="grid_4 right releases">
+        <h3>Release Notes</h3>
+        <?php echo nl2br($context->notes); ?>
+    </div>
+</div>

Copied: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/Search.tpl.php \
(from rev 297098, pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Search.tpl.php)
 ===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/Search.tpl.php	      \
                (rev 0)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/Search.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -0,0 +1,20 @@
+<?php
+// Set the title for the main template
+$parent->context->page_title = 'Search | \
'.pear2\SimpleChannelFrontend\Main::$channel->name; +?>
+<div class="packagelist grid_8">
+    <h1>Package Search</h1>
+    <form method="get">
+        <input type="hidden" name="view" value="search" />
+        <label>Search:</label><input type="text" name="q" value="<?php echo \
htmlentities($context->getRaw('query'), ENT_QUOTES); ?>" /> +        <input \
type="submit" value="Go" /> +    </form>
+    <h2>Results for <?php echo $context->query; ?></h2>
+    <ul>
+    <?php
+    foreach ($context as $package) {
+        echo '<li><a \
href="'.pear2\SimpleChannelFrontend\Main::getURL().$package->name.'">'.$package->name.'</a></li>';
 +    }
+    ?>
+    </ul>
+</div>
\ No newline at end of file

Copied: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/Support.tpl.php \
(from rev 297098, pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Support.tpl.php)
 ===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/Support.tpl.php	     \
                (rev 0)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/Support.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -0,0 +1,15 @@
+<?php
+// Set the title for the main template
+$parent->context->page_title = 'Support | \
'.pear2\SimpleChannelFrontend\Main::$channel->name; +?>
+<div class="support grid_8">
+    <h1>Support</h1>
+        <ul>
+            <li>There's a Pyrus section in <a \
href="http://pear.php.net/manual/en/pyrus.php">PEAR manual</a>.</li> +            \
<li>There are some PEAR-related mailing lists, check <a \
href="http://pear.php.net/support/lists.php">PEAR website</a> for more info.</li> +   \
<li>You can also ask for help on the <i><a href="irc://efnet/#pear">#pear</a></i> +   \
<acronym title="Internet Relay Chat">IRC</acronym> channel at the +                <a \
href="http://www.efnet.org"> Eris Free Net</a>. +            </li>
+        </ul>
+</div>

Copied: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/UnregisteredViewException.tpl.php \
(from rev 297098, pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/UnregisteredViewException.tpl.php)
 ===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/UnregisteredViewException.tpl.php	 \
                (rev 0)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/html/UnregisteredViewException.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -0,0 +1,3 @@
+<?php header('HTTP/1.0 404 Not Found'); ?>
+<h1>WHOAH Nelly.</h1>
+<p>That view doesn't exist!</p>
\ No newline at end of file

Added: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/rss/LatestReleases.tpl.php
 ===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/rss/LatestReleases.tpl.php	 \
                (rev 0)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/rss/LatestReleases.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -0,0 +1,10 @@
+<?php foreach($context as $package): ?>
+<item rdf:about="<?php echo \
pear2\SimpleChannelFrontend\Main::getURL().$package->name.'-'.$package->version['release']; \
?>"> + <title><?php echo $package->name.' '.$package->version['release']; ?></title>
+ <link><?php echo pear2\SimpleChannelFrontend\Main::getURL().$package->name.'-'.$package->version['release']; \
?></link> + <content:encoded>
+ <?php echo htmlspecialchars(nl2br($package->notes)); ?>
+ </content:encoded>
+ <dc:date><?php echo date('c', strtotime($package->date.' '.$package->time)); \
?></dc:date> +</item>
+<?php endforeach; ?>
\ No newline at end of file

Added: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/rss/Main.tpl.php
===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/rss/Main.tpl.php	         \
                (rev 0)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/rss/Main.tpl.php	2010-03-30 \
18:22:32 UTC (rev 297193) @@ -0,0 +1,17 @@
+<?php echo '<?xml version="1.0" encoding="UTF-8"?>'.PHP_EOL; ?>
+<rdf:RDF
+    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+    xmlns="http://purl.org/rss/1.0/"
+    xmlns:content="http://purl.org/rss/1.0/modules/content/"
+    xmlns:dc="http://purl.org/dc/elements/1.1/"
+>
+    <channel rdf:about="<?php echo pear2\SimpleChannelFrontend\Main::getURL(); ?>">
+        <link><?php echo pear2\SimpleChannelFrontend\Main::getURL(); ?></link>
+        <dc:creator>pear-webmaster@lists.php.net</dc:creator>
+        <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
+        <dc:language>en-us</dc:language>
+        <title><?php echo pear2\SimpleChannelFrontend\Main::$channel->summary; ?>: \
Latest releases</title> +        <description>The latest releases for <?php echo \
pear2\SimpleChannelFrontend\Main::$channel->summary; ?>.</description> +    \
</channel> +    <?php echo $savant->render($context->page_content); ?>
+</rdf:RDF>
\ No newline at end of file



-- 
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic