flash.moe/public/topmostfriend/_inc/out.php
2021-04-06 19:06:39 +00:00

72 lines
2.5 KiB
PHP

<?php
if(empty($_curr_page))
$_curr_page = '';
if(empty($_head_nav))
$_head_nav = [
'home' => [
'href' => './',
'text' => 'Home',
],
'downloads' => [
'href' => './downloads.php',
'text' => 'Downloads',
],
'changelog' => [
'href' => './changelog.php',
'text' => 'Changelog',
],
'repository' => [
'href' => 'https://github.com/flashwave/topmostfriend',
'text' => 'Repository',
],
'donate' => [
'href' => '//flash.moe/donate',
'text' => 'Donate',
],
];
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title><?=(empty($title) ? '' : ($title . ' :: '));?>Top Most Friend</title>
<link href="style.css" rel="stylesheet" type="text/css"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
<?php if(!empty($description)): ?>
<meta name="description" content="<?=$description;?>"/>
<?php endif; ?>
</head>
<body>
<div id="_tmf" class="tmf tmf--<?=$_curr_page;?>">
<div class="tmf-head">
<div class="tmf-head-nav">
<?php foreach($_head_nav as $id => $info): ?>
<li<?php if($id === $_curr_page) { echo ' class="current"'; } ?>><a href="<?=$info['href'];?>" id="_nav_<?=$id;?>"><?=$info['text'];?></a></li>
<?php endforeach; ?>
</div>
<div class="tmf-head-logo">
<h1>Top Most Friend</h1>
</div>
</div>
<div class="tmf-body"><?=(!empty($body) ? $body : (function_exists('get_tmf_body') ? get_tmf_body() : ''));?></div>
<div class="tmf-foot">
&copy; <a href="//flash.moe">flashwave</a> 2020-<?=date("Y\r\n");?>
</div>
</div>
<script type="text/javascript">
var _paq = window._paq || [];
_paq.push(['disableCookies']);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
_paq.push(['setTrackerUrl', '//uiharu.railgun.sh/mtm']);
_paq.push(['setSiteId', 'w4PqjBGmOL5l']);
var g = document.createElement('script');
g.type = 'text/javascript'; g.async = true;
g.defer = true; g.src = '//uiharu.railgun.sh/mtm.js';
document.head.appendChild(g);
})();
</script>
</body>
</html>