2015-07-07 13:59:21 +08:00
|
|
|
<!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
|
2015-07-07 17:53:13 +08:00
|
|
|
|
|
|
|
{!! $head !!}
|
2015-07-07 13:59:21 +08:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2015-07-27 13:15:35 +08:00
|
|
|
{!! $layout !!}
|
2015-07-07 13:59:21 +08:00
|
|
|
|
|
|
|
<div id="modal"></div>
|
|
|
|
<div id="alerts"></div>
|
|
|
|
|
|
|
|
@foreach ($scripts as $file)
|
|
|
|
<script src="{{ str_replace(public_path(), '', $file) }}"></script>
|
|
|
|
@endforeach
|
2015-07-15 12:30:11 +08:00
|
|
|
|
2015-07-07 13:59:21 +08:00
|
|
|
<script>
|
2015-07-27 12:46:39 +08:00
|
|
|
try {
|
|
|
|
var app = System.get('flarum/app').default;
|
|
|
|
app.preload = {
|
|
|
|
data: {!! json_encode($data) !!},
|
|
|
|
document: {!! json_encode($document) !!},
|
|
|
|
session: {!! json_encode($session) !!}
|
|
|
|
};
|
|
|
|
|
|
|
|
@foreach ($bootstrappers as $bootstrapper)
|
|
|
|
System.import('{{ $bootstrapper }}');
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
app.boot();
|
|
|
|
} catch (e) {
|
|
|
|
document.write('<div class="container">Something went wrong.</div>');
|
|
|
|
throw e;
|
|
|
|
}
|
2015-07-07 13:59:21 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
@if ($content)
|
|
|
|
<noscript>
|
|
|
|
{!! $content !!}
|
|
|
|
</noscript>
|
|
|
|
@endif
|
2015-07-07 17:53:13 +08:00
|
|
|
|
|
|
|
{!! $foot !!}
|
2015-07-07 13:59:21 +08:00
|
|
|
</body>
|
|
|
|
</html>
|