Pārlūkot izejas kodu

Amélioration responsive bloc "Mes producteurs"

dev
Guillaume Bourgeois pirms 5 gadiem
vecāks
revīzija
eaaa12b099
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      frontend/views/layouts/main.php

+ 1
- 1
frontend/views/layouts/main.php Parādīt failu

@@ -184,7 +184,7 @@ if(!Yii::$app->user->isGuest && Yii::$app->user->identity->id_producer > 0) {
<?php if(count($producersArray)): ?>
<h2>Mes producteurs</h2>
<?php foreach($producersArray as $producer): ?>
<div class="col-md-<?php if(count($producersArray) == 1): ?>6<?php elseif(count($producersArray) == 2): ?>6<?php else: ?>3<?php endif; ?>">
<div class="col-xs-6 col-md-<?php if(count($producersArray) == 1): ?>6<?php elseif(count($producersArray) == 2): ?>6<?php else: ?>3<?php endif; ?>">
<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->name); ?></a>
</div>

Notiek ielāde…
Atcelt
Saglabāt