Commit:    057102963997b4165c4037479dc7709240fb3bf7
Author:    Adam Harvey <[email protected]>         Thu, 3 Dec 2015 15:43:45 -0800
Parents:   fad56c7067621269961ec6f1133893d56052da70
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=057102963997b4165c4037479dc7709240fb3bf7

Log:
Add upgrading links next to the download links and remove the sidebar.

Since the UX research I conducted into this change was getting two
shrugging +1s on #php.pecl, I'm happy if someone wants to revert this
and replace it with something better later.

Changed paths:
  M  index.php


Diff:
diff --git a/index.php b/index.php
index a8ba405..cd13291 100644
--- a/index.php
+++ b/index.php
@@ -100,8 +100,9 @@ $intro .= "<ul>\n";
 foreach (get_active_branches() as $major => $releases) {
     foreach ($releases as $release) {
         $version = $release['version'];
+        list($major, $minor, $_) = explode('.', $version);
         $intro .= "
-            <li><a class='download-link' 
href='/downloads.php#v$version'>$version</a><span class='dot'>&middot;</span><a 
class='notes' href='/ChangeLog-$major.php#$version'>Release Notes</a></li>\n";
+            <li><a class='download-link' 
href='/downloads.php#v$version'>$version</a><span class='dot'>&middot;</span><a 
class='notes' href='/ChangeLog-$major.php#$version'>Release Notes</a><span 
class='dot'>&middot;</span><a class='notes' 
href='/migration$major$minor'>Upgrading</a></li>\n";
     }
 }
 $intro .= <<<EOF
@@ -169,7 +170,6 @@ if (is_array($CONF_TEASER)) {
 
 $SIDEBAR = <<< SIDEBAR_DATA
 
-    <p class='panel'><a href='/migration70' title='Upgrading to PHP 7' 
class='headline'>Upgrading to PHP 7</a></p>
 $announcements
     <p class='panel'><a href='/cal.php'>User Group Events</a></p>
     <p class='panel'><a href='/thanks.php'>Special Thanks</a></p>


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to