|
|
@@ -139,7 +139,7 @@ $mainColor = $producer->option_main_color ?: '#ee6f42' ; |
|
|
|
<?php $hasLogo = strlen($producer->logo) && Image::isPhotoExist($producer->logo); ?> |
|
|
|
<div id="header" class="<?= $hasLogo ? 'with-logo' : 'without-logo'; ?>"> |
|
|
|
<?php if (strlen($producer->photo) || strlen($producer->logo)): ?> |
|
|
|
<div id="banner" style="background-color: <?= $mainColor ?>;<?php if(strlen($producer->photo)): ?>background-image:url(<?= \Yii::$app->urlManager->baseUrl; ?>/uploads/<?= $producer->photo; ?>);<?php endif; ?>"> |
|
|
|
<div id="banner" style="background-color: <?= $mainColor ?>;<?php if(strlen($producer->photo)): ?>background-image:url(<?= \Yii::$app->urlManager->baseUrl; ?>/uploads/<?= urlencode($producer->photo); ?>);<?php endif; ?>"> |
|
|
|
</div> |
|
|
|
<?php endif; ?> |
|
|
|
<?php if ($hasLogo): ?> |