From e8b1871cd2783fd83949bdc21cab1d6db68c4225 Mon Sep 17 00:00:00 2001 From: Awilum Date: Wed, 26 Jun 2019 00:36:04 +0300 Subject: [PATCH] Admin Panel: Themes #171 #165 - next round of implementation. --- site/plugins/admin/app/Controllers/TemplatesController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/site/plugins/admin/app/Controllers/TemplatesController.php b/site/plugins/admin/app/Controllers/TemplatesController.php index aa820296..ed095c77 100644 --- a/site/plugins/admin/app/Controllers/TemplatesController.php +++ b/site/plugins/admin/app/Controllers/TemplatesController.php @@ -232,6 +232,11 @@ class TemplatesController extends Controller 'id_current' => $request->getQueryParams()['id'], 'type_current' => (($request->getQueryParams()['type'] && $request->getQueryParams()['type'] == 'partial') ? 'partial' : 'template'), 'links' => [ + 'themes' => [ + 'link' => $this->router->pathFor('admin.themes.index'), + 'title' => __('admin_themes'), + 'attributes' => ['class' => 'navbar-item'] + ], 'templates' => [ 'link' => $this->router->pathFor('admin.templates.index') . '?theme=' . $theme, 'title' => __('admin_templates'),