|
|
@@ -237,13 +237,23 @@ $producer = GlobalParam::getCurrentProducer(); |
|
|
|
<span class="hidden-xs">Espace du producteur</span> |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
<li class="header"> <strong>Autres producteurs</strong></li> |
|
|
|
<li class="header"> <strong>Producteurs en ligne</strong></li> |
|
|
|
<?php $producersArray = Producer::find()->orderBy('name ASC')->all(); ?> |
|
|
|
<?php foreach ($producersArray as $producer): ?> |
|
|
|
<li> |
|
|
|
<a href="<?= Yii::$app->urlManagerBackend->createUrl(['site/change-producer', 'id' => $producer->id]); ?>"><?= Html::encode($producer->name) ?></a> |
|
|
|
</li> |
|
|
|
<?php if($producer->active == 1): ?> |
|
|
|
<li> |
|
|
|
<a href="<?= Yii::$app->urlManagerBackend->createUrl(['site/change-producer', 'id' => $producer->id]); ?>"><?= Html::encode($producer->name) ?></a> |
|
|
|
</li> |
|
|
|
<?php endif; ?> |
|
|
|
<?php endforeach; ?> |
|
|
|
<li class="header"><a href="javascript:void(0);" id="link-display-producers-offline">Afficher les producteurs hors-ligne</a></li> |
|
|
|
<?php foreach ($producersArray as $producer): ?> |
|
|
|
<?php if($producer->active != 1): ?> |
|
|
|
<li class="offline"> |
|
|
|
<a href="<?= Yii::$app->urlManagerBackend->createUrl(['site/change-producer', 'id' => $producer->id]); ?>"><?= Html::encode($producer->name) ?></a> |
|
|
|
</li> |
|
|
|
<?php endif; ?> |
|
|
|
<?php endforeach; ?> |
|
|
|
<?php else: ?> |
|
|
|
<li> |
|
|
|
<a href="<?= Yii::$app->urlManagerProducer->createAbsoluteUrl(['site/index', 'slug_producer' => GlobalParam::getCurrentProducer()->slug]); ?>"> |