Commit:    dd01f011288196f3bc8fe7f12585eeb903b22ef8
Author:    Roman Pronskiy <[email protected]>         Wed, 25 Nov 2020 
10:31:08 +0200
Committer: Sara Golemon <[email protected]>      Wed, 25 Nov 2020 20:28:13 +0000
Parents:   7a0a975dde0cacf9d70364bc994f8f16c6ec3443
Branches:  master

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

Log:
Hide PHP8 menu item if 8 is not released yet

Changed paths:
  M  include/header.inc


Diff:
diff --git a/include/header.inc b/include/header.inc
index cb2dfa7ba..b40632857 100644
--- a/include/header.inc
+++ b/include/header.inc
@@ -120,11 +120,13 @@ if (!isset($config["languages"])) {
       <li class="<?php echo $curr == "docs" ? "active" : ""?>"><a 
href="/docs.php">Documentation</a></li>
       <li class="<?php echo $curr == "community" ? "active" : ""?>"><a 
href="/get-involved" >Get Involved</a></li>
       <li class="<?php echo $curr == "help" ? "active" : ""?>"><a 
href="/support">Help</a></li>
+<?php if (!empty($GLOBALS['RELEASES'][8])): ?>
       <li class="<?php echo false !== strpos($curr, "php_8_0_x") ? "active" : 
"" ?>">
         <a href="/releases/8_0_x.php">
           <img src="/images/php8/logo_php8.svg" alt="php8" height="22" 
width="60">
         </a>
       </li>
+<?php endif ?>
     </ul>
     <form class="navbar-search" id="topsearch" action="/search.php">
       <input type="hidden" name="show" value="quickref">


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

Reply via email to