Commit ebcbe93bf5c80c674164efebc7271e034acd1130

Authored by Yarik
1 parent ec08c1f0

Panel

backend/views/layouts/main.php
@@ -18,219 +18,239 @@ @@ -18,219 +18,239 @@
18 <?php $this->beginPage(); ?> 18 <?php $this->beginPage(); ?>
19 <!DOCTYPE html> 19 <!DOCTYPE html>
20 <html lang="<?= Yii::$app->language ?>"> 20 <html lang="<?= Yii::$app->language ?>">
21 -<head>  
22 - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
23 - <meta charset="<?= Yii::$app->charset ?>" />  
24 - <meta http-equiv="X-UA-Compatible" content="IE=edge" />  
25 - <meta name="viewport" content="width=device-width, initial-scale=1" />  
26 - <?= Html::csrfMetaTags() ?>  
27 - <title><?= Html::encode($this->title) ?></title>  
28 - <?php $this->head() ?>  
29 - <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->  
30 - <!--[if lt IE 9]>  
31 - <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>  
32 - <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>  
33 - <![endif]-->  
34 -</head>  
35 -<body class="nav-md">  
36 -<?php $this->beginBody(); ?>  
37 -<div class="container body">  
38 -  
39 - <div class="main_container">  
40 -  
41 - <div class="col-md-3 left_col">  
42 - <div class="left_col scroll-view">  
43 -  
44 - <div class="navbar nav_title" style="border: 0;">  
45 - <a href="/" class="site_title"><i class="fa fa-rocket"></i> <span>Artbox!</span></a>  
46 - </div>  
47 - <div class="clearfix"></div>  
48 -  
49 - <!-- menu prile quick info -->  
50 - <div class="profile">  
51 - <div class="profile_pic">  
52 - <img src="http://placehold.it/128x128" alt="..." class="img-circle profile_img">  
53 - </div>  
54 - <div class="profile_info">  
55 - <span>Welcome,</span>  
56 - <h2>John Doe</h2>  
57 - </div>  
58 - </div>  
59 - <!-- /menu prile quick info -->  
60 -  
61 - <br />  
62 -  
63 - <!-- sidebar menu -->  
64 - <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">  
65 -  
66 - <div class="menu_section">  
67 - <h3>General</h3>  
68 - <?=  
69 - \yiister\gentelella\widgets\Menu::widget(  
70 - [  
71 - "items" => [  
72 - ["label" => "Home", "url" => "/", "icon" => "home"],  
73 - ["label" => "Layout", "url" => ["site/layout"], "icon" => "files-o"],  
74 - ["label" => "Error page", "url" => ["site/error-page"], "icon" => "close"],  
75 - [  
76 - "label" => "Widgets",  
77 - "icon" => "th",  
78 - "url" => "#",  
79 - "items" => [  
80 - ["label" => "Menu", "url" => ["site/menu"]],  
81 - ["label" => "Panel", "url" => ["site/panel"]],  
82 - ],  
83 - ],  
84 - [  
85 - "label" => "Badges",  
86 - "url" => "#",  
87 - "icon" => "table",  
88 - "items" => [  
89 - [  
90 - "label" => "Default",  
91 - "url" => "#",  
92 - "badge" => "123",  
93 - ],  
94 - [  
95 - "label" => "Success",  
96 - "url" => "#",  
97 - "badge" => "new",  
98 - "badgeOptions" => ["class" => "label-success"],  
99 - ],  
100 - [  
101 - "label" => "Danger",  
102 - "url" => "#",  
103 - "badge" => "!",  
104 - "badgeOptions" => ["class" => "label-danger"],  
105 - ],  
106 - ],  
107 - ],  
108 - [  
109 - "label" => "Multilevel",  
110 - "url" => "#",  
111 - "icon" => "table",  
112 - "items" => [  
113 - [  
114 - "label" => "Second level 1",  
115 - "url" => "#",  
116 - ],  
117 - [  
118 - "label" => "Second level 2",  
119 - "url" => "#",  
120 - "items" => [  
121 - [  
122 - "label" => "Third level 1",  
123 - "url" => "#",  
124 - ],  
125 - [  
126 - "label" => "Third level 2",  
127 - "url" => "#",  
128 - ],  
129 - ],  
130 - ],  
131 - ],  
132 - ],  
133 - ],  
134 - ]  
135 - )  
136 - ?>  
137 - </div>  
138 -  
139 - </div>  
140 - <!-- /sidebar menu -->  
141 -  
142 - </div>  
143 - </div>  
144 -  
145 - <!-- top navigation -->  
146 - <div class="top_nav">  
147 -  
148 - <div class="nav_menu">  
149 - <nav class="" role="navigation">  
150 - <div class="nav toggle">  
151 - <a id="menu_toggle"><i class="fa fa-bars"></i></a>  
152 - </div>  
153 -  
154 - <ul class="nav navbar-nav navbar-right">  
155 - <li class="">  
156 - <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">  
157 - <img src="http://placehold.it/128x128" alt=""><?=Yii::$app->user->identity->username?>  
158 - <span class=" fa fa-angle-down"></span>  
159 - </a>  
160 - <ul class="dropdown-menu dropdown-usermenu pull-right">  
161 - <li>  
162 - <a href="#"><i class="fa fa-user pull-right"></i> Profile</a>  
163 - </li>  
164 - <li>  
165 - <?= Html::a(  
166 - Html::tag('i', '', [ 'class' => 'fa fa-cogs pull-right' ]) . ' Settings',  
167 - [ '/settings' ]  
168 - ) ?>  
169 - </li>  
170 - <li>  
171 - <?= Html::a(  
172 - Html::tag('i', '', [ 'class' => 'fa fa-sign-out pull-right' ]) . ' Log out',  
173 - [ '/site/logout' ],  
174 - [  
175 - 'data-method' => 'POST',  
176 - ]  
177 - ) ?>  
178 - </li>  
179 - </ul>  
180 - </li> 21 + <head>
  22 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  23 + <meta charset="<?= Yii::$app->charset ?>"/>
  24 + <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  25 + <meta name="viewport" content="width=device-width, initial-scale=1"/>
  26 + <?= Html::csrfMetaTags() ?>
  27 + <title><?= Html::encode($this->title) ?></title>
  28 + <?php $this->head() ?>
  29 + <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  30 + <!--[if lt IE 9]>
  31 + <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  32 + <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  33 + <![endif]-->
  34 + </head>
  35 + <body class="nav-md">
  36 + <?php $this->beginBody(); ?>
  37 + <div class="container body">
