Browse Source

[Frontend] Producteurs : correctif adresse logo

feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
86be54bfb7
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      backend/views/layouts/header.php
  2. +1
    -1
      frontend/views/site/producers.php

+ 1
- 1
backend/views/layouts/header.php View File

<?php if($producer->logo): ?> <?php if($producer->logo): ?>
<span class="logo"> <span class="logo">
<img class="img-logo" <img class="img-logo"
src="<?= \Yii::$app->urlManagerProducer->baseUrl; ?>/uploads/<?= $producer->logo; ?>"
src="<?= Yii::$app->urlManagerProducer->getHostInfo() . '/' . Yii::$app->urlManagerProducer->baseUrl; ?>uploads/<?= $producer->logo; ?>"
alt="Logo <?= Html::encode($producer->name) ?>" /> alt="Logo <?= Html::encode($producer->name) ?>" />
</span> </span>
<?php endif; ?> <?php endif; ?>

+ 1
- 1
frontend/views/site/producers.php View File

<div class="col-md-4 col-sm-4"> <div class="col-md-4 col-sm-4">
<div class="logo"<?php if (!is_null($producer->background_color_logo) && strlen($producer->background_color_logo)): ?> style="background-color:<?= Html::encode($producer->background_color_logo); ?>"<?php endif; ?>> <div class="logo"<?php if (!is_null($producer->background_color_logo) && strlen($producer->background_color_logo)): ?> style="background-color:<?= Html::encode($producer->background_color_logo); ?>"<?php endif; ?>>
<img class="img-logo" <img class="img-logo"
src="<?= \Yii::$app->urlManagerProducer->baseUrl; ?>/uploads/<?= $producer->logo; ?>"
src="<?= Yii::$app->urlManagerProducer->getHostInfo() . '/' . Yii::$app->urlManagerProducer->baseUrl; ?>uploads/<?= $producer->logo; ?>"
alt="Logo <?= Html::encode($producer->name) ?>"> alt="Logo <?= Html::encode($producer->name) ?>">
</div> </div>
</div> </div>

Loading…
Cancel
Save