Blame view

backend/views/site/index.php 1.82 KB
1755c393   Yarik   Basic template in...
1
  <?php
567888e8   Yarik   Widgets
2
3
4
5
      
      /* @var $this yii\web\View */
      
      use artweb\artbox\gentelella\widgets\XPanel;
567888e8   Yarik   Widgets
6
7
8
9
10
      use yii\bootstrap\Collapse;
      
      $this->title = 'My Yii Application';
  ?>
  <?php
ebcbe93b   Yarik   Panel
11
12
      $panel = XPanel::begin(
          [
0ffdb7f9   Yarik   Merge branch 'mas...
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
              '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,
ebcbe93b   Yarik   Panel
55
56
          ]
      );
567888e8   Yarik   Widgets
57
      $panel::end();
0ffdb7f9   Yarik   Merge branch 'mas...
58
  ?>