2015-04-25 20:58:39 +08:00
|
|
|
<!doctype html>
|
2015-02-24 18:03:18 +08:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<title>{{ $title }}</title>
|
|
|
|
<meta name="description" content="">
|
2015-03-03 18:00:52 +08:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1">
|
2015-02-24 18:03:18 +08:00
|
|
|
<base href="/">
|
2015-03-29 19:43:26 +08:00
|
|
|
@foreach ($styles as $file)
|
2015-04-25 20:58:39 +08:00
|
|
|
<link rel="stylesheet" href="{{ str_replace(public_path(), '', $file) }}">
|
2015-03-29 19:43:26 +08:00
|
|
|
@endforeach
|
2015-02-24 18:03:18 +08:00
|
|
|
</head>
|
2015-04-25 20:58:39 +08:00
|
|
|
|
2015-02-24 18:03:18 +08:00
|
|
|
<body>
|
2015-04-25 20:58:39 +08:00
|
|
|
{!! $layout !!}
|
2015-03-23 09:36:55 +08:00
|
|
|
|
2015-04-25 20:58:39 +08:00
|
|
|
<div id="modal"></div>
|
|
|
|
<div id="alerts"></div>
|
2015-03-23 09:36:55 +08:00
|
|
|
|
2015-03-29 19:43:26 +08:00
|
|
|
@foreach ($scripts as $file)
|
2015-04-25 20:58:39 +08:00
|
|
|
<script src="{{ str_replace(public_path(), '', $file) }}"></script>
|
2015-03-29 19:43:26 +08:00
|
|
|
@endforeach
|
2015-04-25 20:58:39 +08:00
|
|
|
<script>
|
|
|
|
var app = require('flarum/app')['default'];
|
|
|
|
app.config = {!! json_encode($config) !!};
|
|
|
|
app.preload = {
|
|
|
|
data: {!! json_encode($data) !!},
|
|
|
|
session: {!! json_encode($session) !!}
|
|
|
|
};
|
|
|
|
app.boot();
|
|
|
|
</script>
|
2015-02-24 18:03:18 +08:00
|
|
|
</body>
|
|
|
|
</html>
|