com web/php: Changes to the homepage downloads area: Now we have a link to the gz, bz2 and the windows section for each release: include/header.inc
styles/home.css
| From: | Paul Dragoonis | Date: | Sat, 08 Jan 2011 18:15:46 +0000 |
| Subject: | com web/php: Changes to the homepage downloads area: Now we have a link to the gz, bz2 and the windows section for each release: include/header.inc styles/home.css |
||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-23622@lists.php.net to get a copy of this message | ||
Commit: 19ec26d58a61fb0e86b525cc0a5d96b182b778a1
Author: Paul Dragoonis <dragoonis@gmail.com> Sat, 8 Jan 2011 18:15:46 +0000
Parents: 475d2bdae9fab9a4085e6f08dd19f06960c8f65b
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=19ec26d58a61fb0e86b525cc0a5d96b182b778a1
Log:
Changes to the homepage downloads area: Now we have a link to the gz, bz2 and the windows section
for each release
Changed paths:
M include/header.inc
M styles/home.css
Diff:
diff --git a/include/header.inc b/include/header.inc
index 0c53e4e..6e0067f 100644
--- a/include/header.inc
+++ b/include/header.inc
@@ -85,7 +85,6 @@ if (isset($shortname) && $shortname) {
</span>
</div>
</div>
-
<nav id="headnav">
<ul id="headmenu">
@@ -113,20 +112,26 @@ if (isset($shortname) && $shortname) {
<p class="tutorial"><a href="/tut.php">Introductory
Tutorial »</a></p>
</div>
<div class="download">
-<?php foreach ($RELEASES[5] as $version => $release): ?>
- <a href="/get/<?php echo
$release['source'][0]['filename'] ?>/from/a/mirror">
- <span class="version">PHP <?php echo $version ?></span>
- <span class="package">Complete Source Code</span>
- <span class="file">
- <?php echo $release['source'][0]['filename'] ?>
- <!-- (size) should go here, but it's not in version.inc at present
-->
- </span>
- </a>
-<?php endforeach; ?>
- <a href="http://windows.php.net" class="windows">
- <span class="version">Windows Downloads</span>
- <span class="date">http://windows.php.net/</span>
- </a>
+<?php if(!empty($RELEASES[5])): ?>
+ <ul>
+ <?php
+ foreach ($RELEASES[5] as $version => $release):
+ $windowsVersionLink = substr($version, 0, strrpos($version, '.'));
+ ?>
+ <li>
+ <a href="/get/<?php echo
$release['source'][1]['filename'] ?>/from/a/mirror"
class="version">PHP <?php echo $version ?></a>
+ <a href="/get/<?php echo
$release['source'][0]['filename'] ?>/from/a/mirror">Download as
bz2</a>
+ <a href="http://windows.php.net/download/#php-<?php
echo $windowsVersionLink; ?>">Download for windows</a>
+ <!-- (size) should go here, but it's not in version.inc at present -->
+ </li>
+ <?php endforeach; ?>
+
+ <li class="windows">
+ <a href="http://windows.php.net/"
title="">Download for windowss</a>
+ <a href="http://windows.php.net/" title=>http://windows.php.net/</a>
+ </li>
+ </ul>
+<?php endif; ?>
</div>
<br style="clear: both;" />
</div></div></div>
diff --git a/styles/home.css b/styles/home.css
index 4e1caf1..002c352 100644
--- a/styles/home.css
+++ b/styles/home.css
@@ -36,10 +36,62 @@ complimentary greens: 9FB553 7B8851 61761B C6DA82 CCDA99
font-size: 11px;
}
+
#mega-drop-down div.children.downloads {
padding-bottom: 0;
}
+
+/* We have to override these because theme.css has a generic style for 'ul'
+ and that doesn't apply here on the downloads area
+*/
+#mega-drop-down div.download ul {
+ float: none !important;
+ width: auto !important;
+ padding: 0 !important;
+}
+
+#mega-drop-down div.download li:first-child {
+ padding: 20px 0 0px 100px;
+ background-image: url('/images/sprites.png');
+ background-position: 10px -187px;
+ background-repeat: no-repeat;
+ border: none;
+}
+
+#mega-drop-down div.download li {
+ color: #eee;
+ display: block;
+ padding: 10px 0 0px 100px;
+ background-image: url('/images/sprites.png');
+ background-position: 24px -290px;
+ background-repeat: no-repeat;
+ cursor: pointer;
+ border-top: 1px solid #555;
+}
+
+#mega-drop-down div.download li.windows {
+ background-image: url('/images/mega-windows.png');
+ background-position: 46px 50%;
+}
+
+#mega-drop-down div.download a {
+ padding-top: 0;
+ padding-left: 0;
+ display: block;
+ clear: right;
+ font-size: 1.0em;
+}
+
+#mega-drop-down div.download a:first-child {
+ font-size: 2.0em;
+}
+
+#mega-drop-down div.download li.windows a:first-child {
+ font-size: 1.5em;
+}
+
+/*
#mega-drop-down div.download a {
color: #eee;
display: block;
@@ -63,22 +115,22 @@ complimentary greens: 9FB553 7B8851 61761B C6DA82 CCDA99
background-position: 46px 50%;
}
-#mega-drop-down div.download a span {
+#mega-drop-down div.download a {
display: block;
clear: right;
}
-#mega-drop-down div.download a span.version {
+#mega-drop-down div.download a.version {
font-size: 1.5em;
line-height: 100%;
font-weight: bold;
}
#mega-drop-down div.download a:first-child span.version {
- font-size: 2.5em;
+ font-size: 2.0em;
}
-#mega-drop-down div.download a span.package {
+#mega-drop-down div.download a.package {
font-size: 1.3em;
display: none;
}
@@ -87,6 +139,8 @@ complimentary greens: 9FB553 7B8851 61761B C6DA82 CCDA99
display: block;
}
+*/
+
#head-beta-warning {
background: #339900;
display: none;