framework/views/frontend/app.blade.php

42 lines
1.1 KiB
PHP
Raw Normal View History

<!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 {
app.boot(@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>