Skip to content

Commit

Permalink
fix media.phtml to remove duplicate of selected base image
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmann committed Nov 8, 2012
1 parent 7ea2e0f commit a29f8d5
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@
$_product = $this->getProduct();
$_helper = $this->helper('catalog/output');
?>
<?php
$_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize().'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
echo $_helper->productAttribute($_product, $_img, 'image');
?>
<?php if (count($this->getGalleryImages()) > 1): ?>
<?php foreach ($this->getGalleryImages() as $_image): ?>
<img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(); ?>" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>" />
Expand Down

0 comments on commit a29f8d5

Please sign in to comment.