Commit 9114c0a4ea8e4f9de8864a00e8436e054aa97cff

Authored by Administrator
1 parent 4a13b493

big commti

frontend/assets/FotoramaAsset.php
... ... @@ -17,10 +17,10 @@ class FotoramaAsset extends AssetBundle
17 17 {
18 18 public $sourcePath = '@bower';
19 19 public $css = [
20   - 'fotorama/fotorama.css'
  20 + 'lightbox2/dist/css/lightbox.min.css'
21 21 ];
22 22 public $js = [
23   - 'fotorama/fotorama.js'
  23 + 'lightbox2/dist/js/lightbox.min.js'
24 24 ];
25 25 public $jsOptions = array(
26 26 'position' => \yii\web\View::POS_END
... ...
frontend/views/catalog/product.php
... ... @@ -48,21 +48,19 @@ FlipclockAsset::register($this);
48 48  
49 49 <?php foreach($product->images as $image) : ?>
50 50 <a href="<?= $image->imageUrl ?>">
51   - <?= ArtboxImageHelper::getImage($image->imageUrl, 'product_trumb') ?>
  51 + <?= ArtboxImageHelper::getImage($image->imageUrl, 'product_show') ?>
52 52 </a>
53 53 <?php endforeach ?>
54 54 </div>
55 55 <?php else : ?>
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   -
  56 + <a href="<?= $product->imageUrl ?>" data-lightbox="image-1" data-title="<?= $product->name;?>">
  57 + <?= ArtboxImageHelper::getImage($product->imageUrl, 'product_show',[
  58 + 'data-full'=>"$product->imageUrl",
  59 + 'alt'=>$product->name,
  60 + 'title' => $product->name
  61 + ]) ?>
  62 + </a>
64 63  
65   - </div>
66 64 <?php endif ?>
67 65 </div>
68 66  
... ...