Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $_product = $this->getProduct();
- $_helper = $this->helper('catalog/output');
- $lightboxPrPage = themeOptions('lightboxPrPage');
- $zoomtype = themeOptions('zoomtype');
- $arr = storeImages ("media");
- $arrZoom = storeImages ("mediaColudZoom");
- $arrMedia = storeImages ("moreViews");
- ?>
- <div class="image-zoom-indent <?php if ($zoomtype == 1 ): ?>zoom-container<?php endif; ?>">
- <?php if ($_product->getImage() != 'no_selection' && $_product->getImage()): ?>
- <p class="product-image product-image-zoom" <?php if ($zoomtype == 2 ): ?> style="width:<?php echo $arr ["width"]; ?>px; height:<?php echo $arr ["height"]; ?>px;"<?php endif; ?>>
- <?php if ($zoomtype == 1 ): ?><a id="zoom-target" href="<?php echo $this->helper('catalog/image')->init($_product, 'image') ?>" title=""><?php endif; ?>
- <?php
- if ($zoomtype == 1 ):
- $_img = '<img class="zoom-image" width="'.$arr ["width"].'" height="'.$arr ["height"].'" id="image" src="'.$this->helper('catalog/image')->init($_product, 'image').'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
- else:
- $_img = '<img id="image" src="'.$this->helper('catalog/image')->init($_product, 'image').'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
- endif;
- echo $_helper->productAttribute($_product, $_img, 'image');
- ?>
- <?php if ($zoomtype == 1 ): ?></a><?php endif; ?>
- </p>
- <?php if ($zoomtype == 2 ): ?>
- <p class="zoom-notice" id="track_hint"><?php echo $this->__('Double click on above image to view full picture') ?></p>
- <div class="zoom">
- <a href="#" id="zoom_out" class="btn-zoom-out"> </a>
- <div id="track">
- <div id="handle"></div>
- </div>
- <a href="#" id="zoom_in" class="btn-zoom-in"> </a>
- </div>
- <script type="text/javascript">
- //<![CDATA[
- Event.observe(window, 'load', function() {
- product_zoom = new Product.Zoom('image', 'track', 'handle', 'zoom_in', 'zoom_out', 'track_hint');
- });
- //]]>
- </script>
- <?php endif; ?>
- <?php else: ?>
- <p class="product-image">
- <?php
- $_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(265).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
- echo $_helper->productAttribute($_product, $_img, 'image');
- ?>
- </p>
- <?php endif; ?>
- <?php if (count($this->getGalleryImages()) > 0): ?>
- <div class="more-views">
- <h2><?php echo $this->__('More Views') ?></h2>
- <ul class="cf zoom-gallery">
- <?php
- foreach ($this->getGalleryImages() as $_image): ?>
- <li>
- <a class="zoom-thumbnail" style="width:<?php echo $arrMedia ["width"]; ?>px;" class="cloud-zoom-gallery" href="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize($arr ["Owidth"], $arr ["Oheight"]); ?>" target="_popUp" data-easyzoom-source="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize($arr ["Owidth"], $arr ["Oheight"]); ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize($arrMedia ["width"], $arrMedia ["height"]); ?>" width="<?php echo $arrMedia ["width"]; ?>" height="<?php echo $arrMedia ["height"]; ?>" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a>
- </li>
- <?php endforeach; ?>
- </ul>
- </div>
- <?php endif; ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement