} else {
        $rel = 'lightbox';
    }
    ?>
<a href="<?php 
    echo zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT);
    ?>
" rel="<?php 
    echo $rel;
    ?>
" title="<?php 
    echo addslashes($products_name);
    ?>
">
	<img src="<?php 
    echo zen_lightbox($products_image_large, addslashes($products_name), 368, 368);
    ?>
"/>
</a>

<?php 
} else {
    // eof Zen Lightbox 2008-12-15 aclarke
    ?>
<script language="javascript" type="text/javascript"><!--
document.write('<?php 
    echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image(addslashes($products_image_medium), addslashes($products_name), 370, 370) . '<br />' . '</a>';
    ?>
');
//--></script>
<?php 
?>
 
<div id="productMainImage" class="centeredContent back">
<?php 
// bof Zen Lightbox 2008-12-15 aclarke
if (ZEN_LIGHTBOX_STATUS == 'true') {
    if (ZEN_LIGHTBOX_GALLERY_MODE == 'true' && ZEN_LIGHTBOX_GALLERY_MAIN_IMAGE == 'true') {
        $rel = 'lightbox-g';
    } else {
        $rel = 'lightbox';
    }
    ?>

<script language="javascript" type="text/javascript"><!--
document.write('<?php 
    echo '<a rel=' . $rel . ' href="' . zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '">' . zen_image($products_image_medium, addslashes($products_name), LARGE_IMAGE_MAX_WIDTH, LARGE_IMAGE_MAX_HEIGHT) . '</a>';
    ?>
');
//--></script>
<?php 
} else {
    // eof Zen Lightbox 2008-12-15 aclarke
    ?>
<script language="javascript" type="text/javascript"><!--
document.write('<?php 
    echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image(addslashes($products_image_medium), addslashes($products_name), LARGE_IMAGE_MAX_WIDTH, LARGE_IMAGE_MAX_HEIGHT) . '</a>';
    ?>
');
//--></script>
<?php 
    // bof Zen Lightbox 2008-12-15 aclarke
Ejemplo n.º 3
0
 if (function_exists('handle_image')) {
     // remove additional single quotes from image attributes (important!)
     $thumb_slashes = preg_replace("/([^\\\\])'/", '$1\\\'', $thumb_slashes);
 }
 // eof Zen Lightbox 2008-12-11 aclarke
 $thumb_regular = zen_image($base_image, $products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
 $large_link = zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large);
 // Link Preparation:
 // bof Zen Lightbox 2008-12-11 aclarke
 if (ZEN_LIGHTBOX_STATUS == 'true') {
     if (ZEN_LIGHTBOX_GALLERY_MODE == 'true') {
         $rel = 'lightbox-g';
     } else {
         $rel = 'lightbox';
     }
     $script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="' . zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="' . $rel . '" title="' . addslashes($products_name) . '">' . $thumb_slashes . '<br />' . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
 } else {
     // eof Zen Lightbox 2008-12-11 aclarke
     $script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="javascript:popupWindow(\\\'' . str_replace($products_image_large, urlencode(addslashes($products_image_large)), $large_link) . '\\\')">' . $thumb_slashes . '<br />' . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
     // bof Zen Lightbox 2008-12-11 aclarke
 }
 // eof Zen Lightbox 2008-12-11 aclarke
 $noscript_link = '<noscript>' . ($flag_display_large ? '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large) . '" target="_blank">' . $thumb_regular . '<br /><span class="imgLinkAdditional">' . '</span></a>' : $thumb_regular) . '</noscript>';
 // $alternate_link = '<a href="' . $products_image_large . '" onclick="javascript:popupWindow(\''. $large_link . '\') return false;" title="' . $products_name . '" target="_blank">' . $thumb_regular . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>';
 $link = $script_link . "\n      " . $noscript_link;
 // $link = $alternate_link;
 // List Box array generation:
 $list_box_contents[$row][$col] = array('params' => 'class="additionalImages centeredContent col-xs-4 col-sm-4 col-md-3"', 'text' => "\n      " . $link);
 $col++;
 if ($col > IMAGES_AUTO_ADDED - 1) {
     $col = 0;
 */
require DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE);
?>
<div id="productMainImage" class="centeredContent">
<?php 
// bof Zen Lightbox 2008-12-15 aclarke
if (ZEN_LIGHTBOX_STATUS == 'true') {
    if (ZEN_LIGHTBOX_GALLERY_MODE == 'true' && ZEN_LIGHTBOX_GALLERY_MAIN_IMAGE == 'true') {
        $rel = 'lightbox-g';
    } else {
        $rel = 'lightbox';
    }
    ?>
<script language="javascript" type="text/javascript"><!--
document.write('<?php 
    echo '<a href="' . zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="' . $rel . '" title="' . addslashes($products_name) . '">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>';
    ?>
');
//--></script>
<?php 
} else {
    // eof Zen Lightbox 2008-12-15 aclarke
    ?>
<script language="javascript" type="text/javascript"><!--
document.write('<?php 
    echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image(addslashes($products_image_medium), addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>';
    ?>
');
//--></script>
<?php 
    // bof Zen Lightbox 2008-12-15 aclarke