svn: /web/php/trunk/ include/header.inc styles/home.css
[email protected] (Paul Dragoonis)
| Newsgroups | php.webmaster |
|---|---|
| Message-ID | <[email protected]> |
dragoonis Sat, 08 Jan 2011 18:15:46 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=307273
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:
U web/php/trunk/include/header.inc
U web/php/trunk/styles/home.css
Modified: web/php/trunk/include/header.inc
===================================================================
--- web/php/trunk/include/header.inc 2011-01-08 17:24:36 UTC (rev 307272)
+++ web/php/trunk/include/header.inc 2011-01-08 18:15:46 UTC (rev 307273)
@@ -85,7 +85,6 @@
</span>
</div>
</div>
-
<nav id="headnav">
<ul id="headmenu">
@@ -113,20 +112,26 @@
<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>
Modified: web/php/trunk/styles/home.css
===================================================================
--- web/php/trunk/styles/home.css 2011-01-08 17:24:36 UTC (rev 307272)
+++ web/php/trunk/styles/home.css 2011-01-08 18:15:46 UTC (rev 307273)
@@ -36,11 +36,63 @@
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;
padding: 10px 0 10px 100px;
@@ -63,22 +115,22 @@
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 @@
display: block;
}
+*/
+
#head-beta-warning {
background: #339900;
display: none;