181 38
182 - </ul>  
183 - </nav>  
184 - </div>  
185 -  
186 - </div>  
187 - <!-- /top navigation -->  
188 -  
189 - <!-- page content -->  
190 - <div class="right_col" role="main">  
191 - <?php if (isset($this->params['h1'])): ?>  
192 - <div class="page-title">  
193 - <div class="title_left">  
194 - <h1><?= $this->params['h1'] ?></h1>  
195 - </div>  
196 - <div class="title_right">  
197 - <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">  
198 - <div class="input-group">  
199 - <input type="text" class="form-control" placeholder="Search for...">  
200 - <span class="input-group-btn"> 39 + <div class="main_container">
  40 +
  41 + <div class="col-md-3 left_col">
  42 + <div class="left_col scroll-view">
  43 +
  44 + <div class="navbar nav_title" style="border: 0;">
  45 + <a href="/" class="site_title"><i class="fa fa-rocket"></i> <span>Artbox!</span></a>
  46 + </div>
  47 + <div class="clearfix"></div>
  48 +
  49 + <!-- menu prile quick info -->
  50 + <div class="profile">
  51 + <div class="profile_pic">
  52 + <img src="http://placehold.it/128x128" alt="..." class="img-circle profile_img">
  53 + </div>
  54 + <div class="profile_info">
  55 + <span>Welcome,</span>
  56 + <h2>John Doe</h2>
  57 + </div>
  58 + </div>
  59 + <!-- /menu prile quick info -->
  60 +
  61 + <br/>
  62 +
  63 + <!-- sidebar menu -->
  64 + <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
  65 +
  66 + <div class="menu_section">
  67 + <h3>General</h3>
  68 + <?= \yiister\gentelella\widgets\Menu::widget(
  69 + [
  70 + "items" => [
  71 + [
  72 + "label" => "Home",
  73 + "url" => "/",
  74 + "icon" => "home",
  75 + ],
  76 + [
  77 + "label" => "Layout",
  78 + "url" => [ "site/layout" ],
  79 + "icon" => "files-o",
  80 + ],
  81 + [
  82 + "label" => "Error page",
  83 + "url" => [ "site/error-page" ],
  84 + "icon" => "close",
  85 + ],
  86 + [
  87 + "label" => "Widgets",
  88 + "icon" => "th",
  89 + "url" => "#",
  90 + "items" => [
  91 + [
  92 + "label" => "Menu",
  93 + "url" => [ "site/menu" ],
  94 + ],
  95 + [
  96 + "label" => "Panel",
  97 + "url" => [ "site/panel" ],
  98 + ],
  99 + ],
  100 + ],
  101 + [
  102 + "label" => "Badges",
  103 + "url" => "#",
  104 + "icon" => "table",
  105 + "items" => [
  106 + [
  107 + "label" => "Default",
  108 + "url" => "#",
  109 + "badge" => "123",
  110 + ],
  111 + [
  112 + "label" => "Success",
  113 + "url" => "#",
  114 + "badge" => "new",
  115 + "badgeOptions" => [ "class" => "label-success" ],
  116 + ],
  117 + [
  118 + "label" => "Danger",
  119 + "url" => "#",
  120 + "badge" => "!",
  121 + "badgeOptions" => [ "class" => "label-danger" ],
  122 + ],
  123 + ],
  124 + ],
  125 + [
  126 + "label" => "Multilevel",
  127 + "url" => "#",
  128 + "icon" => "table",
  129 + "items" => [
  130 + [
  131 + "label" => "Second level 1",
  132 + "url" => "#",
  133 + ],
  134 + [
  135 + "label" => "Second level 2",
  136 + "url" => "#",
  137 + "items" => [
  138 + [
  139 + "label" => "Third level 1",
  140 + "url" => "#",
  141 + ],
  142 + [
  143 + "label" => "Third level 2",
  144 + "url" => "#",
  145 + ],
  146 + ],
  147 + ],
  148 + ],
  149 + ],
  150 + ],
  151 + ]
  152 + ) ?>
  153 + </div>
  154 +
  155 + </div>
  156 + <!-- /sidebar menu -->
  157 +
  158 + </div>
  159 + </div>
  160 +
  161 + <!-- top navigation -->
  162 + <div class="top_nav">
  163 +
  164 + <div class="nav_menu">
  165 + <nav class="" role="navigation">
  166 + <div class="nav toggle">
  167 + <a id="menu_toggle"><i class="fa fa-bars"></i></a>
  168 + </div>
  169 +
  170 + <ul class="nav navbar-nav navbar-right">
  171 + <li class="">
  172 + <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
  173 + <img src="http://placehold.it/128x128" alt=""><?= Yii::$app->user->identity->username ?>
  174 + <span class=" fa fa-angle-down"></span>
  175 + </a>
  176 + <ul class="dropdown-menu dropdown-usermenu pull-right">
  177 + <li>
  178 + <a href="#"><i class="fa fa-user pull-right"></i> Profile</a>
  179 + </li>
  180 + <li>
  181 + <?= Html::a(
  182 + Html::tag(
  183 + 'i',
  184 + '',
  185 + [ 'class' => 'fa fa-cogs pull-right' ]
  186 + ) . ' Settings',
  187 + [ '/settings' ]
  188 + ) ?>
  189 + </li>
  190 + <li>
  191 + <?= Html::a(
  192 + Html::tag(
  193 + 'i',
  194 + '',
  195 + [ 'class' => 'fa fa-sign-out pull-right' ]
  196 + ) . ' Log out',
  197 + [ '/site/logout' ],
  198 + [
  199 + 'data-method' => 'POST',
  200 + ]
  201 + ) ?>
  202 + </li>
  203 + </ul>
  204 + </li>
  205 +
  206 + </ul>
  207 + </nav>
  208 + </div>
  209 +
  210 + </div>
  211 + <!-- /top navigation -->
  212 +
  213 + <!-- page content -->
  214 + <div class="right_col" role="main">
  215 + <?php if (isset( $this->params[ 'h1' ] )): ?>
  216 + <div class="page-title">
  217 + <div class="title_left">
  218 + <h1><?= $this->params[ 'h1' ] ?></h1>
  219 + </div>
  220 + <div class="title_right">
  221 + <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
  222 + <div class="input-group">
  223 + <input type="text" class="form-control" placeholder="Search for...">
  224 + <span class="input-group-btn">
