diff --git a/framework/core/src/Forum/Controller/DiscussionController.php b/framework/core/src/Forum/Controller/DiscussionController.php index ebc7ab0de..c7bb5dcd9 100644 --- a/framework/core/src/Forum/Controller/DiscussionController.php +++ b/framework/core/src/Forum/Controller/DiscussionController.php @@ -87,7 +87,7 @@ class DiscussionController extends WebAppController $view->title = $document->data->attributes->title; $view->document = $document; - $view->content = app('view')->make('flarum.forum::discussion', compact('document', 'page', 'getResource', 'posts', 'url')); + $view->content = app('view')->make('flarum::frontend.content.discussion', compact('document', 'page', 'getResource', 'posts', 'url')); return $view; } diff --git a/framework/core/src/Forum/Controller/IndexController.php b/framework/core/src/Forum/Controller/IndexController.php index a4c059f34..0a52ed7cd 100644 --- a/framework/core/src/Forum/Controller/IndexController.php +++ b/framework/core/src/Forum/Controller/IndexController.php @@ -68,7 +68,7 @@ class IndexController extends WebAppController $document = $this->getDocument($request->getAttribute('actor'), $params); $view->document = $document; - $view->content = app('view')->make('flarum.forum::index', compact('document', 'page', 'forum')); + $view->content = app('view')->make('flarum::frontend.content.index', compact('document', 'page', 'forum')); return $view; } diff --git a/framework/core/src/Http/WebApp/AbstractWebApp.php b/framework/core/src/Http/WebApp/AbstractWebApp.php index e20ec3cac..68f9b80f5 100644 --- a/framework/core/src/Http/WebApp/AbstractWebApp.php +++ b/framework/core/src/Http/WebApp/AbstractWebApp.php @@ -86,7 +86,7 @@ abstract class AbstractWebApp */ protected function getLayout() { - return __DIR__.'/../../../views/'.$this->getName().'.blade.php'; + return 'flarum::frontend.'.$this->getName(); } /** diff --git a/framework/core/src/Http/WebApp/WebAppView.php b/framework/core/src/Http/WebApp/WebAppView.php index d38e95839..78af25540 100644 --- a/framework/core/src/Http/WebApp/WebAppView.php +++ b/framework/core/src/Http/WebApp/WebAppView.php @@ -287,7 +287,7 @@ class WebAppView $this->view->share('forum', array_get($forum, 'data')); $this->view->share('debug', $this->app->inDebugMode()); - $view = $this->view->file(__DIR__.'/../../../views/app.blade.php'); + $view = $this->view->make('flarum::frontend.app'); $view->title = $this->buildTitle(array_get($forum, 'data.attributes.title')); $view->description = $this->description ?: array_get($forum, 'data.attributes.description'); @@ -336,7 +336,7 @@ class WebAppView protected function buildLayout() { - $view = $this->view->file($this->layout); + $view = $this->view->make($this->layout); $view->content = $this->buildContent(); @@ -345,7 +345,7 @@ class WebAppView protected function buildContent() { - $view = $this->view->file(__DIR__.'/../../../views/content.blade.php'); + $view = $this->view->make('flarum::frontend.content'); $view->content = $this->content; diff --git a/framework/core/views/admin.blade.php b/framework/core/views/frontend/admin.blade.php similarity index 100% rename from framework/core/views/admin.blade.php rename to framework/core/views/frontend/admin.blade.php diff --git a/framework/core/views/app.blade.php b/framework/core/views/frontend/app.blade.php similarity index 100% rename from framework/core/views/app.blade.php rename to framework/core/views/frontend/app.blade.php diff --git a/framework/core/views/content.blade.php b/framework/core/views/frontend/content.blade.php similarity index 100% rename from framework/core/views/content.blade.php rename to framework/core/views/frontend/content.blade.php diff --git a/framework/core/views/discussion.blade.php b/framework/core/views/frontend/content/discussion.blade.php similarity index 100% rename from framework/core/views/discussion.blade.php rename to framework/core/views/frontend/content/discussion.blade.php diff --git a/framework/core/views/index.blade.php b/framework/core/views/frontend/content/index.blade.php similarity index 100% rename from framework/core/views/index.blade.php rename to framework/core/views/frontend/content/index.blade.php diff --git a/framework/core/views/forum.blade.php b/framework/core/views/frontend/forum.blade.php similarity index 100% rename from framework/core/views/forum.blade.php rename to framework/core/views/frontend/forum.blade.php