|
|
@@ -266,61 +266,12 @@ use yii\helpers\ArrayHelper; |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</li> |
|
|
|
<!-- User Account: style can be found in dropdown.less --> |
|
|
|
|
|
|
|
<li class="dropdown user user-menu"> |
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> |
|
|
|
<img src="<?= $directoryAsset ?>/img/user2-160x160.jpg" class="user-image" alt="User Image"/> |
|
|
|
<span class="hidden-xs">Alexander Pierce</span> |
|
|
|
</a> |
|
|
|
<ul class="dropdown-menu"> |
|
|
|
<!-- User image --> |
|
|
|
<li class="user-header"> |
|
|
|
<img src="<?= $directoryAsset ?>/img/user2-160x160.jpg" class="img-circle" |
|
|
|
alt="User Image"/> |
|
|
|
|
|
|
|
<p> |
|
|
|
Alexander Pierce - Web Developer |
|
|
|
<small>Member since Nov. 2012</small> |
|
|
|
</p> |
|
|
|
</li> |
|
|
|
<!-- Menu Body --> |
|
|
|
<li class="user-body"> |
|
|
|
<div class="col-xs-4 text-center"> |
|
|
|
<a href="#">Followers</a> |
|
|
|
</div> |
|
|
|
<div class="col-xs-4 text-center"> |
|
|
|
<a href="#">Sales</a> |
|
|
|
</div> |
|
|
|
<div class="col-xs-4 text-center"> |
|
|
|
<a href="#">Friends</a> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
<!-- Menu Footer--> |
|
|
|
<li class="user-footer"> |
|
|
|
<div class="pull-left"> |
|
|
|
<a href="#" class="btn btn-default btn-flat">Profile</a> |
|
|
|
</div> |
|
|
|
<div class="pull-right"> |
|
|
|
<?= Html::a( |
|
|
|
'Sign out', |
|
|
|
['/site/logout'], |
|
|
|
['data-method' => 'post', 'class' => 'btn btn-default btn-flat'] |
|
|
|
) ?> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</li> |
|
|
|
|
|
|
|
<!-- User Account: style can be found in dropdown.less --> |
|
|
|
<li class="link-control-sidebar"> |
|
|
|
<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a> |
|
|
|
</li> |
|
|
|
|
|
|
|
<?php if (User::isCurrentProducer() || User::isCurrentAdmin()): ?> |
|
|
|
|
|
|
|
<li class="dropdown"> |
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> |
|
|
|
<i class="fa fa-home"></i> |
|
|
|
<span><?= Html::encode(Yii::$app->user->identity->getNameProducer()); ?></span> |
|
|
|
</a> |
|
|
|
<?php if(User::isCurrentAdmin()): ?> |
|
|
@@ -333,6 +284,24 @@ use yii\helpers\ArrayHelper; |
|
|
|
<?php endif; ?> |
|
|
|
</li> |
|
|
|
<?php endif; ?> |
|
|
|
|
|
|
|
<!-- User Account: style can be found in dropdown.less --> |
|
|
|
<li class="dropdown user user-menu"> |
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> |
|
|
|
<i class="fa fa-user"></i> |
|
|
|
<span class="hidden-xs"><?= Html::encode(User::getCurrent()->name.' '.User::getCurrent()->lastname) ; ?></span> |
|
|
|
</a> |
|
|
|
<ul class="dropdown-menu"> |
|
|
|
<li><a href="<?= Yii::$app->urlManagerFrontend->createAbsoluteUrl(['user/update']); ?>"><i class="fa fa-user"></i> Profil</a></li> |
|
|
|
<li><a href="<?= Yii::$app->urlManagerBackend->createUrl(['site/logout']); ?>"><i class="fa fa-sign-out"></i> Déconnexion</a></li> |
|
|
|
</ul> |
|
|
|
</li> |
|
|
|
|
|
|
|
<!-- User Account: style can be found in dropdown.less --> |
|
|
|
<li class="link-control-sidebar"> |
|
|
|
<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a> |
|
|
|
</li> |
|
|
|
|
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</nav> |