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:
committed by
Sara Golemon
parent
b6058bf9cb
commit
47cb54973e
BIN
images/php8/php_8_released.png
Normal file
BIN
images/php8/php_8_released.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.9 KiB |
@@ -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; ?>">
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user