Skip to content

Commit

Permalink
Merge pull request #19 from dmstr/feature/growl-location
Browse files Browse the repository at this point in the history
added optional growl location via settings
  • Loading branch information
schmunk42 authored Feb 11, 2020
2 parents ac43070 + a12694a commit 7ca0e68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/views/layouts/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -243,7 +245,7 @@ class="btn btn-default btn-flat" data-method="post">Sign out</a>
'layerClass' => Growl::class,
'options' => [
'dismissQueue' => true,
'location' => 'br',
'location' => $growlLocation,
'timeout' => 4000,
],
]) ?>
Expand Down

0 comments on commit 7ca0e68

Please sign in to comment.