Author: Sergey Panteleev (saundefined)
Date: 2021-11-25T21:47:20+03:00

Commit: 
https://github.com/php/web-php/commit/f9dbcaf607abc6b3d2ad9ed7e498a760b0ea4d39
Raw diff: 
https://github.com/php/web-php/commit/f9dbcaf607abc6b3d2ad9ed7e498a760b0ea4d39.diff

Add PHP 8.1 release page to navbar

Changed paths:
  M  include/header.inc
  M  releases/8.1/release.inc
  M  styles/php8.css


Diff:

diff --git a/include/header.inc b/include/header.inc
index 15101bee3..0bf70b281 100644
--- a/include/header.inc
+++ b/include/header.inc
@@ -119,8 +119,8 @@ if (!isset($config["languages"])) {
       <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>
       <li class="<?php echo $curr === "php8" ? "active" : "" ?>">
-        <a href="/releases/8.0/index.php">
-          <img src="/images/php8/logo_php8.svg" alt="php8" height="22" 
width="60">
+        <a href="/releases/8.1/index.php">
+          <img src="/images/php8/logo_php8_1.svg" alt="php8.1" height="22" 
width="60">
         </a>
       </li>
     </ul>
diff --git a/releases/8.1/release.inc b/releases/8.1/release.inc
index 31f832816..670b6d2bd 100644
--- a/releases/8.1/release.inc
+++ b/releases/8.1/release.inc
@@ -142,7 +142,7 @@ PHP
     <div class="php8-compare">
         <h2 class="php8-h2" id="first_class_callable_syntax">
             <?= message('first_class_callable_syntax_title', $lang) ?>
-            <a class="php8-rfc" 
href="https://wiki.php.net/rfc/first_class_callable_syntax";>RFC</a>
+            <a class="php8-rfc" 
href="https://wiki.php.net/rfc/first_class_callable_syntax";>RFC</a> <a 
class="php8-rfc" href="/manual/<?= $lang 
?>/migration81.new-features.php#migration81.new-features.core.callable-syntax"><?=
 message('documentation', $lang) ?></a>
         </h2>
         <div class="php8-compare__main">
             <div class="php8-compare__block example-contents">
@@ -223,7 +223,7 @@ PHP
             </div>
         </div>
 
-        <div class="php8-compare__content">
+        <div class="php8-compare__content php8-compare__content--spaced">
             <?= message('new_in_initializers_content', $lang) ?>
         </div>
         <div class="php8-compare__main">
@@ -422,7 +422,7 @@ PHP
     <div class="php8-compare">
         <h2 class="php8-h2" id="explicit_octal_numeral_notation">
             <?= message('octal_numeral_notation_title', $lang) ?>
-            <a class="php8-rfc" 
href="https://wiki.php.net/rfc/explicit_octal_notation";>RFC</a>
+            <a class="php8-rfc" 
href="https://wiki.php.net/rfc/explicit_octal_notation";>RFC</a> <a 
class="php8-rfc" href="/manual/<?= $lang 
?>/migration81.new-features.php#migration81.new-features.core.octal-literal-prefix"><?=
 message('documentation', $lang) ?></a>
         </h2>
         <div class="php8-compare__main">
             <div class="php8-compare__block example-contents">
diff --git a/styles/php8.css b/styles/php8.css
index 6eb826cc1..d16f8e520 100644
--- a/styles/php8.css
+++ b/styles/php8.css
@@ -272,6 +272,10 @@
   text-align: left;
 }
 
+.php8-compare__content--spaced {
+  margin-bottom: 24px;
+}
+
 @media (max-width: 810px) {
   .php8-compare__content {
     display: block;

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

Reply via email to