1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Add og:image to the head

This commit is contained in:
Roman Pronskiy
2020-11-17 18:42:30 +02:00
committed by Sara Golemon
parent b6058bf9cb
commit 47cb54973e
3 changed files with 11 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

View File

@@ -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; ?>">

View File

@@ -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">