Commit fe49a6396a4319b6f1eea091fd5e8e612a1a9300

Authored by Alexey Boroda
1 parent 02f2d497

-Feedback in process

Showing 2 changed files with 21 additions and 3 deletions   Show diff stats
backend/config/main.php 100644 → 100755
@@ -17,6 +17,7 @@ @@ -17,6 +17,7 @@
17 'profile' => 'artweb\artbox\core\controllers\ProfileController', 17 'profile' => 'artweb\artbox\core\controllers\ProfileController',
18 'page' => 'artweb\artbox\core\controllers\PageController', 18 'page' => 'artweb\artbox\core\controllers\PageController',
19 'seo' => 'artweb\artbox\core\controllers\AliasController', 19 'seo' => 'artweb\artbox\core\controllers\AliasController',
  20 + 'feedback' => 'artweb\artbox\core\controllers\FeedbackController',
20 ], 21 ],
21 'modules' => [ 22 'modules' => [
22 'imagemanager' => [ 23 'imagemanager' => [
backend/views/layouts/main.php 100644 → 100755
@@ -7,9 +7,11 @@ @@ -7,9 +7,11 @@
7 7
8 use artweb\artbox\core\assets\ArtboxCoreAsset; 8 use artweb\artbox\core\assets\ArtboxCoreAsset;
9 use artweb\artbox\core\models\User; 9 use artweb\artbox\core\models\User;
  10 + use artweb\artbox\core\widgets\FeedbackWidget;
10 use artweb\artbox\core\widgets\FlashWidget; 11 use artweb\artbox\core\widgets\FlashWidget;
11 use yii\helpers\Html; 12 use yii\helpers\Html;
12 use yii\web\View; 13 use yii\web\View;
  14 + use yii\widgets\Breadcrumbs;
13 15
14 yiister\gentelella\assets\Asset::register($this); 16 yiister\gentelella\assets\Asset::register($this);
15 ArtboxCoreAsset::register($this); 17 ArtboxCoreAsset::register($this);
@@ -178,7 +180,14 @@ @@ -178,7 +180,14 @@
178 </a> 180 </a>
179 <ul class="dropdown-menu dropdown-usermenu pull-right"> 181 <ul class="dropdown-menu dropdown-usermenu pull-right">
180 <li> 182 <li>
181 - <a href="#"><i class="fa fa-user pull-right"></i> Profile</a> 183 + <?= Html::a(
  184 + Html::tag(
  185 + 'i',
  186 + '',
  187 + [ 'class' => 'fa fa-user pull-right' ]
  188 + ) . ' Profile',
  189 + [ '/profile' ]
  190 + ) ?>
182 </li> 191 </li>
183 <li> 192 <li>
184 <?= Html::a( 193 <?= Html::a(
@@ -205,7 +214,9 @@ @@ -205,7 +214,9 @@
205 </li> 214 </li>
206 </ul> 215 </ul>
207 </li> 216 </li>
208 - 217 + <li role="presentation">
  218 + <?= FeedbackWidget::widget(); ?>
  219 + </li>
209 </ul> 220 </ul>
210 </nav> 221 </nav>
211 </div> 222 </div>
@@ -233,7 +244,13 @@ @@ -233,7 +244,13 @@
233 </div> 244 </div>
234 <?php endif; ?> 245 <?php endif; ?>
235 <div class="clearfix"></div> 246 <div class="clearfix"></div>
236 - 247 +
  248 + <?= Breadcrumbs::widget(
  249 + [
  250 + 'links' => isset($this->params[ 'breadcrumbs' ]) ? $this->params[ 'breadcrumbs' ] : [],
  251 + ]
  252 + ) ?>
  253 +
237 <?= $content ?> 254 <?= $content ?>
238 </div> 255 </div>
239 <!-- /page content --> 256 <!-- /page content -->