-
Notifications
You must be signed in to change notification settings - Fork 22
/
LteSetup.php
215 lines (193 loc) · 5.15 KB
/
LteSetup.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<?php
/**
* Created by solly [25.03.17 20:21]
*/
namespace insolita\wgadminlte;
use yii\web\View;
use yii\base\Widget;
use yii\helpers\Json;
use yii\web\JsExpression;
/**
* Class LteSetup - override default adminlte settings if you need
* Register this widget with customized settings in layout
*
* @package insolita\wgadminlte
*/
class LteSetup extends Widget
{
/**
* Add slimscroll to navbar menus This requires you to load the slimscroll plugin in every page before app.js
*
* @see https://github.com/rochal/jQuery-slimScroll
* @var bool
*/
public $navbarMenuSlimscroll = true;
/**
* The width of the scroll bar
*
* @var string
*/
public $navbarMenuSlimscrollWidth = "3px";
/**
* The height of the inner menu
*
* @var string
*/
public $navbarMenuHeight = "200px";
/**
* General animation speed for JS animated elements such as box collapse/expand and sidebar treeview slide
* up/down. This options accepts an integer as milliseconds,
* //'fast', 'normal', or 'slow'
*
* @var int|string
*/
public $animationSpeed = 500;
/**
* Sidebar push menu toggle button selector
*
* @var string
*/
public $sidebarToggleSelector = "[data-toggle='offcanvas']";
/**
* Activate sidebar push menu
*
* @var bool
*/
public $sidebarPushMenu = true;
/**
* Activate sidebar slimscroll if the fixed layout is set (requires SlimScroll Plugin)
*
* @var bool
*/
public $sidebarSlimScroll = true;
/**
* Enable sidebar expand on hover effect for sidebar mini This option is forced to true if both the fixed layout
* and sidebar mini are used together
*
* @var bool
*/
public $sidebarExpandOnHover = false;
/**
* BoxRefresh Plugin
*
* @var bool
*/
public $enableBoxRefresh = true;
/**
* Bootstrap.js tooltip
*
* @var bool
*/
public $enableBSToppltip = true;
/**
* @var string
*/
public $BSTooltipSelector = "[data-toggle='tooltip']";
/**
* Enable Fast Click. Fastclick.js creates a more native touch experience with touch devices.
* If youchoose to enable the plugin, make sure you load the scriptbefore AdminLTE's app.js
*
* @var bool
*/
public $enableFastclick = true;
/**
* Control Sidebar Tree Views
*
* @var bool
*/
public $enableControlTreeView = true;
/**
* Control Sidebar Options
*
* @var array
*/
public $controlSidebarOptions
= [
'toggleBtnSelector' => "[data-toggle='control-sidebar']",
'selector' => ".control-sidebar",
'slide' => true,
];
/**
* Box Widget Plugin. Enable this plugin to allow boxes to be collapsed and/or removed
*
* @var bool
*/
public $enableBoxWidget = true;
/**
* Box Widget plugin options
*
* @var array
*/
public $boxWidgetOptions
= [
'boxWidgetIcons' => [
//Collapse icon
'collapse' => 'fa-minus',
//Open icon
'open' => 'fa-plus',
//Remove icon
'remove' => 'fa-times',
],
'boxWidgetSelectors' => [
//Remove button selector
'remove' => '[data-widget="remove"]',
//Collapse button selector
'collapse' => '[data-widget="collapse"]',
],
];
/**
* Direct Chat plugin options
*
* @var array
*/
public $directChat
= [
'enable' => true,
'contactToggleSelector' => '[data-widget="chat-pane-toggle"]',
];
/**
* Define the set of colors to use globally around the website
*
* @var array
*/
public $colors
= [
'lightBlue' => "#3c8dbc",
'red' => "#f56954",
'green' => "#00a65a",
'aqua' => "#00c0ef",
'yellow' => "#f39c12",
'blue' => "#0073b7",
'navy' => "#001F3F",
'teal' => "#39CCCC",
'olive' => "#3D9970",
'lime' => "#01FF70",
'orange' => "#FF851B",
'fuchsia' => "#F012BE",
'purple' => "#8E24AA",
'maroon' => "#D81B60",
'black' => "#222222",
'gray' => "#d2d6de",
];
/**
* The standard screen sizes that bootstrap uses.If you change these in the variables.less file, change them here
* too.
*
* @var array
*/
public $screenSize
= [
'xs' => 480,
'sm' => 768,
'md' => 992,
'lg' => 1200,
];
public function init()
{
parent::init();
$this->getView()->registerJs(
new JsExpression('var AdminLTEOptions = ' . Json::encode(get_object_vars($this))),
View::POS_HEAD
);
}
}