View file system/meta.php

File size: 2.3Kb
<?php

$action = isset($_GET['act']) ? guard($_GET['act']): null;

if ($action == 'files') {
    $social_cover = 'https://'.$_SERVER['HTTP_HOST'].'/cover'.$_SERVER['REQUEST_URI'];
} else {
    $social_cover = 'https://'.$_SERVER['HTTP_HOST'].'/assets/img/app-icon-cover.png';
}

echo '
		<meta charset="utf-8">
		<title>'.$title_main.'</title>

		<meta name="description" content="'.$lang['description'].'">
		<meta name="keywords" content="'.$lang['keywords'].'">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="mobile-web-app-capable" content="yes">
		<meta name="application-name" content="GOload">
		<meta name="theme-color" content="#5d80a6">
		<meta name="apple-mobile-web-app-status-bar-style" content="#5d80a6">
		<meta name="msapplication-tilecolor" content="#5d80a6">
		<meta name="msapplication-tileimage" content="https://'.$_SERVER['HTTP_HOST'].'/assets/img/tablo_logo.png">

		<link rel="manifest" href="/manifest.json">
		<link rel="canonical" href="https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].'">
		<link rel="dns-prefetch" href="//fonts.gstatic.com">
		<link rel="dns-prefetch" href="//fonts.googleapis.com">
		<link rel="shortcut icon" href="/assets/img/favicon.png">
		<link rel="apple-touch-icon" href="/assets/img/app-icon.png">
		<link rel="yandex-tableau-widget" href="/assets/other/tableau.json">
		<link rel="icon" sizes="256x256" href="/assets/img/icons/icon_256.png">
		<link rel="alternate" type="application/rss+xml" href="/assets/other/rss.php">

		<meta property="og:description" content="'.$lang['description'].'">
		<meta property="og:image" content="'.$social_cover.'">
		<meta property="og:url" content="https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].'">
		<meta property="og:title" content="'.$title_main.'">
		<meta property="og:type" content="website">
		<meta property="twitter:card" content="summary_large_image">
		<meta property="twitter:title" content="'.$title_main.'">

		<script type="application/ld+json">
			{
				"@context": "http://schema.org",
				"@type": "Organization",
				"url": "https://'.$_SERVER['HTTP_HOST'].''.$_SERVER['REQUEST_URI'].'",
				"name": "GOload '.$lang['title'].'",
				"image": "'.$social_cover.'",
				"logo": "https://'.$_SERVER['HTTP_HOST'].'/assets/img/app-icon.png",
				"sameAs": [
					""
				]
			}
		</script>
';

?>