Commit: 47cb54973ea25662aafc8149392c6d98e0b5c022 Author: Roman Pronskiy <ro...@pronskiy.com> Tue, 17 Nov 2020 18:42:30 +0200 Committer: Sara Golemon <poll...@php.net> Wed, 25 Nov 2020 20:28:13 +0000 Parents: b6058bf9cb4dc499005e7a5c857977e689b0ade1 Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=47cb54973ea25662aafc8149392c6d98e0b5c022 Log: Add og:image to the head Changed paths: A images/php8/php_8_released.png M include/header.inc M releases/8_0_x.php Diff: diff --git a/images/php8/php_8_released.png b/images/php8/php_8_released.png new file mode 100644 index 000000000..9d9e77f02 Binary files /dev/null and b/images/php8/php_8_released.png differ diff --git a/include/header.inc b/include/header.inc index d16a7fb26..fad1ea624 100644 --- a/include/header.inc +++ b/include/header.inc @@ -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; ?>"> diff --git a/releases/8_0_x.php b/releases/8_0_x.php index b19bd0d04..a5209b047 100644 --- a/releases/8_0_x.php +++ b/releases/8_0_x.php @@ -2,7 +2,13 @@ $_SERVER['BASE_PAGE'] = 'releases/8_0_x.php'; include_once __DIR__ . '/../include/prepend.inc'; -site_header("PHP 8.0.0 Release Announcement", array("current" => "php_8_0_x", 'css' => array('php8.css'))); +site_header("PHP 8.0.0 Release Announcement", array( + "current" => "php_8_0_x", + 'css' => array('php8.css'), + 'meta_tags' => array( + 'og:image' => $MYSITE . 'images/php8/php_8_released.png' + ) +)); ?> <section class="php8-section php8-section_dark php8-section_header center"> <div class="php8-section__content"> -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php