index.php
1.99 KB
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
<?php
/* @var $this yii\web\View */
use artweb\artbox\core\helpers\ImageHelper;
use artweb\artbox\gentelella\widgets\XPanel;
use yii\bootstrap\Collapse;
$this->title = 'My Yii Application';
?>
<?php
$panel = XPanel::begin(
[
'title' => 'Test',
]
);
echo Collapse::widget(
[
'items' => [
// equivalent to the above
[
'label' => '<p>Collapsible Group Item #1</p>',
'content' => 'Anim pariatur cliche...',
// open its content by default
'contentOptions' => [ 'class' => 'in' ],
],
// another group item
[
'label' => 'Collapsible Group Item #1',
'content' => 'Anim pariatur cliche...',
],
// if you want to swap out .panel-body with .list-group, you may use the following
[
'label' => 'Collapsible Group Item #1',
'content' => [
'Anim pariatur cliche...',
'Anim pariatur cliche...',
],
'footer' => 'Footer'
// the footer label in list-group
],
[
'label' => 'Collapsible Group Item #1',
'content' => [
'Anim pariatur cliche...',
'Anim pariatur cliche...',
],
'footer' => 'Footer',
// the footer label in list-group
],
],
'options' => [
'class' => 'accordion',
],
'encodeLabels' => false,
]
);
$panel::end();
return ImageHelper::set('@storage/test.jpg')
->resize(150, 150)
->done();
?>