flash.moe/templates/master.twig

57 lines
3 KiB
Twig
Raw Normal View History

<!doctype html>
<html>
<head>
<meta charset="utf-8">
2023-10-12 18:45:11 +00:00
<title>{% if title is defined %}{{ title }} // {% endif %}flash.moe</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link href="/assets/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>
2023-10-12 18:45:11 +00:00
<body class="{{ html_classes({ 'index': header_is_index is defined, 'fullscreen-header': header_full is defined, 'now-playing': header_now_playing is defined, 'header-minimal': header_minimal is defined }) }}">
<div class="header">
<div class="header-background">
2023-10-12 18:45:11 +00:00
<img src="{{ random(header_bgs) }}" alt="">
</div>
2023-10-12 18:45:11 +00:00
<div class="header-foreground" {% if header_offset is defined and header_offset > 0 %}style="padding-bottom: {{ header_offset }}px"{% endif %}>
<a class="header-logo" href="/">
2023-10-12 18:45:11 +00:00
<div class="header-flash">{{ header_logo_flash|default('flash') }}</div>
<div class="header-wave">{{ header_logo_wave|default('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">
2023-10-12 18:45:11 +00:00
{% for link in header_nav %}
<a href="{{ link.link }}">{{ link.title }}</a>
{% endfor %}
</div>
</div>
</div>
</div>
<div class="container">
2023-10-12 18:45:11 +00:00
{% block container %}
{% endblock %}
</div>
<div class="footer">
2023-10-12 18:45:11 +00:00
<div class="footer-text">&copy; flashwave {{ footer_copy_start|default('2010') }}-{{ footer_copy_end|default(('now'|date('Y'))) }} - {{ random(footer_quotes) }}</div>
</div>
2023-10-12 18:45:11 +00:00
{% if footer_onload is defined %}
<script type="text/javascript">
2023-10-12 18:45:11 +00:00
window.fm = { onload: {{ footer_onload|json_encode|raw }} };
</script>
2023-10-12 18:45:11 +00:00
{% endif %}
<script src="/assets/2021.js" charset="utf-8" type="text/javascript"></script>
</body>
</html>