Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. <?php
  2. $_product = $this->getProduct();
  3. $_helper = $this->helper('catalog/output');
  4. ?>
  5. <div class="product-image product-image-zoom">
  6. <div class="product-image-gallery">
  7. <img id="image-main"
  8. class="gallery-image visible"
  9. src="<?php echo $this->helper('catalog/image')->init($_product, 'image') ?>"
  10. alt="<?php echo $this->escapeHtml($this->getImageLabel()) ?>"
  11. title="<?php echo $this->escapeHtml($this->getImageLabel()); ?>" />
  12.  
  13. <?php $i=0; foreach ($this->getGalleryImages() as $_image): ?>
  14. <?php if ($this->isGalleryImageVisible($_image)): ?>
  15. <img id="image-<?php echo $i; ?>"
  16. class="gallery-image"
  17. src="<?php echo $this->getGalleryImageUrl($_image); ?>"
  18. data-zoom-image="<?php echo $this->getGalleryImageUrl($_image); ?>" />
  19. <?php endif; ?>
  20. <?php $i++; endforeach; ?>
  21. </div>
  22. </div>
  23.  
  24. <?php if (count($this->getGalleryImages()) > 0): ?>
  25. <div class="more-views">
  26. <h2><?php echo $this->__('More Views') ?></h2>
  27. <ul class="product-image-thumbs">
  28. <?php $i=0; foreach ($this->getGalleryImages() as $_image): ?>
  29. <?php if ($this->isGalleryImageVisible($_image)): ?>
  30. <li>
  31. <a class="thumb-link" href="#" title="<?php echo $this->escapeHtml($_image->getLabel()) ?>" data-image-index="<?php echo $i; ?>">
  32. <img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(75); ?>"
  33. width="75" height="75" alt="<?php echo $this->escapeHtml($_image->getLabel()) ?>" />
  34. </a>
  35. </li>
  36. <?php endif; ?>
  37. <?php $i++; endforeach; ?>
  38. </ul>
  39. </div>
  40. <?php endif; ?>
  41.  
  42. <?php echo $this->getChildHtml('after'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement