From 6ae24cca2005241c5a2b10ad96e0cfe17250e57e Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 27 Jun 2017 17:15:25 +0300 Subject: [PATCH] -Image manager ready --- backend/views/layouts/menu_main.php | 8 ++++++++ common/config/main.php | 4 ++++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/backend/views/layouts/menu_main.php b/backend/views/layouts/menu_main.php index 709036b..6e726ae 100755 --- a/backend/views/layouts/menu_main.php +++ b/backend/views/layouts/menu_main.php @@ -64,5 +64,13 @@ ], ], ], + [ + 'label' => \Yii::t('imagemanager', 'Image manager'), + 'url' => [ '/imagemanager' ], + 'icon' => 'image', + 'active' => function () { + return \Yii::$app->controller->id = 'imagemanager'; + }, + ], ] ); \ No newline at end of file diff --git a/common/config/main.php b/common/config/main.php index 43cddd7..08c2674 100755 --- a/common/config/main.php +++ b/common/config/main.php @@ -61,6 +61,10 @@ 'class' => 'yii\i18n\PhpMessageSource', 'basePath' => '@artbox/odoo/messages', ], + 'imagemanager' => [ + 'class' => 'yii\i18n\PhpMessageSource', + 'basePath' => '@artbox/core/components/imagemanager/messages', + ], ], ], 'filedb' => [ -- libgit2 0.21.4