|
|
@@ -131,8 +131,7 @@ use yii\widgets\ActiveForm; |
|
|
|
<?php foreach ($produits as $p): ?> |
|
|
|
<tr class="produit-<?php echo $p->id; ?>" <?php if (count($produits_dispos) && !$produits_dispos[$p->id]['actif']): ?>style="display:none;"<?php endif; ?>> |
|
|
|
<td class="produit"> |
|
|
|
<?php if (strlen($p->photo)): ?><br /><a href="<?= Yii::$app->urlManager->getBaseUrl() . '/uploads/' . $p->photo ?>" data-lightbox="produit-<?php echo $p->id; ?>"><img class="photo img-rounded img-thumbnail" src="<?= Yii::$app->urlManager->getBaseUrl() . '/uploads/' . $p->photo ?>" alt="Photo <?= Html::encode($p->nom); ?>" /></a><?php endif; ?> |
|
|
|
<?php if (strlen($p->illustration)): ?><img class="illu" src="<?= Yii::$app->urlManager->getBaseUrl() . '/uploads/' . $p->illustration ?>" alt="illustration <?= Html::encode($p->nom); ?>" /><?php endif; ?> |
|
|
|
<?php if (strlen($p->photo) && file_exists(dirname(__FILE__).'/../../web/uploads/' . $p->photo)): ?><br /><a href="<?= Yii::$app->urlManager->getBaseUrl() . '/uploads/' . $p->photo ?>" data-lightbox="produit-<?php echo $p->id; ?>"><img class="photo img-rounded img-thumbnail" src="<?= Yii::$app->urlManager->getBaseUrl() . '/uploads/' . $p->photo ?>" alt="Photo <?= Html::encode($p->nom); ?>" /></a><?php endif; ?> |
|
|
|
<span class="nom"><?= Html::encode($p->nom); ?></span> - <span class="description"><?= Html::encode($p->getDescription()); ?></span><br /> |
|
|
|
<span class="recette"><?= Html::encode($p->recette); ?></span> |
|
|
|
</td> |