Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@davefreiman
Created March 22, 2015 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davefreiman/6d835d67d3aeb4f9e920 to your computer and use it in GitHub Desktop.
Save davefreiman/6d835d67d3aeb4f9e920 to your computer and use it in GitHub Desktop.
<?php
$_product = $this->getProduct();
$_helper = $this->helper('catalog/output');
?>
...
<?php foreach ($this->getGalleryImages() as $_image): ?>
<li>
<a href="#" title="<?php echo $this->escapeHtml($_image->getLabel()) ?>">
<img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>" width="56" height="56" alt="<?php echo $this->escapeHtml($_image->getLabel()) ?>" />
</a>
</li>
<?php endforeach; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment