Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8 release announcement #350

Closed
Closed
Show file tree
Hide file tree
Changes from 40 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
893dd72
JS-13812 Develop markup for PHP 8 announcement on php.net
naruzl Nov 6, 2020
3a89cc0
JS-13812 Develop markup for PHP 8 announcement on php.net
naruzl Nov 6, 2020
2026b79
JS-13812 added anchors
naruzl Nov 6, 2020
6758f3c
JS-13812 Develop markup for PHP 8 announcement on php.net
naruzl Nov 7, 2020
b26d4c8
JS-13812 Develop markup for PHP 8 announcement on php.net
naruzl Nov 7, 2020
1bbba58
JS-13812 Develop markup for PHP 8 announcement on php.net
naruzl Nov 8, 2020
42928b9
Features texts added, an image deleted
naruzl Nov 9, 2020
e7423c0
Moved the page, added a button in the header
naruzl Nov 17, 2020
0694491
Add og:image to the head
pronskiy Nov 17, 2020
d8140f5
Updated texts
naruzl Nov 17, 2020
898c0e1
Add Russian version and language switch
samdark Nov 17, 2020
ef4d43e
Add language selector
samdark Nov 17, 2020
3a1c08c
Move lang chooser to a function
pronskiy Nov 18, 2020
f52eda7
Apply suggestions from code review for Russian translation
pronskiy Nov 19, 2020
f0a770b
styles for the language selector
naruzl Nov 19, 2020
b559138
Apply suggestions from code review
pronskiy Nov 20, 2020
f766c97
Update moto
pronskiy Nov 20, 2020
df9474d
Update Russian texts
pronskiy Nov 20, 2020
49de3fa
Add pt_BR page fro PHP 8 release
pronskiy Nov 20, 2020
0cac208
[PHP 8 page] Add doc link for union types
pronskiy Nov 20, 2020
66371bb
[PHP 8 page] Add highlighting for code blocks
pronskiy Nov 20, 2020
8befe4b
[PHP 8 page] Apply suggestions from code review
pronskiy Nov 20, 2020
4928254
[PHP 8 page] Apply suggestions from code review
pronskiy Nov 20, 2020
f27c974
Syntax highlighting
naruzl Nov 20, 2020
9a70413
Syntax highlighting for other languages
naruzl Nov 20, 2020
3b1e925
[PHP 8 page] Fix active state for PHP8 menu item
pronskiy Nov 23, 2020
56e6311
[PHP 8 page] Update pt_BR translation by @flavioheleno
pronskiy Nov 23, 2020
c7e8766
Replaced the image, moved lists
naruzl Nov 24, 2020
31f9a0d
[PHP 8 page] Update links
pronskiy Nov 24, 2020
c98c57f
[PHP 8 page] Hide PHP8 menu item if 8 is not released yet
pronskiy Nov 25, 2020
dc8b02c
Do not assume CWD, properly encode dynamic URL parts
samdark Nov 25, 2020
215dbd4
Remove dead code
samdark Nov 25, 2020
90d548c
Remove unused code
samdark Nov 25, 2020
10686f9
Updated a diagram
naruzl Nov 25, 2020
b99f5a2
add dutch translation for PHP8 splash page (#3)
SjonHortensius Nov 25, 2020
6d75fd8
Translate PHP 8 announcement to german (#2)
wol-soft Nov 25, 2020
9887819
Adopt changes made to 8_0_x.php into 8_0_x_de.php
wol-soft Nov 25, 2020
617d8eb
[PHP 8 page] Update Dutch translation markup
pronskiy Nov 25, 2020
d9a987c
[PHP 8 page] Minor markup updates for German translation
pronskiy Nov 25, 2020
a131687
[PHP 8 page] Drop Dutch translation because switch does not work
pronskiy Nov 25, 2020
81a06db
Update include/layout.inc
pronskiy Nov 25, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions images/php8/anchor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions images/php8/icon_arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/php8/jit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions images/php8/logo_php8.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/php8/php_8_released.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
797 changes: 797 additions & 0 deletions images/php8/scheme.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions include/header.inc
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ if (!isset($config["languages"])) {
<base href="<?php echo $_SERVER["BASE_HREF"] ?>">
<?php endif ?>

<?php if (isset($config['meta_tags'])) foreach($config['meta_tags'] as $property => $content): ?>
<meta property="<?php echo $property; ?>" content="<?php echo $content; ?>" />
<?php endforeach ?>

</head>
<body class="<?php print $curr; ?> <?php echo $classes; ?>">

Expand All @@ -116,6 +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">
Expand Down
46 changes: 46 additions & 0 deletions include/layout.inc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ function highlight_php($code, $return = FALSE)
else { echo $highlighted; }
}

// Same as highlight_php() but does not require '<?php' in $code
function highlight_php_trimmed($code, $return = false)
{
$code = "<?php\n" . $code;
$highlighted_code = highlight_php($code, true);
$highlighted_code = preg_replace("/\&lt;\?php(\<br \/\>)+/", '', $highlighted_code, 1);

if ($return) { return $highlighted_code; }
else { echo $highlighted_code; }
pronskiy marked this conversation as resolved.
Show resolved Hide resolved
}

// Stats pages still need this
function commonHeader($title) { site_header($title); }

Expand Down Expand Up @@ -694,4 +705,39 @@ function doc_toc_title($lang, $index, $file, $elm = "dt") {
echo "<$elm><a href='/manual/$lang/$link'>$title</a></$elm>\n";
}


function release_language_chooser($currentlang) {
$LANGUAGES = array(
'en' => 'English',
'pt_BR' => 'Brazilian Portuguese',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Odd that 'pt_BR' gets a locale, but other languages are generalized. I appreciate that's probably a quick of Brazilian Portuguese, but if the criteria is about the default being spoken more in the colonies than the mother land, then let me tell you about American English. :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the same for the PHP manual; there was pt, later came pt_BR, and now only the latter is published.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just an extra info: there was an international agreement that reduced the differences between european portuguese and brazilian portuguese, with full transition ended by 2016 (source)

'de' => 'German',
'ru' => 'Russian',
);

// Print out the form with all the options
$format_options = function () use ($currentlang, $LANGUAGES) {
$out = '';
$tab = str_repeat(' ', 6);
foreach ($LANGUAGES as $lang => $text) {
$selected = '';
if ($lang == $currentlang) {
$selected = ' selected="selected"';
}
$out .= "$tab<option value='$lang'$selected>$text</option>\n";
}
return trim($out);
};
$r = <<<CHANGE_LANG
<form action="" method="get" id="changelang" name="changelang">
<fieldset>
<label for="changelang-langs">Change language:</label>
<select onchange="document.changelang.submit()" name="lang" id="changelang-langs">
{$format_options()}
</select>
</fieldset>
</form>
CHANGE_LANG;
return trim($r);
}

/* vim: set et ts=4 sw=4 ft=php: : */
Loading