mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 09:37:26 +00:00
109 lines
4.9 KiB
PHP
109 lines
4.9 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head prefix="og: http://ogp.me/ns#">
|
|
<meta name="google-site-verification" content="QEyIHPbSKR2Z9ZNkfVHGdGv5EE7tTM7FE0Wt8tmcH50"/>
|
|
<meta charset="utf-8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi"/>
|
|
|
|
<?php $title = Response::getMetaTitle() ?: Response::guessMetaTitle($content) ?>
|
|
<?php $images = Response::getMetaImages() ?>
|
|
<?php $title = $title ?
|
|
$title . (strpos($title, 'LBRY') === false ? ' - LBRY' : '') :
|
|
'LBRY' ?>
|
|
<title><?php echo $title ?></title>
|
|
|
|
<link rel="stylesheet" href="https://rsms.me/inter/inter.css"/>
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/tonsky/FiraCode@master/distr/fira_code.css"/>
|
|
<link rel="stylesheet" href="/components/dist/index.css"/>
|
|
|
|
<?php foreach (Response::getCssAssets() as $src): ?>
|
|
<link rel="stylesheet" href="<?php echo $src?>"/>
|
|
<?php endforeach ?>
|
|
|
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous"/>
|
|
|
|
<link rel="apple-touch-icon" sizes="60x60" href="/img/fav/apple-touch-icon-60x60.png"/>
|
|
<link rel="apple-touch-icon" sizes="114x114" href="/img/fav/apple-touch-icon-114x114.png"/>
|
|
<link rel="apple-touch-icon" sizes="120x120" href="/img/fav/apple-touch-icon-120x120.png"/>
|
|
<link rel="apple-touch-icon" sizes="144x144" href="/img/fav/apple-touch-icon-144x144.png"/>
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/img/fav/apple-touch-icon-180x180.png"/>
|
|
|
|
<link rel="icon" type="image/png" href="/img/fav/favicon-32x32.png" sizes="32x32"/>
|
|
<link rel="icon" type="image/png" href="/img/fav/favicon-194x194.png" sizes="194x194"/>
|
|
<link rel="icon" type="image/png" href="/img/fav/favicon-96x96.png" sizes="96x96"/>
|
|
<link rel="icon" type="image/png" href="/img/fav/android-chrome-192x192.png" sizes="192x192"/>
|
|
<link rel="icon" type="image/png" href="/img/fav/favicon-16x16.png" sizes="16x16"/>
|
|
|
|
<link rel="manifest" href="/img/fav/manifest.json"/>
|
|
|
|
<?php if (isset($showRssLink) && $showRssLink): ?>
|
|
<link rel="alternate" type="application/rss+xml" title="LBRY News" href="<?php echo ContentActions::URL_NEWS . '/' . ContentActions::SLUG_RSS ?>"/>
|
|
<?php endif ?>
|
|
|
|
<meta property="og:description" content="<?php echo Response::getMetaDescription() ?>"/>
|
|
<?php if ($images): ?>
|
|
<?php foreach ($images as $image): ?>
|
|
<meta property="og:image" content="<?php echo $image ?>"/>
|
|
<?php endforeach ?>
|
|
<?php $url = reset($images) ?>
|
|
<meta name="twitter:image" content="<?php echo $url ?>" />
|
|
<?php endif ?>
|
|
<meta property="og:site_name" content="LBRY"/>
|
|
<meta property="og:title" content="<?php echo $title ?>"/>
|
|
<meta property="og:type" content="article"/>
|
|
|
|
<meta name="description" content="<?php echo Response::getMetaDescription() ?>"/>
|
|
<meta name="msapplication-TileColor" content="#155B4A"/>
|
|
<meta name="msapplication-TileImage" content="/img/fav/mstile-144x144.png"/>
|
|
<meta name="theme-color" content="#155B4A"/>
|
|
|
|
<meta name="twitter:site" content="@lbrycom"/>
|
|
<meta name="twitter:creator" content="@lbrycom"/>
|
|
<meta name="twitter:description" content="<?php echo Response::getMetaDescription() ?>"/>
|
|
<meta name="twitter:title" content="<?php echo $title ?>" />
|
|
|
|
<?php if (in_array($_SERVER['REQUEST_URI'], ['/android', '/get'])): ?>
|
|
<meta name="twitter:card" content="app"/>
|
|
<meta name="twitter:app:country" content="US"/>
|
|
<meta name="twitter:app:name:googleplay" content="LBRY beta"/>
|
|
<meta name="twitter:app:id:googleplay" content="io.lbry.browser"/>
|
|
<meta name="twitter:app:url:googleplay" content="https://play.google.com/store/apps/details?id=io.lbry.browser"/>
|
|
<?php else: ?>
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<?php endif ?>
|
|
|
|
|
|
<meta property="fb:app_id" content="1673146449633983"/>
|
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
|
<base target="_parent"/>
|
|
|
|
<?php echo View::render('layout/_analytics_head') ?>
|
|
</head>
|
|
|
|
<body>
|
|
<?php echo View::render('nav/_header', ['isDark' => false, 'isBordered' => false]) ?>
|
|
<?php echo $content ?>
|
|
<?php echo View::render('nav/_footer') ?>
|
|
|
|
<div style="display: none;">
|
|
<div id="fb-root"></div>
|
|
|
|
<div id="js">
|
|
<script id="twitter-wjs" src="https://platform.twitter.com/widgets.js"></script>
|
|
|
|
<?php foreach (Response::getJsAssets() as $src): ?>
|
|
<script src="<?php echo $src ?>"></script>
|
|
<?php endforeach ?>
|
|
|
|
<?php echo View::render('layout/_analytics_footer') ?>
|
|
<?php $js = Response::getJsCalls() ?>
|
|
|
|
<?php if ($js): ?>
|
|
<script><?php echo implode("\n", $js) ?></script>
|
|
<?php endif ?>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|