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