Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 1 addition & 3 deletions include/header.inc
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ 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 ?>
<?php if (isset($config['meta_tags'])) { echo $config['meta_tags']; } ?>

</head>
<body class="<?php print $curr; ?> <?php echo $classes; ?>">
Expand Down
20 changes: 17 additions & 3 deletions releases/8.0/de.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,26 @@
mirror_redirect('/releases/8.0/' . urlencode($LANG) . '.php?lang=' . urlencode($LANG));
}

$meta_image_path = $MYSITE . 'images/php8/php_8_released.png';
$meta_description = 'PHP 8.0 ist ein Major-Update der Sprache PHP. Es beinhaltet viele neue Funktionen und Optimierungen wie beispielsweise Named Arguments, Union Types, Attribute, Constructor Property Promotion, Match Ausdrücke, Nullsafe Operator, JIT und Verbesserungen des Typen-Systems, der Fehlerbehandlung und der Konsistenz.';
site_header("PHP 8.0.0 Release Announcement", array(
"current" => "php8",
'css' => array('php8.css'),
'meta_tags' => array(
'og:image' => $MYSITE . 'images/php8/php_8_released.png'
)
'meta_tags' => <<<META
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@official_php" />
<meta name="twitter:title" content="PHP 8.0 Released" />
<meta name="twitter:description" content="{$meta_description}" />
<meta name="twitter:creator" content="@official_php" />
<meta name="twitter:image:src" content="{$meta_image_path}" />

<meta itemprop="name" content="PHP 8.0 Released" />
<meta itemprop="description" content="{$meta_description}" />
<meta itemprop="image" content="{$meta_image_path}" />

<meta property="og:image" content="{$meta_image_path}" />
<meta property="og:description" content="{$meta_description}" />
META
));
?>
<section class="php8-section php8-section_dark php8-section_header center">
Expand Down
22 changes: 18 additions & 4 deletions releases/8.0/en.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,26 @@
mirror_redirect('/releases/8.0/' . urlencode($LANG) . '.php?lang=' . urlencode($LANG));
}

$meta_image_path = $MYSITE . 'images/php8/php_8_released.png';
$meta_description = 'PHP 8.0 is a major update of the PHP language. It contains many new features and optimizations including named arguments, union types, attributes, constructor property promotion, match expression, nullsafe operator, JIT, and improvements in the type system, error handling, and consistency.';
site_header("PHP 8.0.0 Release Announcement", array(
"current" => "php8",
'css' => array('php8.css'),
'meta_tags' => array(
'og:image' => $MYSITE . 'images/php8/php_8_released.png'
)
'meta_tags' => <<<META
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@official_php" />
<meta name="twitter:title" content="PHP 8.0 Released" />
<meta name="twitter:description" content="{$meta_description}" />
<meta name="twitter:creator" content="@official_php" />
<meta name="twitter:image:src" content="{$meta_image_path}" />

<meta itemprop="name" content="PHP 8.0 Released" />
<meta itemprop="description" content="{$meta_description}" />
<meta itemprop="image" content="{$meta_image_path}" />

<meta property="og:image" content="{$meta_image_path}" />
<meta property="og:description" content="{$meta_description}" />
META
));
?>
<section class="php8-section php8-section_dark php8-section_header center">
Expand All @@ -24,7 +38,7 @@
<div class="php8-logo">
<img src="/images/php8/logo_php8.svg" alt="php8" height="126" width="343">
</div>
<div class="php8-title">released!</div>
<div class="php8-title">Released!</div>
<div class="php8-subtitle">
PHP 8.0 is a major update of the PHP language.<br class="display-none-md"> It contains many new features and
optimizations including named arguments, union types, attributes, constructor property promotion, match
Expand Down
22 changes: 18 additions & 4 deletions releases/8.0/pt_BR.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,26 @@
mirror_redirect('/releases/8.0/' . urlencode($LANG) . '.php?lang=' . urlencode($LANG));
}

