flash.moe/tpl/master.php

56 lines
3 KiB
PHP
Raw Normal View History

<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title><?=($self->header_title ?? 'flash.moe');?></title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
<link href="/css/2021.css" type="text/css" rel="stylesheet"/>
<link href="/assets/sprite.css" type="text/css" rel="stylesheet"/>
<link href="/assets/fonts/electrolize/style.css" type="text/css" rel="stylesheet"/>
</head>
<body class="<?php if(isset($self->header_is_index)) { echo 'index ';} if(isset($self->header_full)) { echo 'fullscreen-header ';} if(isset($self->header_now_playing)) { echo 'now-playing ';} ?>">
<div class="header">
<div class="header-background">
<img src="<?=($self->header_bgs[array_rand($self->header_bgs)]);?>" alt=""/>
</div>
<div class="header-foreground"<?php if(isset($self->header_offset) && $self->header_offset > 0) echo " style=\"padding-bottom: {$self->header_offset}px\""; ?>>
<a class="header-logo" href="/">
<div class="header-flash">flash</div>
<div class="header-wave">wave</div>
</a>
<div class="header-right">
<div class="header-now-playing header-now-playing-hidden">
<div class="header-now-playing-icon" title="Now listening to...">
<a href="/now-listening"><div class="fmi fmi-music"></div></a>
</div>
<div class="header-now-playing-cover">
<img src="//now.flash.moe/resources/no-cover.png" alt=""/>
</div>
<div class="header-now-playing-details">
<div class="header-now-playing-title"><a href="#" target="_blank" rel="noopener"></a></div>
<div class="header-now-playing-artist"><a href="#" target="_blank" rel="noopener"></a></div>
</div>
</div>
<div class="header-menu">
<?php foreach($self->header_nav as $link): ?>
<a href="<?=$link['link'];?>"<?php if($link['link'][0] === '/' && substr($link['link'], 0, 2) !== '//') { echo ''; } ?>><?=$link['title'];?></a>
<?php endforeach; ?>
</div>
</div>
</div>
</div>
<div class="container">
<?=$self->getBlock('container');?>
</div>
<div class="footer">
<div class="footer-text">&copy; flashwave 2010-<?=date('Y');?> - <?=($self->footer_quotes[array_rand($self->footer_quotes)]);?></div>
</div>
<?php if(isset($self->footer_onload) && is_array($self->footer_onload)): ?>
<script type="text/javascript">
window.fm = { onload: <?=json_encode($self->footer_onload);?> };
</script>
<?php endif; ?>
<script src="/assets/2021.js" charset="utf-8" type="text/javascript"></script>
</body>
</html>