Commit 4a13b493e058f10726df7f37d468c5a042572f13

Authored by Administrator
1 parent 55ea55f2

big commti

Showing 2 changed files with 17 additions and 16 deletions   Show diff stats
common/config/main.php
... ... @@ -182,6 +182,12 @@ return [
182 182 'height' => 110,
183 183 ],
184 184 ],
  185 + 'product_show'=>[
  186 + 'resize' => [
  187 + 'width' => 342,
  188 + 'height' => 350,
  189 + ],
  190 + ]
185 191 ]
186 192 ],
187 193 'basket' => [
... ...
frontend/views/catalog/product.php
... ... @@ -45,28 +45,23 @@ FlipclockAsset::register($this);
45 45 <div class="fotorama" data-allowfullscreen="true" data-nav="thumbs"
46 46 data-width="342"
47 47 data-height="350">
48   -
  48 +
49 49 <?php foreach($product->images as $image) : ?>
50 50 <a href="<?= $image->imageUrl ?>">
51   - <?= ArtboxImageHelper::getImage($image->imageUrl, 'product_trumb',[
52   - 'alt'=>'test',
53   - 'title' => 'test2'
54   - ]) ?>
  51 + <?= ArtboxImageHelper::getImage($image->imageUrl, 'product_trumb') ?>
55 52 </a>
56 53 <?php endforeach ?>
57 54 </div>
58 55 <?php else : ?>
59   - <div class="fotorama" data-allowfullscreen="true" data-nav="thumbs"
60   - data-width="342"
61   - data-height="350">
62   -
63   - <a href="<?= $product->imageUrl ?>">
64   - <?= ArtboxImageHelper::getImage($product->imageUrl, 'product_trumb',[
65   - 'alt'=>'test',
66   - 'title' => 'test2'
67   - ]) ?>
68   - </a>
69   -
  56 + <div class="fotorama" data-allowfullscreen="true" data-nav="thumbs">
  57 +
  58 +
  59 + <div><?= ArtboxImageHelper::getImage($product->imageUrl, 'product_show',[
  60 + 'alt'=>$product->name,
  61 + 'title' => $product->name
  62 + ]) ?></div>
  63 +
  64 +
70 65 </div>
71 66 <?php endif ?>
72 67 </div>
... ...