mirror of
https://github.com/flarum/framework.git
synced 2024-12-01 14:20:47 +08:00
a9ded36b57
- Get rid of Bootstrap (except we still rely on some JS) - Use BEM class names - Rework variables/theme config - Fix various bugs, including some on mobile The CSS is still not ideal – it needs to be cleaned up some more. But that can be a focus for after beta.
55 lines
1.4 KiB
PHP
55 lines
1.4 KiB
PHP
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<title>{{ $title }}</title>
|
|
<meta name="description" content="">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1">
|
|
<meta name="theme-color" content="{{ $forum->attributes->themePrimaryColor }}">
|
|
|
|
@foreach ($styles as $file)
|
|
<link rel="stylesheet" href="{{ str_replace(public_path(), '', $file) }}">
|
|
@endforeach
|
|
|
|
{!! $head !!}
|
|
</head>
|
|
|
|
<body>
|
|
@include($layout)
|
|
|
|
<div id="modal"></div>
|
|
<div id="alerts"></div>
|
|
|
|
@foreach ($scripts as $file)
|
|
<script src="{{ str_replace(public_path(), '', $file) }}"></script>
|
|
@endforeach
|
|
|
|
<script>
|
|
var app;
|
|
System.import('flarum/app').then(function(module) {
|
|
try {
|
|
app = module.default;
|
|
app.preload = {
|
|
data: {!! json_encode($data) !!},
|
|
document: {!! json_encode($document) !!},
|
|
session: {!! json_encode($session) !!}
|
|
};
|
|
initLocale(app);
|
|
app.boot();
|
|
} catch (e) {
|
|
document.write('<div class="container">Something went wrong.</div>');
|
|
}
|
|
});
|
|
</script>
|
|
|
|
@if ($content)
|
|
<noscript>
|
|
{!! $content !!}
|
|
</noscript>
|
|
@endif
|
|
|
|
{!! $foot !!}
|
|
</body>
|
|
</html>
|