Blame view

frontend/modules/user/widgets/HeaderAuthorized/views/base.php 699 Bytes
d1f8bd40   Alexey Boroda   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  <?php
  use yii\helpers\Html;
  $user = Yii::$app->getUser()->getIdentity();
  /**
   *
   * @author FilamentV <vortex.filament@gmail.com>
   * @copyright (c), Thread
   */
  ?>
  <span class="dropdown-trigger js-dropdown-toggle">
      <?=$user['profile']['first_name'].' '.$user['profile']['last_name']?>
      <i class="caret-down" aria-hidden="true"></i>
  </span>
  <ul class="dropdown-list">
      <li><?= Html::a('<i class="fa fa-user pr-10"></i> ' . Yii::t('user', 'Private Office'), ['/user/profile/index'], [
              'class' => ''
          ]) ?></li>
      <li><?= Html::a('<i class="fa fa-lock pr-10"></i> ' . Yii::t('user', 'Login Out'), ['/user/logout/index'], [
              'class' => ''
          ]) ?></li>
  </ul>