From a12694a45a19873bc9afee3cd90bd970c1b445a6 Mon Sep 17 00:00:00 2001 From: Tobias Munk Date: Tue, 11 Feb 2020 10:44:50 +0100 Subject: [PATCH] added optional growl location via settings --- src/views/layouts/main.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/layouts/main.php b/src/views/layouts/main.php index 13ad7e5..b48a8ce 100644 --- a/src/views/layouts/main.php +++ b/src/views/layouts/main.php @@ -24,10 +24,12 @@ $adminLteSkin = ''; $navBarIcon = ''; $sidebarClass = ''; +$growlLocation = 'br'; if (Yii::$app->has('settings')) { $adminLteSkin = Yii::$app->settings->get('skin', 'backend.adminlte') ?: 'black-light'; $navBarIcon = Yii::$app->settings->get('navBarIcon', 'backend.adminlte') ?: FA::_HEART; $sidebarClass = Yii::$app->settings->get('sidebar', 'backend.adminlte', 'sidebar-mini '); + $growlLocation = Yii::$app->settings->getOrSet('growl.location', 'br', 'backend', 'string'); } // prepare assets @@ -243,7 +245,7 @@ class="btn btn-default btn-flat" data-method="post">Sign out 'layerClass' => Growl::class, 'options' => [ 'dismissQueue' => true, - 'location' => 'br', + 'location' => $growlLocation, 'timeout' => 4000, ], ]) ?>