|
|
|
|
|
|
|
|
<h2>Mes producteurs</h2> |
|
|
<h2>Mes producteurs</h2> |
|
|
<?php foreach($producers as $producer): ?> |
|
|
<?php foreach($producers as $producer): ?> |
|
|
<div class="col-md-<?php if(count($producers) == 1): ?>6<?php elseif(count($producers) == 2): ?>6<?php else: ?>3<?php endif; ?>"> |
|
|
<div class="col-md-<?php if(count($producers) == 1): ?>6<?php elseif(count($producers) == 2): ?>6<?php else: ?>3<?php endif; ?>"> |
|
|
<div class="producer" style="background-image:url('<?= Yii::$app->urlManagerProducer->baseUrl ?>/uploads/<?= $producer->photo ?>');">> |
|
|
|
|
|
|
|
|
<div class="producer" style="background-image:url('<?= Yii::$app->urlManagerProducer->getHostInfo().'/'.Yii::$app->urlManagerProducer->baseUrl ; ?>/uploads/<?= $producer->photo ?>');"> |
|
|
<a class="btn btn-primary" href="<?= Yii::$app->urlManagerProducer->createAbsoluteUrl(['site/index','slug_producer' => $producer->slug]); ?>"><?= Html::encode($producer->nom); ?></a> |
|
|
<a class="btn btn-primary" href="<?= Yii::$app->urlManagerProducer->createAbsoluteUrl(['site/index','slug_producer' => $producer->slug]); ?>"><?= Html::encode($producer->nom); ?></a> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |