<tr>
        <td><?php 
echo tep_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
      </tr>
      <tr>
        <td>
          <table width="100%" border="0" cellspacing="0" cellpadding="2">
            <tr>
              <td align="center" class="productinfo_imagebig">
<?php 
//// BEGIN:  Added for Dynamic MoPics v3.000
if (tep_not_null($product_info['products_image'])) {
    $image_lg = mopics_get_imagebase($product_info['products_image'], DIR_WS_IMAGES . DYNAMIC_MOPICS_BIGIMAGES_DIR);
    if ($lg_image_ext = mopics_file_exists($image_lg, DYNAMIC_MOPICS_BIG_IMAGE_TYPES)) {
        $image_size = @getimagesize($image_lg . '.' . $lg_image_ext);
        //BOF SLIMBOX
        $lightlarge = $image_lg . "." . $lg_image_ext;
        ?>
               
					<script type="text/javascript"><!--
                    document.write('<?php 
        echo '<a href="' . tep_href_link($lightlarge) . '" target="_blank" id="image_big" rel="lightbox[group]" title="' . addslashes($product_info['products_name']) . '" >' . tep_image(DIR_WS_IMAGES . DYNAMIC_MOPICS_PRODUCTS_DIR . $product_info['products_image'], addslashes($product_info['products_name']), PRODUCT_IMAGE_WIDTH, PRODUCT_IMAGE_HEIGHT, 'hspace="4" vspace="4"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>';
        ?>
');
    //-->
                    </script>
                    <noscript>
                    <?php 
        echo '<a href="' . tep_href_link($lightlarge) . '" target="_blank" rel="lightbox[group]" title="' . addslashes($product_info['products_name']) . '" >' . tep_image(DIR_WS_IMAGES . DYNAMIC_MOPICS_PRODUCTS_DIR . $product_info['products_image'], addslashes($product_info['products_name']), PRODUCT_IMAGE_WIDTH, PRODUCT_IMAGE_HEIGHT, 'hspace="4" vspace="4"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>';
		           <div align="center">
				<div class="screenshots">
       <?php 
    $row = 0;
    // Loop until all of this product's thumbnails have been found and displayed
    while ($image_ext = mopics_file_exists(str_replace($search, $replace, DYNAMIC_MOPICS_PATTERN))) {
        $row++;
        // Set the thumbnail image for this loop
        $image = str_replace($search, $replace, DYNAMIC_MOPICS_PATTERN) . '.' . $image_ext;
        $html_image = "../" . str_replace(DIR_FS_CATALOG, '', $image);
        // Parse this thumbnail through tep_image for clients with javascript disabled
        $extraImageImage = tep_image($image, stripslashes($products_image_name), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
        // Set large image replacement for the str_replace pattern search/replace
        $replace_lg = array($image_base_lg, $i);
        // Only link to the popup if a larger image exists
        if ($lg_image_ext = mopics_file_exists(str_replace($search, $replace_lg, DYNAMIC_MOPICS_PATTERN))) {
            // Set the large image for this loop
            $image_lg = str_replace($search, $replace_lg, DYNAMIC_MOPICS_PATTERN) . '.' . $lg_image_ext;
            $html_image_lg = HTTP_SERVER . DIR_WS_CATALOG . str_replace(DIR_FS_CATALOG, '', $image_lg);
            // Get the large image's size
            $image_size = @getimagesize($html_images_dir . $image_lg);
            // Set large image's URL for clients with javascript disabled
            $extraImageURL = tep_href_link($image_lg);
            // Parse this thumbnail through tep_image for clients with javascript enabled
            $extraImagePopupImage = tep_image($image, addslashes($products_image_name), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
            // Set the large image's popup width
            $extraImagePopupWidth = (int) $image_size[0] + 5;
            // Set the large image's popup height
            $extraImagePopupHeight = (int) $image_size[1] + 30;
            ?>
<centre>
Example #3
0
        ?>
' class = 'cloud-zoom' id='zoom1' rel="<?php 
        echo $cloud_zoom_params;
        ?>
">
                    <img src="<?php 
        echo DIR_WS_IMAGES . DYNAMIC_MOPICS_PRODUCTS_DIR . $product_info['products_image'];
        ?>
" alt='' title="<?php 
        echo addslashes($product_info['products_name']);
        ?>
" />
                    </a>
                    <?php 
    } else {
        if (mopics_file_exists(DIR_WS_IMAGES . DYNAMIC_MOPICS_PRODUCTS_DIR . $product_info['products_image'])) {
            echo tep_image(DIR_WS_IMAGES . DYNAMIC_MOPICS_PRODUCTS_DIR . $product_info['products_image'], stripslashes($product_info['products_name']), PRODUCT_IMAGE_WIDTH, PRODUCT_IMAGE_HEIGHT);
        } else {
            echo tep_image(DIR_WS_ICONS . 'default_lg.png', TEXT_MISSING_IMAGE, PRODUCT_IMAGE_WIDTH, PRODUCT_IMAGE_HEIGHT);
        }
    }
    ?>
                </td>
                <!-- Image Big Ends -->
              </tr>
              <tr>
        		<td colspan="3"><?php 
    echo tep_draw_separator('pixel_trans.gif', '100%', '10');
    ?>
</td>
      		  </tr>