This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/templates/misaki/global/master.twig

145 lines
9.7 KiB
Twig
Raw Normal View History

2015-07-04 19:53:15 +00:00
<!DOCTYPE html>
<html>
<head>
<!-- META -->
2016-03-31 20:03:25 +00:00
<meta charset="{{ config('charset') }}" />
<title>{% block title %}{{ config('sitename') }}{% endblock %}</title>
<meta name="description" content="{{ config('sitedesc') }}" />
<meta name="keywords" content="{{ config('sitetags')|json_decode|join(', ') }}" />
2015-07-04 19:53:15 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="msapplication-TileColor" content="#9475b2" />
2015-08-23 22:08:36 +00:00
<meta name="msapplication-TileImage" content="/content/images/icons/ms-icon-144x144.png" />
<meta name="theme-color" content="#9475B2" />
{% if page.redirect %}
<meta http-equiv="refresh" content="{{ page.redirectTimeout ? page.redirectTimeout : '3' }}; URL={{ page.redirect }}" />
{% endif %}
2015-08-23 22:08:36 +00:00
<link rel="apple-touch-icon" sizes="57x57" href="/content/images/icons/apple-icon-57x57.png" />
<link rel="apple-touch-icon" sizes="60x60" href="/content/images/icons/apple-icon-60x60.png" />
<link rel="apple-touch-icon" sizes="72x72" href="/content/images/icons/apple-icon-72x72.png" />
<link rel="apple-touch-icon" sizes="76x76" href="/content/images/icons/apple-icon-76x76.png" />
<link rel="apple-touch-icon" sizes="114x114" href="/content/images/icons/apple-icon-114x114.png" />
<link rel="apple-touch-icon" sizes="120x120" href="/content/images/icons/apple-icon-120x120.png" />
<link rel="apple-touch-icon" sizes="144x144" href="/content/images/icons/apple-icon-144x144.png" />
<link rel="apple-touch-icon" sizes="152x152" href="/content/images/icons/apple-icon-152x152.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/content/images/icons/apple-icon-180x180.png" />
<link rel="icon" type="image/png" sizes="192x192" href="/content/images/icons/android-icon-192x192.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/content/images/icons/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="96x96" href="/content/images/icons/favicon-96x96.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/content/images/icons/favicon-16x16.png" />
<link rel="manifest" href="/manifest.json" />
{{ block('meta') }}
2015-07-04 19:53:15 +00:00
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="{{ sakura.resources }}/css/misaki.css" />
{{ block('css') }}
2015-07-04 19:53:15 +00:00
<!-- JS -->
2016-03-31 20:03:25 +00:00
<script type="text/javascript" src="{{ config('content_path') }}/scripts/sakura.js"></script>
2015-07-04 19:53:15 +00:00
<script type="text/javascript" src="{{ sakura.resources }}/js/misaki.js"></script>
2015-08-23 22:08:36 +00:00
<script type="text/javascript">
// Create an object so we can access certain settings from remote JavaScript files
var sakuraVars = {
"cookie": {
"prefix": "{{ sakura.cookie.prefix }}",
2016-03-31 20:03:25 +00:00
"domain": "{{ config('cookie_domain') }}",
"path": "{{ config('cookie_prefix') }}"
2015-08-23 22:08:36 +00:00
},
2016-03-31 20:03:25 +00:00
"siteName": "{{ config('sitename') }}",
"content": "{{ config('content_path') }}",
2015-08-23 22:08:36 +00:00
"resources": "{{ sakura.resources }}",
2016-03-31 20:03:25 +00:00
"recaptchaEnabled": "{{ config('recaptcha') }}",
2015-08-23 22:08:36 +00:00
2016-03-31 20:03:25 +00:00
"minUserLen": {{ config('username_min_length') }},
"maxUserLen": {{ config('username_max_length') }},
"minPwdEntropy": {{ config('min_entropy') }},
2016-04-02 15:59:45 +00:00
"checkLogin": {% if user.isActive %}true{% else %}false{% endif %}
2015-08-23 22:08:36 +00:00
};
// Space for things that need to happen onload
window.addEventListener("load", function() {
2016-01-17 01:58:31 +00:00
{% if php.self == '/profile.php' ? (profile.userData.profileBackground and not profile.optionFields.disableProfileParallax) : (user.permission(constant('Sakura\\Perms\\Site::CHANGE_BACKGROUND')) and user.optionFields.profileBackgroundSiteWide and user.userData.profileBackground and not user.optionFields.disableProfileParallax) %}
2015-08-23 22:08:36 +00:00
initialiseParallax('userBackground');
{% endif %}
});
</script>
{{ block('js') }}
2015-07-04 19:53:15 +00:00
</head>
<body>
<div id="container">
<span id="top"></span>
<div class="header-fade"></div>
<div id="notifications"></div>
<div id="wrapper">
2016-01-17 01:58:31 +00:00
{% if php.self == '/profile.php' ? profile.userData.profileBackground : (user.permission(constant('Sakura\\Perms\\Site::CHANGE_BACKGROUND')) and user.optionFields.profileBackgroundSiteWide and user.userData.profileBackground) %}
<div id="userBackground" style="background-image: url('{{ urls.format('IMAGE_BACKGROUND', [(php.self == '/profile.php' ? profile : user).id]) }}');"></div>
2015-07-04 19:53:15 +00:00
{% endif %}
<div id="navigation">
<ul class="site-menu">
<li title="Home" class="logo"><a href="{{ urls.format('SITE_HOME') }}"></a></li>
<li title="News"><a href="{{ urls.format('SITE_NEWS') }}" class="fa fa-newspaper-o"></a></li>
2015-12-16 20:21:48 +00:00
<li title="Chat"><a href="{{ urls.format('INFO_PAGE', ['chat']) }}" class="fa fa-commenting"></a></li>
<li title="Forums"><a href="{{ urls.format('FORUM_INDEX') }}" class="fa fa-comments"></a></li>
<li title="Members"><a href="{{ urls.format('MEMBERLIST_INDEX') }}" class="fa fa-users"></a></li>
<li title="Search"><a href="{{ urls.format('SITE_SEARCH') }}" class="fa fa-search"></a></li>
<li title="Support us"><a href="{{ urls.format('SITE_PREMIUM') }}" class="fa fa-heart"></a></li>
</ul>
<ul class="user-menu">
<li class="nav-usermenu">
2016-04-02 15:59:45 +00:00
<a href="{% if user.isActive %}javascript:void(0);{% else %}{{ urls.format('SITE_LOGIN') }}{% endif %}">
<div>
2016-04-02 15:59:45 +00:00
<div class="nav-username"{% if user.isActive %} style="color: {{ user.colour }};"{% endif %}>
{% if user.isActive %}{{ user.username }} <span class="nav-user-dropdown"></span>{% else %}Guest{% endif %}
</div>
<div class="nav-userstats">
2016-04-02 15:59:45 +00:00
{% if user.isActive %}<span class="fa fa-envelope"></span> 0 / <span class="fa fa-user-plus"></span> 0 / <span class="fa fa-warning"></span> 0 / <span class="fa fa-reply"></span> 0{% else %}Please log in to proceed!{% endif %}
</div>
</div>
</a>
2016-04-02 15:59:45 +00:00
{% if user.isActive %}
<ul>
<li><a href="{{ urls.format('USER_PROFILE', [user.id]) }}">My Profile</a></li>
<li><a href="{{ urls.format('SETTING_CAT', ['messages']) }}">Private Messages</a></li>
<li><a href="{{ urls.format('SETTINGS_INDEX') }}">User Settings</a></li>
<li><a href="{{ urls.format('MANAGE_INDEX') }}">Site Management</a></li>
2016-04-25 02:01:14 +00:00
<li><a href="{{ urls.format('USER_LOGOUT', [date().timestamp, session_id(), server['REQUEST_URI']]) }}">Logout</a></li>
</ul>
{% endif %}
</li>
2016-04-02 15:59:45 +00:00
<li><a href="{% if user.isActive %}{{ urls.format('USER_PROFILE', [user.id]) }}{% else %}{{ urls.format('SITE_LOGIN') }}{% endif %}"><img src="{{ config('content_path') }}/pixel.png" alt="{{ user.username }}" style="background-image: url('{{ urls.format('IMAGE_AVATAR', [user.id]) }}');" class="nav-avatar" /></a></li>
</ul>
</div>
2016-03-31 20:03:25 +00:00
{% if config('sitelogo') or config('header_announcement_image') %}
<div id="banner" style="background: url('{% if config('header_announcement_image') %}{{ config('header_announcement_image') }}{% else %}{{ config('sitelogo') }}{% endif %}');">
<a href="{% if config('header_announcement_image') and config('header_announcement_link') %}{{ config('header_announcement_link') }}{% else %}{{ urls.format('SITE_HOME') }}{% endif %}"></a>
</div>
{% endif %}
2015-07-04 19:53:15 +00:00
<div id="content">
{% block content %}
<div class="platform">
<div style="text-align: center; font-family: 'Exo2-0-LightItalic', sans-serif; font-size: 3em; line-height: 1.5em; margin: 10px auto">This template doesn't exist (yet)!<br />Switch back to Yuuno via the User Settings to view this page!</div>
</div>
{% endblock %}
</div>
</div>
<div id="footer">
<div class="inner">
<div class="ft-logo"></div>
<div class="ft-text">
<div>Powered by <a href="https://github.com/flashwave/sakura/" target="_blank">Sakura</a>, <a href="https://flash.moe/" target="_blank">Flashwave</a> 2013-2016</div>
<div><a href="{{ urls.format('INFO_PAGE', ['terms']) }}">Terms of Service</a> | <a href="{{ urls.format('INFO_PAGE', ['contact']) }}">Contact</a> | <a href="{{ urls.format('SITE_FAQ') }}">FAQ</a> | <a href="{{ urls.format('INFO_PAGE', ['rules']) }}">Rules</a> | <a href="https://sakura.flash.moe/">Changelog</a> | <a href="https://fiistat.us/">Status</a></div>
</div>
</div>
</div>
</div>
</body>
</html>