svn: /pear2/sandbox/pear2.php.net/trunk/ index.php templates/pear2/News.tpl.php
| From: | Brett Bieber | Date: | Fri, 04 Dec 2009 22:43:44 +0000 |
| Subject: | svn: /pear2/sandbox/pear2.php.net/trunk/ index.php templates/pear2/News.tpl.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9078@lists.php.net to get a copy of this message | ||
saltybeagle Fri, 04 Dec 2009 22:43:44 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=291727
Log:
Fix template path, add custom News/index page
Changed paths:
U pear2/sandbox/pear2.php.net/trunk/index.php
A pear2/sandbox/pear2.php.net/trunk/templates/pear2/News.tpl.php
Modified: pear2/sandbox/pear2.php.net/trunk/index.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/index.php 2009-12-04 22:42:22 UTC (rev 291726)
+++ pear2/sandbox/pear2.php.net/trunk/index.php 2009-12-04 22:43:44 UTC (rev 291727)
@@ -15,7 +15,7 @@
$savant = new pear2\Templates\Savant\Main();
$savant->setClassToTemplateMapper(new pear2\SimpleChannelFrontend\TemplateMapper);
-$savant->setTemplatePath(array(__DIR__ . '/templates/pear2', __DIR__ .
'/templates/default'));
+$savant->setTemplatePath(array(__DIR__ . '/templates/default', __DIR__ .
'/templates/pear2'));
$savant->setEscape('htmlspecialchars');
$savant->addFilters(array($frontend, 'postRender'));
echo $savant->render($frontend);
Added: pear2/sandbox/pear2.php.net/trunk/templates/pear2/News.tpl.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/templates/pear2/News.tpl.php (rev 0)
+++ pear2/sandbox/pear2.php.net/trunk/templates/pear2/News.tpl.php 2009-12-04 22:43:44 UTC (rev
291727)
@@ -0,0 +1,16 @@
+<?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.</p>
+ <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 Pyrus</h3>
+ <a href="http://svn.php.net/viewvc/pear2/Pyrus/trunk/pyrus.phar?view=co">Download
pyrus.phar</a>
+ </div>
+</div>
\ No newline at end of file