1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Redesign the download page :)

This commit is contained in:
Hannes Magnusson
2013-11-20 23:34:17 -08:00
parent 3b349fa794
commit facccef14b
6 changed files with 198 additions and 220 deletions

View File

@@ -7,61 +7,66 @@ include_once $_SERVER['DOCUMENT_ROOT'] . '/include/version.inc';
// Try to make this page non-cached
header_nocache();
$gpg = array(
"5.5" => <<< GPG
pub 2048R/90D90EC1 2013-07-18 [expire : 2016-07-17]
Key fingerprint = 0BD7 8B5F 9750 0D45 0838 F95D FE85 7D9A 90D9 0EC1
uid Julien Pauli &lt;jpauli@php.net&gt;
pub 4096R/7267B52D 2012-03-20 [expires: 2016-03-19]
Key fingerprint = 0B96 609E 270F 565C 1329 2B24 C13C 70B8 7267 B52D
uid David Soria Parra &lt;dsp@php.net&gt;
GPG
,
"5.4" => <<< GPG
pub 2048D/5DA04B5D 2012-03-19
Key fingerprint = F382 5282 6ACD 957E F380 D39F 2F79 56BC 5DA0 4B5D
uid Stanislav Malyshev (PHP key) &lt;smalyshev@gmail.com&gt;
uid Stanislav Malyshev (PHP key) &lt;stas@php.net&gt;
uid Stanislav Malyshev (PHP key) &lt;smalyshev@sugarcrm.com&gt;
GPG
,
"5.3" => <<< GPG
pub 4096R/7267B52D 2012-03-20 [expires: 2016-03-19]
Key fingerprint = 0B96 609E 270F 565C 1329 2B24 C13C 70B8 7267 B52D
uid David Soria Parra &lt;dsp@php.net&gt;
pub 2048R/FC9C83D7 2012-03-18 [expires: 2017-03-17]
Key fingerprint = 0A95 E9A0 2654 2D53 835E 3F3A 7DEC 4E69 FC9C 83D7
uid Johannes Schlüter &lt;johannes@schlueters.de&gt;
uid Johannes Schlüter &lt;johannes@php.net&gt;
GPG
);
$SIDEBAR_DATA = '
<h3>Binaries for other systems</h3>
<p>
<p class="panel"><a href="download-docs.php">Documentation download</a></p>
<p class="panel"><a href="download-logos.php">PHP logos</a></p>
<p class="panel"><a href="http://snaps.php.net/">Development Snapshots</a></a>
<p class="panel"><a href="/git.php">Development sources (git)</a></a>
<p class="panel"><a href="/releases/">Old archives</a></p>
<div class="otherbins">
<p class="announcements">
We do not distribute UNIX/Linux binaries. Most Linux
distributions come with PHP these days, so if you do
not want to compile your own, go to your distribution\'s
download site. Binaries available on external servers:
</p>
<p class="panel"><a href="http://windows.php.net">Windows Binaries</a></p>
<ul class="toc">
<li><a href="http://www.ampps.com/">Mac OS X (AMPPS)</a></li>
<li><a href="http://www.mamp.info/">Mac OS X (MAMP)</a></li>
<li>BitNami (<a href="http://bitnami.com/stack/wamp">Windows</a>, <a href="http://bitnami.com/stack/mamp">MacOSX</a>, <a href="http://bitnami.com/stack/lamp">Linux</a>)</li>
<li><a href="http://www.opencsw.org/packages/php5">Solaris OpenCSW packages</a></li>
<li><a href="http://iuscommunity.org/">Redhat/CentOS Binaries (IUS)</a></li>
<li><a href="http://rpms.famillecollet.com/">Fedora/Redhat/CentOS Binaries (Remi)</a></li>
<li class="panel"><a href="http://www.ampps.com/">Mac OS X (AMPPS)</a></li>
<li class="panel"><a href="http://www.mamp.info/">Mac OS X (MAMP)</a></li>
<li class="panel"><a href="http://bitnami.com/stack/mamp">Mac OS X (BitNami)</a></li>
<li class="panel"><a href="http://bitnami.com/stack/wamp">Windows (BitNami)</a></li>
<li class="panel"><a href="http://bitnami.com/stack/lamp">Linux (BitNami)</a></li>
<li class="panel"><a href="http://www.opencsw.org/packages/php5">Solaris OpenCSW packages</a></li>
<li class="panel"><a href="http://iuscommunity.org/">Redhat/CentOS Binaries (IUS)</a></li>
<li class="panel"><a href="http://rpms.famillecollet.com/">Fedora/Redhat/CentOS Binaries (Remi)</a></li>
</ul>
<h3>Development and archive versions</h3>
<p>
Regular source and binary snapshots are available
from <a href="http://snaps.php.net/">snaps.php.net</a>.
These are not intended for production use!
</p>
<p>
To download the very latest development version,
see the <a href="git.php">instructions on using Git</a>.
</p>
<div class="information">
<p>
Information about older releases and their downloads
are available on <a href="/releases/">our releases page</a>.
</p>
</div>
<br />
<h3>Other Downloads</h3>
<p>
<a href="http://pear.php.net/packages.php">PEAR
packages</a>, <a href="http://pecl.php.net/packages.php">PECL hosted
PHP extensions</a> and <a href="http://gtk.php.net/download.php">PHP-GTK
source and binaries</a> are available on their own pages.
</p>
<p>
For downloadable PHP manual packages, go to the
<a href="download-docs.php">documentation download</a>
page.
</p>
<p>
Get some
<a href="download-logos.php">PHP logos</a>
for your site, and some PHP icons to use on
your computer.
</p>
';
site_header("Downloads",
@@ -90,34 +95,32 @@ $i = 0;
foreach ($rows as $row) {
echo "<div class='row-fluid'>\n";
foreach ($row as $v => $a) {
$stable = $i++ === 0 ? "(Current Stable)" : "(Old Stable)";
$stable = $i++ === 0 ? "" : "(Old Stable)";
$mver = substr($v, 0, strrpos($v, "."));
?>
<div class="span6">
<h1 id="v<?php echo $v; ?>">PHP <?php echo "$v $stable"; ?></h1>
<div class="download-box">
<h1 id="v<?php echo $v; ?>">PHP <?php echo "$mver $stable"; ?></h1>
<h4>Complete Source Code:</h4>
<ul>
<?php
foreach($a["source"] as $rel) {
echo " <li>\n ";
if (!empty($rel['link'])) {
$link = $rel['link'];
$name = $rel['name'];
echo "<a href='$link'>$name</a>";
} else {
download_link($rel["filename"], $rel["name"]); echo " - {$rel["date"]}<br />\n";
echo " <span class=\"md5sum\">md5: {$rel["md5"]}</span>\n";
download_link($rel["filename"], $rel["name"]);
echo " <span class=\"md5sum\">md5: {$rel["md5"]}</span>\n";
echo " <span class='releasedate'>({$rel["date"]})</span><br />\n";
(isset($rel["note"]) && $rel["note"] ? "<p><strong>Note:</strong>{$rel["note"]}</p>": "");
}
echo " </li>\n";
}
?>
<li>
<a href="/ChangeLog-<?php echo $MAJOR; ?>.php#<?php echo urlencode($v); ?>">Changelog for PHP <?php echo $v; ?></a>
</li>
</ul>
<a href="/ChangeLog-<?php echo $MAJOR; ?>.php#<?php echo urlencode($v); ?>" class="changelog">Changelog for PHP <?php echo $v; ?></a>
GPG Keys
<pre class="gpg">
<?php echo $gpg[$mver]; ?>
</pre>
</div>
<?php
}
echo "</div>\n";
@@ -125,43 +128,11 @@ foreach($a["source"] as $rel) {
?>
<hr/>
<h1>GPG Keys</h1>
<h1>GPG Keys & Signatures</h1>
<p>
The releases are tagged and signed in the <a href='git.php'>PHP Git Repository</a>.
The following official GnuPG keys of the current PHP Release Manager can be used
to verify the tags:
Each release is tagged and signed in the <a href='git.php'>PHP Git Repository</a>,
and the signatures for individual archive is also available as .asc file.<br>
</p>
<h2>PHP 5.5</h2>
<pre>
pub 2048R/90D90EC1 2013-07-18 [expire : 2016-07-17]
Key fingerprint = 0BD7 8B5F 9750 0D45 0838 F95D FE85 7D9A 90D9 0EC1
uid Julien Pauli &lt;jpauli@php.net&gt;
pub 4096R/7267B52D 2012-03-20 [expires: 2016-03-19]
Key fingerprint = 0B96 609E 270F 565C 1329 2B24 C13C 70B8 7267 B52D
uid David Soria Parra &lt;dsp@php.net&gt;
</pre>
<h2>PHP 5.4</h2>
<pre>
pub 2048D/5DA04B5D 2012-03-19
Key fingerprint = F382 5282 6ACD 957E F380 D39F 2F79 56BC 5DA0 4B5D
uid Stanislav Malyshev (PHP key) &lt;smalyshev@gmail.com&gt;
uid Stanislav Malyshev (PHP key) &lt;stas@php.net&gt;
uid Stanislav Malyshev (PHP key) &lt;smalyshev@sugarcrm.com&gt;
</pre>
<pre>
pub 4096R/7267B52D 2012-03-20 [expires: 2016-03-19]
Key fingerprint = 0B96 609E 270F 565C 1329 2B24 C13C 70B8 7267 B52D
uid David Soria Parra &lt;dsp@php.net&gt;
</pre>
<h2>PHP 5.3</h2>
<pre>
pub 2048R/FC9C83D7 2012-03-18 [expires: 2017-03-17]
Key fingerprint = 0A95 E9A0 2654 2D53 835E 3F3A 7DEC 4E69 FC9C 83D7
uid Johannes Schlüter &lt;johannes@schlueters.de&gt;
uid Johannes Schlüter &lt;johannes@php.net&gt;
</pre>
<?php
site_footer(array('sidebar' => $SIDEBAR_DATA));

View File

@@ -71,10 +71,6 @@ $RELEASES = array(
"md5" => $PHP_5_5_MD5["tar.xz"],
"date" => $PHP_5_5_DATE,
),
array(
"link" => 'http://windows.php.net/download/#php-5.5',
"name" => "Windows $PHP_5_5_VERSION binaries and source",
),
),
),
$PHP_5_4_VERSION => array(
@@ -92,10 +88,6 @@ $RELEASES = array(
"md5" => $PHP_5_4_MD5["tar.gz"],
"date" => $PHP_5_4_DATE,
),
array(
"link" => 'http://windows.php.net/download/#php-5.4',
"name" => "Windows $PHP_5_4_VERSION binaries and source",
),
),
),
$PHP_5_3_VERSION => array(
@@ -113,10 +105,6 @@ $RELEASES = array(
"md5" => $PHP_5_3_MD5["tar.gz"],
"date" => $PHP_5_3_DATE,
),
array(
"link" => 'http://windows.php.net/download/#php-5.3',
"name" => "Windows $PHP_5_3_VERSION binaries and source",
),
),
),
),

