1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 07:24:27 +02:00

Allow customisation of the client layout

This commit is contained in:
Toby Zerner
2015-07-27 14:45:35 +09:30
parent e257454343
commit 3489791932
3 changed files with 18 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ class ClientAction extends BaseClientAction
/**
* {@inheritdoc}
*/
protected $layout = 'flarum.forum::forum';
protected $layout = __DIR__.'/../../../views/forum.blade.php';
/**
* {@inheritdoc}
@@ -132,10 +132,14 @@ class ClientAction extends BaseClientAction
'core.write_a_reply'
];
/**
* @inheritdoc
*/
protected function getAssets()
{
$assets = parent::getAssets();
// Add the formatter JavaScript payload.
$assets->addJs(function () {
return app('flarum.formatter')->getJS();
});