mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-05 18:03:13 +00:00
Link previews with generated header
This commit is contained in:
parent
3110858151
commit
410a8f8943
5 changed files with 39 additions and 14 deletions
|
@ -1,10 +1,32 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<?php
|
||||
// Get image info for image meta
|
||||
if ( basename($_SERVER['PHP_SELF']) == "image.php") {
|
||||
$image = $image_info->get_image_info($conn, $_GET['id']);
|
||||
}
|
||||
?>
|
||||
<!-- Auto generated header tags -->
|
||||
<title><?php echo $user_settings['website_name']; ?></title>
|
||||
<meta name="description" content="<?php echo $user_settings['website_description']; ?>"/>
|
||||
<meta name="keywords" content="Image, Gallery"/>
|
||||
<meta name="author" content="<?php echo $user_settings['user_name']; ?>"/>
|
||||
<!-- OG -->
|
||||
<meta property="og:title" content="<?php echo $user_settings['website_name']; ?>"/>
|
||||
<meta property="og:description" content="<?php echo $user_settings['website_description']; ?>"/>
|
||||
<meta property="og:image" content="<?php echo "images/".$image['imagename']; ?>"/>
|
||||
<meta property="og:type" content="website"/>
|
||||
<meta name="theme-color" content="#8C977D">
|
||||
<!-- Twitter -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:description" content="<?php echo $user_settings['website_description']; ?>">/
|
||||
<meta name="twitter:title" content="<?php echo $user_settings['website_name']; ?>"/>
|
||||
|
||||
|
||||
<!-- Stylesheets -->
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
|
||||
|
||||
<!-- Google Fonts -->
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@600">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Secular+One&display=swap">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue