mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
31effe943e
As requested in the forums. http://updates.html5rocks.com/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
39 lines
1.1 KiB
PHP
39 lines
1.1 KiB
PHP
<!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">
|
|
|
|
<!-- Theme color for Android phones -->
|
|
<meta name="theme-color" content="{{ $config['theme_primary_color'] }}">
|
|
|
|
@foreach ($styles as $file)
|
|
<link rel="stylesheet" href="{{ str_replace(public_path(), '', $file) }}">
|
|
@endforeach
|
|
</head>
|
|
|
|
<body>
|
|
@include($layout)
|
|
|
|
<div id="modal"></div>
|
|
<div id="alerts"></div>
|
|
|
|
@foreach ($scripts as $file)
|
|
<script src="{{ str_replace(public_path(), '', $file) }}"></script>
|
|
@endforeach
|
|
<script>
|
|
var app = require('flarum/app')['default'];
|
|
app.config = {!! json_encode($config) !!};
|
|
app.preload = {
|
|
data: {!! json_encode($data) !!},
|
|
response: {!! json_encode($response) !!},
|
|
session: {!! json_encode($session) !!}
|
|
};
|
|
app.boot();
|
|
</script>
|
|
</body>
|
|
</html>
|