$meta_image_path = $MYSITE . 'images/php8/php_8_released.png';
$meta_description = 'PHP 8.0 é uma atualização importante da linguagem PHP. Ela contém muitos novos recursos e otimizações, incluindo argumentos nomeados, união de tipos, atributos, promoção de propriedade do construtor, expressão match, operador nullsafe, JIT e melhorias no sistema de tipos, tratamento de erros e consistência.';
site_header("PHP 8.0.0 Release Announcement", array(
"current" => "php8",
'css' => array('php8.css'),
'meta_tags' => array(
'og:image' => $MYSITE . 'images/php8/php_8_released.png'
)
'meta_tags' => <<<META
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@official_php" />
<meta name="twitter:title" content="PHP 8.0 Released" />
<meta name="twitter:description" content="{$meta_description}" />
<meta name="twitter:creator" content="@official_php" />
<meta name="twitter:image:src" content="{$meta_image_path}" />

<meta itemprop="name" content="PHP 8.0 Released" />
<meta itemprop="description" content="{$meta_description}" />
<meta itemprop="image" content="{$meta_image_path}" />

<meta property="og:image" content="{$meta_image_path}" />
<meta property="og:description" content="{$meta_description}" />
META
));
?>
<section class="php8-section php8-section_dark php8-section_header center">
Expand All @@ -28,7 +42,7 @@
<div class="php8-logo">
<img src="/images/php8/logo_php8.svg" alt="php8" height="126" width="343">
</div>
<div class="php8-title">released!</div>
<div class="php8-title">Released!</div>
<div class="php8-subtitle">
PHP 8.0 é uma atualização importante da linguagem PHP. <br class="display-none-md"> Ela contém muitos novos
recursos e otimizações, incluindo argumentos nomeados, união de tipos, atributos, promoção de propriedade do
Expand Down
28 changes: 21 additions & 7 deletions releases/8.0/ru.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,26 @@
mirror_redirect('/releases/8.0/' . urlencode($LANG) . '.php?lang=' . urlencode($LANG));
}

site_header("PHP 8.0.0, релиз", array(
"current" => "php8",
'css' => array('php8.css'),
'meta_tags' => array(
'og:image' => $MYSITE . 'images/php8/php_8_released.png'
)
$meta_image_path = $MYSITE . 'images/php8/php_8_released.png';
$meta_description = 'PHP 8.0 — большое обновление языка PHP. Оно содержит множество новых возможностей и оптимизаций, включая именованные аргументы, union type, атрибуты, упрощённое определение свойств в конструкторе, выражение match, оператор nullsafe, JIT и улучшения в системе типов, обработке ошибок и консистентности.';
site_header("PHP 8.0.0 Release Announcement", array(
"current" => "php8",
'css' => array('php8.css'),
'meta_tags' => <<<META
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@official_php" />
<meta name="twitter:title" content="PHP 8.0 релиз" />
<meta name="twitter:description" content="{$meta_description}" />
<meta name="twitter:creator" content="@official_php" />
<meta name="twitter:image:src" content="{$meta_image_path}" />

<meta itemprop="name" content="PHP 8.0 релиз" />
<meta itemprop="description" content="{$meta_description}" />
<meta itemprop="image" content="{$meta_image_path}" />

<meta property="og:image" content="{$meta_image_path}" />
<meta property="og:description" content="{$meta_description}" />
META
));
?>
<section class="php8-section php8-section_dark php8-section_header center">
Expand All @@ -30,7 +44,7 @@
</div>
<div class="php8-title">релизнут!</div>
<div class="php8-subtitle">
PHP 8.0 — большое обновление PHP.<br class="display-none-md"> Оно содержит множество новых возможностей и
PHP 8.0 — большое обновление языка PHP.<br class="display-none-md"> Оно содержит множество новых возможностей и
оптимизаций, включая именованные аргументы, union type, атрибуты, упрощённое определение свойств в конструкторе, выражение match,
оператор nullsafe, JIT и улучшения в системе типов, обработке ошибок и консистентности.
</div>
Expand Down