201 <button class="btn btn-default" type="button">Go!</button> 225 <button class="btn btn-default" type="button">Go!</button>
202 </span> 226 </span>
  227 + </div>
  228 + </div>
  229 + </div>
  230 + </div>
  231 + <?php endif; ?>
  232 + <div class="clearfix"></div>
  233 +
  234 + <?= $content ?>
203 </div> 235 </div>
204 - </div> 236 + <!-- /page content -->
  237 + <!-- footer content -->
  238 + <footer>
  239 +
  240 + </footer>
  241 + <!-- /footer content -->
205 </div> 242 </div>
206 - </div>  
207 - <?php endif; ?>  
208 - <div class="clearfix"></div>  
209 243
210 - <?= $content ?>  
211 - </div>  
212 - <!-- /page content -->  
213 - <!-- footer content -->  
214 - <footer>  
215 - <div class="pull-right">  
216 - Gentelella - Bootstrap Admin Template by <a href="https://colorlib.com" rel="nofollow" target="_blank">Colorlib</a><br />  
217 - Extension for Yii framework 2 by <a href="http://yiister.ru" rel="nofollow" target="_blank">Yiister</a>  
218 - </div>  
219 - <div class="clearfix"></div>  
220 - </footer>  
221 - <!-- /footer content -->  
222 - </div>  
223 -  
224 -</div>  
225 -  
226 -<div id="custom_notifications" class="custom-notifications dsp_none">  
227 - <ul class="list-unstyled notifications clearfix" data-tabbed_notifications="notif-group">  
228 - </ul>  
229 - <div class="clearfix"></div>  
230 - <div id="notif-group" class="tabbed_notifications"></div>  
231 -</div>  
232 -<!-- /footer content -->  
233 -<?php $this->endBody(); ?>  
234 -</body> 244 + </div>
  245 +
  246 + <div id="custom_notifications" class="custom-notifications dsp_none">
  247 + <ul class="list-unstyled notifications clearfix" data-tabbed_notifications="notif-group">
  248 + </ul>
  249 + <div class="clearfix"></div>
  250 + <div id="notif-group" class="tabbed_notifications"></div>
  251 + </div>
  252 + <!-- /footer content -->
  253 + <?php $this->endBody(); ?>
  254 + </body>
