FEATURE: add handler for displaying static pages
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
namespace Modules\StaticPages\Handlers;
|
||||
|
||||
use App\Handlers\Handler;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Content;
|
||||
use App\Models\User;
|
||||
|
||||
@@ -29,6 +30,6 @@ class StaticPage extends Handler
|
||||
*/
|
||||
public function render(Content $content, $parameters)
|
||||
{
|
||||
// TODO: Implement render() method.
|
||||
return Controller::VisitorsView('staticpages::content', ['page' => $content]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
@extends('visitor.layout')
|
||||
|
||||
@section('pageName', @trans('admin/userManagement.detail', ['name' => $user->name, 'email' => $user->email]))
|
||||
|
||||
@section('content')
|
||||
{!! $page->content !!}
|
||||
@endsection
|
||||
Reference in New Issue
Block a user