View File

@@ -162,8 +162,8 @@ if (is_array($CONF_TEASER)) {
$announcements = "";
foreach($CONF_TEASER as $category => $entries) {
if ($entries) {
$announcements .= '<div class="panel conferences">';
$announcements .= '<a href="/conferences" class="conf">' . $conftype[$category] .'</a><ul class="announcements">';
$announcements .= '<div class="panel headline">';
$announcements .= '<a href="/conferences" class="headline">' . $conftype[$category] .'</a><ul class="announcements">';
foreach (array_slice($entries, 0, 4) as $url => $title) {
$title = preg_replace("'([A-Za-z0-9])([\s\:\-\,]*?)call for(.*?)$'i", "$1", $title);
$announcements .= "<li><a href='$url'>$title</a></li>";

View File

@@ -61,97 +61,6 @@ complimentary greens: 9FB553 7B8851 61761B C6DA82 CCDA99
content: "\21AF \2003";
}
/* Announcement Area */
.home aside.tips {
background:transparent;
padding:0;
border:0;
}
.home aside.tips div.inner {
padding:0;
clear:none;
border:0;
background:inherit;
}
.home .announcements {
display: block;
background-color: #ebebf4;
border:1px solid #dbdbeb;
border-bottom-color:#cacae2;
border-radius: 0 0 2px 2px;
padding: 1em;
margin: 0;
list-style: none;
}
.home .announcements li + li {
margin-top:.75em;
}
.home .announcements ul, .home .announcements ul li {
list-style: none;
margin: 0;
padding: 0;
}
/* {{{ Right-hand sidebar */
.home aside.tips .panel {
margin:0.66666666666667em 0;
background:#f0f0f0;
border:1px solid #e3e3e3;
border-bottom-color:#d6d6d6;
border-radius:2px;
}
.home aside.tips .panel a {
color:#333;
display: block;
padding: .75em 1em;
}
.home aside.tips .panel span {
display: block;
padding: .75em 1em;
}
.home aside.tips .panel .announcements a {
padding: 0;
border: 0;
margin: 0;
line-height: 1;
}
.home aside.tips .panel a::after {
float:right;
content:"»";
color:#666;
}
.home aside.tips .panel a:hover,
.home aside.tips .panel a:focus {
background:#ebebf4;
border-color:#dbdbeb;
border-bottom-color:#cacae2;
color:#000;
}
.home aside.tips .panel a:hover::after,
.home aside.tips .panel a:focus::after {
color:#333;
}
.home aside.tips .conferences a.conf,
.home aside.tips .conferences a.conf:hover {
background-color: #f0f0f0;
line-height: 1;
border: 0px;
}
.home aside.tips a:link,
.home aside.tips a:visited {
color:#369;
border-bottom-color: transparent;
}
.home aside.tips a:hover,
.home aside.tips a:focus {
color:#f25050;
border-bottom-color: #f25050;
}
/* }}} */
.newsentry {

View File

@@ -2322,17 +2322,6 @@ pre.info {
float: right;
}
aside.tips {
border-top: .25em solid;
}
aside.tips div.inner {
padding: .75em;
border-left:1px solid;
border-right:1px solid;
border-bottom:1px solid;
}
#layout {
margin: .75em auto 1.5em;
@@ -2859,10 +2848,43 @@ fieldset {
}
/* }}} */
body.downloads #layout .span6 {
word-wrap: break-word;
margin-bottom:.75em;
section.downloads {
}
.gpg {
background: #f7f7f7;
border-top: 2px solid #e3e3e3;
margin: 0px;
padding: 0px;
}
.download-box {
margin: 0.66666666666667em 25px 55px;
position: relative;
background-color: #fff;
display: block;
float: none;
box-shadow: 3px 3px 10px rgba(0,0,0,.1);
border-radius: 4px;
}
.download-box .md5sum {
font-size: 0.9em;
position: absolute;
left: 230px;
font: normal 14px / 1.46 "Source Code Pro", monospace;
}
.download-box .releasedate {
float: right;
font-size: 0.9em;
}
.download-box .changelog {
float: right;
margin-right: 10px;
}
.download-box pre {
font: normal 14px / 1.46 "Source Code Pro", monospace;
}
.refsect1 > *:last-child {
margin-bottom:0;
@@ -3375,3 +3397,98 @@ div.soft-deprecation-notice blockquote.sidebar {
padding-right:0;
}
}
/* {{{ Right-hand sidebar */
aside.tips ul {
list-style:none;
margin: 0;
}
aside.tips .panel {
margin:0.66666666666667em 0;
background:#f0f0f0;
border:1px solid #e3e3e3;
border-bottom-color:#d6d6d6;
border-radius:2px;
}
aside.tips .panel a {
color:#333;
display: block;
padding: .75em 1em;
}
aside.tips .panel span {
display: block;
padding: .75em 1em;
}
aside.tips .panel .announcements a {
padding: 0;
border: 0;
margin: 0;
line-height: 1;
}
aside.tips .panel a::after {
float:right;
content:"»";
color:#666;
}
aside.tips .panel a:hover,
aside.tips .panel a:focus {
background:#ebebf4;
border-color:#dbdbeb;
border-bottom-color:#cacae2;
color:#000;
}
aside.tips .panel a:hover::after,
aside.tips .panel a:focus::after {
color:#333;
}
aside.tips div.headline a.headline,
aside.tips div.headline a.headline:hover {
background-color: #f0f0f0;
line-height: 1;
border: 0px;
}
aside.tips a:link,
aside.tips a:visited {
color:#369;
border-bottom-color: transparent;
}
aside.tips a:hover,
aside.tips a:focus {
color:#f25050;
border-bottom-color: #f25050;
}
/* Announcement Area */
aside.tips {
background:transparent;
padding:0;
border:0;
}
aside.tips div.inner {
padding:0;
clear:none;
border:0;
background:inherit;
}
.announcements {
display: block;
background-color: #ebebf4;
border:1px solid #dbdbeb;
border-bottom-color:#cacae2;
border-radius: 0 0 2px 2px;
padding: 1em;
margin: 0;
list-style: none;
}
.announcements li + li {
margin-top:.75em;
}
.announcements ul, .announcements ul li {
list-style: none;
margin: 0;
padding: 0;
}
/* }}} */

View File

@@ -327,13 +327,6 @@ aside.tips {
aside.tips div.border {
display:none;
}
aside.tips div.inner {
background:#eeeef6;
border-left-color:1px solid #e0e0e0;
border-right-color:1px solid #e0e0e0;
border-bottom-color:1px solid #d6d6dd;
border-radius: 0 0 2px 2px;
}
.soft-deprecation-notice {
color: #262626;