2015-07-07 17:53:13 +08:00
|
|
|
<?php
|
|
|
|
/**
|
2016-06-04 16:35:46 +08:00
|
|
|
* Forum Web App Template
|
2015-07-07 17:53:13 +08:00
|
|
|
*
|
|
|
|
* NOTE: You shouldn't edit this file directly. Your changes will be overwritten
|
|
|
|
* when you update Flarum. See flarum.org/docs/templates to learn how to
|
|
|
|
* customize your forum's layout.
|
|
|
|
*
|
2016-06-04 16:35:46 +08:00
|
|
|
* Flarum's JavaScript app mounts various components into key elements in
|
2015-07-07 17:53:13 +08:00
|
|
|
* this template. They are distinguished by their ID attributes:
|
|
|
|
*
|
2015-07-17 13:17:49 +08:00
|
|
|
* - #app
|
|
|
|
* - #app-navigation
|
|
|
|
* - #drawer
|
2015-07-07 17:53:13 +08:00
|
|
|
* - #header
|
2015-07-15 12:30:11 +08:00
|
|
|
* - #header-navigation
|
2015-07-07 17:53:13 +08:00
|
|
|
* - #home-link
|
2015-07-15 12:30:11 +08:00
|
|
|
* - #header-primary
|
|
|
|
* - #header-secondary
|
2015-07-07 17:53:13 +08:00
|
|
|
* - #content
|
|
|
|
* - #composer
|
|
|
|
*/
|
|
|
|
?>
|
2016-06-05 08:23:08 +08:00
|
|
|
{!! array_get($forum, 'attributes.headerHtml') !!}
|
|
|
|
|
2015-07-17 13:17:49 +08:00
|
|
|
<div id="app" class="App">
|
2015-07-07 17:53:13 +08:00
|
|
|
|
2015-07-17 13:17:49 +08:00
|
|
|
<div id="app-navigation" class="App-navigation"></div>
|
2015-07-07 17:53:13 +08:00
|
|
|
|
2015-07-17 13:17:49 +08:00
|
|
|
<div id="drawer" class="App-drawer">
|
2015-07-07 17:53:13 +08:00
|
|
|
|
2015-07-17 13:17:49 +08:00
|
|
|
<header id="header" class="App-header">
|
|
|
|
<div id="header-navigation" class="Header-navigation"></div>
|
2015-04-25 20:58:39 +08:00
|
|
|
<div class="container">
|
2015-07-17 13:17:49 +08:00
|
|
|
<h1 class="Header-title">
|
2016-05-26 17:34:24 +08:00
|
|
|
<a href="{{ array_get($forum, 'attributes.baseUrl') }}" id="home-link">
|
2016-06-04 16:35:46 +08:00
|
|
|
<?php $title = array_get($forum, 'attributes.title'); ?>
|
|
|
|
@if ($logo = array_get($forum, 'attributes.logoUrl'))
|
|
|
|
<img src="{{ $logo }}" alt="{{ $title }}" class="Header-logo">
|
|
|
|
@else
|
|
|
|
{{ $title }}
|
|
|
|
@endif
|
2015-07-07 17:53:13 +08:00
|
|
|
</a>
|
|
|
|
</h1>
|
2015-07-17 13:17:49 +08:00
|
|
|
<div id="header-primary" class="Header-primary"></div>
|
|
|
|
<div id="header-secondary" class="Header-secondary"></div>
|
2015-04-25 20:58:39 +08:00
|
|
|
</div>
|
|
|
|
</header>
|
2015-07-07 17:53:13 +08:00
|
|
|
|
2015-04-25 20:58:39 +08:00
|
|
|
</div>
|
2015-07-07 17:53:13 +08:00
|
|
|
|
2015-07-17 13:17:49 +08:00
|
|
|
<main class="App-content">
|
2015-04-25 20:58:39 +08:00
|
|
|
<div id="content"></div>
|
2015-07-15 12:30:11 +08:00
|
|
|
|
2015-08-06 10:51:11 +08:00
|
|
|
{!! $content !!}
|
|
|
|
|
2015-07-17 13:17:49 +08:00
|
|
|
<div class="App-composer">
|
2015-04-25 20:58:39 +08:00
|
|
|
<div class="container">
|
|
|
|
<div id="composer"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</main>
|
2015-07-07 17:53:13 +08:00
|
|
|
|
2015-04-25 20:58:39 +08:00
|
|
|
</div>
|