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>
|
2015-09-17 03:43:53 +08:00
|
|
|
<meta name="description" content="{{ $forum->attributes->description }}">
|
2015-07-07 13:59:21 +08:00
|
|
|
<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)
|
2015-08-13 09:14:16 +08:00
|
|
|
<link rel="stylesheet" href="{{ $forum->attributes->baseUrl . str_replace(public_path(), '', $file) }}">
|
2015-07-07 13:59:21 +08:00
|
|
|
@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>
|
|
|
|
|
2015-08-06 10:51:11 +08:00
|
|
|
@if (! $noJs)
|
|
|
|
@foreach ($scripts as $file)
|
2015-08-13 09:14:16 +08:00
|
|
|
<script src="{{ $forum->attributes->baseUrl . str_replace(public_path(), '', $file) }}"></script>
|
2015-08-06 10:51:11 +08:00
|
|
|
@endforeach
|
2015-07-15 12:30:11 +08:00
|
|
|
|
2015-08-06 10:51:11 +08:00
|
|
|
<script>
|
2015-09-23 09:21:49 +08:00
|
|
|
@if (! $forum->attributes->debug)
|
2015-08-06 10:51:11 +08:00
|
|
|
try {
|
2015-09-23 09:21:49 +08:00
|
|
|
@endif
|
2015-08-06 10:51:11 +08:00
|
|
|
var app = System.get('flarum/app').default;
|
2015-07-31 18:38:27 +08:00
|
|
|
|
2015-08-06 10:51:11 +08:00
|
|
|
babelHelpers._extends(app, {!! json_encode($app) !!});
|
2015-07-27 12:46:39 +08:00
|
|
|
|
2015-08-06 10:51:11 +08:00
|
|
|
@foreach ($bootstrappers as $bootstrapper)
|
|
|
|
System.get('{{ $bootstrapper }}');
|
|
|
|
@endforeach
|
2015-07-27 12:46:39 +08:00
|
|
|
|
2015-08-06 10:51:11 +08:00
|
|
|
app.boot();
|
2015-09-23 09:21:49 +08:00
|
|
|
@if (! $forum->attributes->debug)
|
2015-08-06 10:51:11 +08:00
|
|
|
} catch (e) {
|
2015-09-24 00:30:28 +08:00
|
|
|
var nojs = window.location.search ? '&nojs=1' : '?nojs=1';
|
2015-09-23 23:55:16 +08:00
|
|
|
window.location = window.location + nojs;
|
2015-08-06 10:51:11 +08:00
|
|
|
}
|
2015-09-23 09:21:49 +08:00
|
|
|
@endif
|
2015-08-06 10:51:11 +08:00
|
|
|
</script>
|
2015-07-07 13:59:21 +08:00
|
|
|
@endif
|
2015-07-07 17:53:13 +08:00
|
|
|
|
|
|
|
{!! $foot !!}
|
2015-07-07 13:59:21 +08:00
|
|
|
</body>
|
|
|
|
</html>
|