MESSAGE TEXT
+diff --git a/brain/controller/DashControl.php b/brain/controller/DashControl.php index c75a724..6f2d3a6 100644 --- a/brain/controller/DashControl.php +++ b/brain/controller/DashControl.php @@ -158,9 +158,9 @@ class DashControl $page = $book->findPageById($uuid); $pageOptions = Sorting::page($page); $preview = - $settings['global']['theme']. - '/'. - $page['layout']. + $settings['global']['theme'] . + '/' . + $page['layout'] . '.twig'; $html = $display->render($preview, $pageOptions); $response->getBody()->write($html); diff --git a/brain/init/App.php b/brain/init/App.php index f3fbc03..6674ddd 100644 --- a/brain/init/App.php +++ b/brain/init/App.php @@ -5,7 +5,6 @@ namespace brain\init; use brain\utility\HandleCors; use Slim\Factory\AppFactory; use Slim\Views\Twig; -// Fipamo Core Classes use Slim\Views\TwigMiddleware; class App diff --git a/brain/utility/Sorting.php b/brain/utility/Sorting.php index 23d96c4..3c69224 100644 --- a/brain/utility/Sorting.php +++ b/brain/utility/Sorting.php @@ -129,22 +129,22 @@ class Sorting } $meta = [ - 'who' => $page['author'], - 'when' => $page['created'], - 'tags' => $tags, + 'who' => $page['author'], + 'when' => $page['created'], + 'tags' => $tags, ]; // render markdown content and clean it $parser = new Parser(); $rendered = $parser->parse($page['content']); $sanitizer = \HtmlSanitizer\Sanitizer::create([ - 'extensions' => ['basic', 'image', 'list', 'code'], - 'tags' => [ - 'img' => [ - 'allowed_attributes' => ['src', 'alt', 'title', 'class'], - 'allowed_hosts' => null, - ], - ], + 'extensions' => ['basic', 'image', 'list', 'code'], + 'tags' => [ + 'img' => [ + 'allowed_attributes' => ['src', 'alt', 'title', 'class'], + 'allowed_hosts' => null, + ], + ], ]); $preclean = $sanitizer->sanitize($rendered->getContent()); diff --git a/brain/views/dash/_frame.twig b/brain/views/dash/_frame.twig index 46f6f18..9e7f5bb 100644 --- a/brain/views/dash/_frame.twig +++ b/brain/views/dash/_frame.twig @@ -1,65 +1,66 @@ -
- -MESSAGE TEXT
-MESSAGE TEXT
+