svn: /pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/ Categories.tpl.php Category.tpl.php News.tpl.php Package.tpl.php PackageRelease.tpl.php Search.tpl.php Support.tpl.php

[email protected] (Michael Gauthier)
Newsgroups php.pear.cvs,php.pear.core
Message-ID <[email protected]>
gauthierm                                Fri, 25 Jun 2010 22:23:50 +0000

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

Log:
Consistify page titles.

Changed paths:
    U   pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Categories.tpl.php
    U   pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Category.tpl.php
    U   pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/News.tpl.php
    U   pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Package.tpl.php
    U   pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageRelease.tpl.php
    U   pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Search.tpl.php
    U   pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Support.tpl.php

Modified: pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Categories.tpl.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Categories.tpl.php	2010-06-25 22:23:36 UTC (rev 300760)
+++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Categories.tpl.php	2010-06-25 22:23:50 UTC (rev 300761)
@@ -1,7 +1,8 @@
 <?php

 // Set the page title
-$parent->context->page_title = 'Categories | ' . PEAR2\SimpleChannelFrontend\Main::$channel->name;
+$parent->context->page_title = 'Categories - '
+    . PEAR2\SimpleChannelFrontend\Main::$title;

 $categoriesPerRow    = 3;
 $packagesPerCategory = 4;

Modified: pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Category.tpl.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Category.tpl.php	2010-06-25 22:23:36 UTC (rev 300760)
+++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Category.tpl.php	2010-06-25 22:23:50 UTC (rev 300761)
@@ -1,7 +1,8 @@
 <?php

 // Set the page title
-$parent->context->page_title = $context->name . ' | Categories | ' . PEAR2\SimpleChannelFrontend\Main::$channel->name;
+$parent->context->page_title = $context->name . ' - Categories - '
+    . PEAR2\SimpleChannelFrontend\Main::$title;

 ?>


Modified: pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/News.tpl.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/News.tpl.php	2010-06-25 22:23:36 UTC (rev 300760)
+++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/News.tpl.php	2010-06-25 22:23:50 UTC (rev 300761)
@@ -1,6 +1,8 @@
 <?php
-// Set the title for the main template
-$parent->context->page_title = 'News | pear2.php.net';
+
+// Set the page title
+$parent->context->page_title = PEAR2\SimpleChannelFrontend\Main::$title;
+
 $rss_feed = '/var/tmp/pear/rss_cache/pear-news.xml';
 if (file_exists($rss_feed)) {
     $blog = simplexml_load_file($rss_feed);

Modified: pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Package.tpl.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Package.tpl.php	2010-06-25 22:23:36 UTC (rev 300760)
+++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Package.tpl.php	2010-06-25 22:23:50 UTC (rev 300761)
@@ -1,6 +1,9 @@
 <?php
-// Set the title for the main template
-$parent->context->page_title = $context->name.' | pear2.php.net';
+
+// Set the page title
+$parent->context->page_title = $context->name . ' - '
+    . PEAR2\SimpleChannelFrontend\Main::$title;
+
 ?>

 <div class="left">
@@ -51,7 +54,7 @@

 foreach ($context as $version => $release) {

-    $releaseURL = pear2\SimpleChannelFrontend\Main::getURL()
+    $releaseURL = PEAR2\SimpleChannelFrontend\Main::getURL()
         . $context->name . '-' . $version;

     $class = ($count % 2 === 0) ? 'odd' : 'even';

Modified: pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageRelease.tpl.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageRelease.tpl.php	2010-06-25 22:23:36 UTC (rev 300760)
+++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageRelease.tpl.php	2010-06-25 22:23:50 UTC (rev 300761)
@@ -1,6 +1,10 @@
 <?php
-// Set the title for the main template
-$parent->context->page_title = $context->name . '-' . $context->version['release'] . ' | pear2.php.net';
+
+// Set the page title
+$parent->context->page_title = $context->name . '-'
+    . $context->version['release'] . ' - ' .
+    . PEAR2\SimpleChannelFrontend\Main::$title;
+
 ?>

 <div class="left">

Modified: pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Search.tpl.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Search.tpl.php	2010-06-25 22:23:36 UTC (rev 300760)
+++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Search.tpl.php	2010-06-25 22:23:50 UTC (rev 300761)
@@ -1,6 +1,9 @@
 <?php
+
 // Set the title for the main template
-$parent->context->page_title = 'Search | ' . PEAR2\SimpleChannelFrontend\Main::$channel->name;
+$parent->context->page_title = 'Package Search - ' .
+    PEAR2\SimpleChannelFrontend\Main::$title;
+
 ?>
 <div id="search-packages" class="package-list pearbox">
     <div class="pearbox-header">

Modified: pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Support.tpl.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Support.tpl.php	2010-06-25 22:23:36 UTC (rev 300760)
+++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Support.tpl.php	2010-06-25 22:23:50 UTC (rev 300761)
@@ -1,6 +1,9 @@
 <?php
+
 // Set the title for the main template
-$parent->context->page_title = 'Support | '.PEAR2\SimpleChannelFrontend\Main::$channel->name;
+$parent->context->page_title = 'Support - '
+    . PEAR2\SimpleChannelFrontend\Main::$title;
+
 ?>
 <div class="support">
     <h2>Support</h2>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.