From fff2a5c810368c5d5933513b5449c2a44d5c228d Mon Sep 17 00:00:00 2001 From: Awilum Date: Wed, 22 May 2019 14:46:43 +0300 Subject: [PATCH] Flextype Box Plugin: Admin #125 #117 - Plugins Controller/Views implementation --- .../admin/app/Controllers/PluginsController.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/site/plugins/admin/app/Controllers/PluginsController.php b/site/plugins/admin/app/Controllers/PluginsController.php index c1360ce1..d59f3c95 100644 --- a/site/plugins/admin/app/Controllers/PluginsController.php +++ b/site/plugins/admin/app/Controllers/PluginsController.php @@ -15,7 +15,21 @@ class PluginsController extends Controller return $this->view->render($response, 'plugins/admin/views/templates/extends/plugins/index.html', [ 'plugins_list' => $this->registry->get('plugins'), - 'menu_item' => 'plugins' + 'menu_item' => 'plugins', + 'links' => [ + 'plugins' => [ + 'link' => $this->router->urlFor('admin.plugins.index'), + 'title' => __('admin_plugins'), + 'attributes' => ['class' => 'navbar-item active'] + ], + ], + 'buttons' => [ + 'plugins_get_more' => [ + 'link' => 'https://github.com/flextype/plugins', + 'title' => __('admin_get_more_plugins'), + 'attributes' => ['float-right btn' => 'navbar-item', 'target' => '_blank'] + ], + ] ]); }