diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-08-26 12:23:47 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2018-08-29 23:46:31 +0200 |
commit | df6360044b5c2396b2bee0dfa9e8d744bfa424d5 (patch) | |
tree | 177b81f1feca7b1b77b4cd20d006bc1820baba12 /src/Middleware/LegacyMiddleware.php | |
parent | bb3d16d273bb3e4552e4869dd22cb2c2d81f5387 (diff) |
Added Twig template functions
Diffstat (limited to 'src/Middleware/LegacyMiddleware.php')
-rw-r--r-- | src/Middleware/LegacyMiddleware.php | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/Middleware/LegacyMiddleware.php b/src/Middleware/LegacyMiddleware.php index 37ae9331..bf849611 100644 --- a/src/Middleware/LegacyMiddleware.php +++ b/src/Middleware/LegacyMiddleware.php @@ -284,21 +284,11 @@ class LegacyMiddleware implements MiddlewareInterface } return response(view('layouts/app', [ - 'theme' => isset($user) ? $user['color'] : config('theme'), 'title' => $title, - 'atom_link' => ($page == 'news' || $page == 'user_meetings') - ? ' <link href="' - . page_link_to('atom', $parameters) - . '" type = "application/atom+xml" rel = "alternate" title = "Atom Feed">' - : '', - 'start_page_url' => page_link_to('/'), - 'credits_url' => page_link_to('credits'), + 'atom_feed' => ($page == 'news' || $page == 'user_meetings') ? $parameters : [], 'menu' => make_menu(), 'content' => msg() . $content, 'header_toolbar' => header_toolbar(), - 'faq_url' => config('faq_url'), - 'contact_email' => config('contact_email'), - 'locale' => locale(), 'event_info' => EventConfig_info($event_config) . ' <br />' ]), $status); } |