mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 17:57:04 +08:00
42 lines
1.1 KiB
PHP
42 lines
1.1 KiB
PHP
<!doctype html>
|
|
<html @if ($direction) dir="{{ $direction }}" @endif
|
|
@if ($language) lang="{{ $language }}" @endif>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>{{ $title }}</title>
|
|
|
|
{!! $head !!}
|
|
</head>
|
|
|
|
<body>
|
|
{!! $layout !!}
|
|
|
|
<div id="modal"></div>
|
|
<div id="alerts"></div>
|
|
|
|
<script>
|
|
document.getElementById('flarum-loading').style.display = 'block';
|
|
var flarum = {extensions: {}};
|
|
</script>
|
|
|
|
{!! $js !!}
|
|
|
|
<script>
|
|
document.getElementById('flarum-loading').style.display = 'none';
|
|
|
|
try {
|
|
flarum.core.app.load(@json($payload));
|
|
flarum.core.app.bootExtensions(flarum.extensions);
|
|
flarum.core.app.boot();
|
|
} catch (e) {
|
|
var error = document.getElementById('flarum-loading-error');
|
|
error.innerHTML += document.getElementById('flarum-content').textContent;
|
|
error.style.display = 'block';
|
|
throw e;
|
|
}
|
|
</script>
|
|
|
|
{!! $foot !!}
|
|
</body>
|
|
</html>
|