Commit 9114c0a4ea8e4f9de8864a00e8436e054aa97cff
1 parent
4a13b493
big commti
Showing
2 changed files
with
10 additions
and
12 deletions
Show diff stats
frontend/assets/FotoramaAsset.php
@@ -17,10 +17,10 @@ class FotoramaAsset extends AssetBundle | @@ -17,10 +17,10 @@ class FotoramaAsset extends AssetBundle | ||
17 | { | 17 | { |
18 | public $sourcePath = '@bower'; | 18 | public $sourcePath = '@bower'; |
19 | public $css = [ | 19 | public $css = [ |
20 | - 'fotorama/fotorama.css' | 20 | + 'lightbox2/dist/css/lightbox.min.css' |
21 | ]; | 21 | ]; |
22 | public $js = [ | 22 | public $js = [ |
23 | - 'fotorama/fotorama.js' | 23 | + 'lightbox2/dist/js/lightbox.min.js' |
24 | ]; | 24 | ]; |
25 | public $jsOptions = array( | 25 | public $jsOptions = array( |
26 | 'position' => \yii\web\View::POS_END | 26 | 'position' => \yii\web\View::POS_END |
frontend/views/catalog/product.php
@@ -48,21 +48,19 @@ FlipclockAsset::register($this); | @@ -48,21 +48,19 @@ FlipclockAsset::register($this); | ||
48 | 48 | ||
49 | <?php foreach($product->images as $image) : ?> | 49 | <?php foreach($product->images as $image) : ?> |
50 | <a href="<?= $image->imageUrl ?>"> | 50 | <a href="<?= $image->imageUrl ?>"> |
51 | - <?= ArtboxImageHelper::getImage($image->imageUrl, 'product_trumb') ?> | 51 | + <?= ArtboxImageHelper::getImage($image->imageUrl, 'product_show') ?> |
52 | </a> | 52 | </a> |
53 | <?php endforeach ?> | 53 | <?php endforeach ?> |
54 | </div> | 54 | </div> |
55 | <?php else : ?> | 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 | <?php endif ?> | 64 | <?php endif ?> |
67 | </div> | 65 | </div> |
68 | 66 |