Guest User

Untitled

a guest
Mar 17th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. <div class="images-container">
  2. {block name='product_cover'}
  3. <div class="product-cover">
  4. <img id="{$product.id}" class="js-qv-product-cover" src="{$product.cover.bySize.large_default.url}" alt="{$product.cover.legend}" title="{$product.cover.legend}" style="width:100%;" itemprop="image">
  5. <div class="layer hidden-sm-down" data-toggle="modal" data-target="#product-modal">
  6. <i class="material-icons zoom-in">&#xE8FF;</i>
  7. </div>
  8. </div>
  9. {/block}
  10.  
  11. {block name='product_images'}
  12. <div class="js-qv-mask mask">
  13. <ul class="product-images js-qv-product-images">
  14. {foreach from=$product.images item=image}
  15. <li class="thumb-container">
  16. <img
  17. class="thumb js-thumb {if $image.id_image == $product.cover.id_image} selected {/if}"
  18. data-image-medium-src="{$image.bySize.medium_default.url}"
  19. data-image-large-src="{$image.bySize.large_default.url}"
  20. src="{$image.bySize.home_default.url}"
  21. alt="{$image.legend}"
  22. title="{$image.legend}"
  23. width="100"
  24. itemprop="image"
  25. >
  26. </li>
  27. {/foreach}
  28. </ul>
  29. </div>
  30. {/block}
  31. </div>
  32. {hook h='displayAfterProductThumbs'}
  33.  
  34. $('.product-cover').find('.js-qv-product-cover').each(function () {
  35. $(this).elevateZoom({
  36. zoomType: "lens",
  37. lensShape: "round",
  38. lensSize: 200
  39. }
  40. );
  41. });
  42.  
  43. $(".thumb-container").click(function(){
  44. console.log("Click en la minuatura");
  45. $('.product-cover').find('.js-qv-product-cover').each(function () {
  46. $(this).elevateZoom({
  47. zoomType: "lens",
  48. lensShape: "round",
  49. lensSize: 200
  50. }
  51. );
  52. });
  53. });
Add Comment
Please, Sign In to add comment