235 </html> 255 </html>
236 <?php $this->endPage(); ?> 256 <?php $this->endPage(); ?>
backend/views/site/index.php
@@ -9,7 +9,13 @@ @@ -9,7 +9,13 @@
9 $this->title = 'My Yii Application'; 9 $this->title = 'My Yii Application';
10 ?> 10 ?>
11 <?php 11 <?php
12 - $panel = XPanel::begin(); 12 + $panel = XPanel::begin(
  13 + [
  14 + 'title' => 'Test',
  15 + 'toolbarLayout' => '{close}{collapse}',
  16 + ]
  17 + );
  18 + echo "Velox nuclear vexatum iaceres ducunt ad eleates.";
13 $panel::end(); 19 $panel::end();
14 ?> 20 ?>
15 <div class="site-index"> 21 <div class="site-index">
@@ -47,7 +47,8 @@ @@ -47,7 +47,8 @@
47 }, 47 },
48 "autoload": { 48 "autoload": {
49 "psr-4": { 49 "psr-4": {
50 - "artweb\\artbox\\core\\": "artweb/artbox-core/" 50 + "artweb\\artbox\\core\\": "artweb/artbox-core/",
  51 + "artweb\\artbox\\gentelella\\": "artweb/artbox-gentelella/"
51 } 52 }
52 } 53 }
53 } 54 }
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", 4 "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
5 "This file is @generated automatically" 5 "This file is @generated automatically"
6 ], 6 ],
7 - "hash": "b77198c9b7dc6a47b379a7f696023839", 7 + "hash": "2928aa19bb3e15f07d64bf3e1e09cac2",
8 "content-hash": "ecbd5dfde30e425db5d104f468df4ee5", 8 "content-hash": "ecbd5dfde30e425db5d104f468df4ee5",
9 "packages": [ 9 "packages": [
10 { 10 {