diff --git a/backend/modules/system/controllers/SettingsController.php b/backend/modules/system/controllers/SettingsController.php index 543c429a4..5d8bda405 100644 --- a/backend/modules/system/controllers/SettingsController.php +++ b/backend/modules/system/controllers/SettingsController.php @@ -46,6 +46,10 @@ public function actionIndex() 'label' => Yii::t('backend', 'Backend sidebar collapsed'), 'type' => FormModel::TYPE_CHECKBOX, ], + 'backend.sidebar-mini' => [ + 'label' => Yii::t('backend', 'Mini Backend Sidebar on Collapse'), + 'type' => FormModel::TYPE_CHECKBOX, + ], ], ]); diff --git a/backend/views/layouts/base.php b/backend/views/layouts/base.php index ee7f889ab..857aa2c2e 100755 --- a/backend/views/layouts/base.php +++ b/backend/views/layouts/base.php @@ -30,6 +30,7 @@ Yii::$app->keyStorage->get('backend.layout-fixed') ? 'fixed' : null, Yii::$app->keyStorage->get('backend.layout-boxed') ? 'layout-boxed' : null, Yii::$app->keyStorage->get('backend.layout-collapsed-sidebar') ? 'sidebar-collapse' : null, + Yii::$app->keyStorage->get('backend.sidebar-mini') ? 'sidebar-mini' : null, ]) ])?> beginBody() ?> diff --git a/backend/views/layouts/common.php b/backend/views/layouts/common.php index 2d28e0643..cd18afcb8 100644 --- a/backend/views/layouts/common.php +++ b/backend/views/layouts/common.php @@ -31,7 +31,7 @@