cvs: pearweb /public_html index.php
| From: | Greg Beaver | Date: | Thu, 19 Oct 2006 02:24:06 +0000 |
| Subject: | cvs: pearweb /public_html index.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-5108@lists.php.net to get a copy of this message | ||
cellog Thu Oct 19 02:24:06 2006 UTC
Modified files:
/pearweb/public_html index.php
Log:
wordwrap long package names at 25 characters, otherwise we mess up right-side formatting
http://cvs.php.net/viewvc.cgi/pearweb/public_html/index.php?r1=1.119&r2=1.120&diff_format=u
Index: pearweb/public_html/index.php
diff -u pearweb/public_html/index.php:1.119 pearweb/public_html/index.php:1.120
--- pearweb/public_html/index.php:1.119 Wed Oct 18 17:23:17 2006
+++ pearweb/public_html/index.php Thu Oct 19 02:24:06 2006
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: Martin Jansen <mj@php.net> |
+----------------------------------------------------------------------+
- $Id: index.php,v 1.119 2006/10/18 17:23:17 cellog Exp $
+ $Id: index.php,v 1.120 2006/10/19 02:24:06 cellog Exp $
*/
$recent = release::getRecent(5);
@@ -30,7 +30,7 @@
}
$RSIDEBAR_DATA .= "<tr><td valign=\"top\"
class=\"compact\">";
$RSIDEBAR_DATA .= "<a href=\"/package/" . $release['name'] .
"/\">";
- $RSIDEBAR_DATA .= $release['name'] . ' ' .
+ $RSIDEBAR_DATA .= wordwrap($release['name'],25,"\n",1) . ' '
.
$release['version'] . '</a><br />
<small>(' .
$releasedate . ')</small></td></tr>';
}
@@ -46,7 +46,7 @@
foreach ($popular as $package) {
$RSIDEBAR_DATA .= "<tr><td valign=\"top\"
class=\"compact\">";
$RSIDEBAR_DATA .= "<a href=\"/package/" . $package['name'] .
"/\">";
- $RSIDEBAR_DATA .= $package['name'] . ' ' .
$package['version'] . '</a><br /> <small>(' .
+ $RSIDEBAR_DATA .= wordwrap($package['name'],25,"\n",1) . ' '
. $package['version'] . '</a><br /> <small>(' .
$package['d'] .
')</small></td></tr>';
}
$feed_link = '<a href="/feeds/" title="Information about XML feeds for
the PEAR website"><img src="/gifs/feed.png" width="16"
height="16" alt="" border="0" /></a>';