I have spent a couple hours looking through all the files that might be related.
I found this in tpl_modules_main_product_image:
Code:
if (ZEN_LIGHTBOX_STATUS == 'true') {
echo '<script language="javascript" type="text/javascript"><!--
document.write(\'<a href="' . zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" oncontextmenu="return false" rel="lightbox[gallery]" title="' . addslashes($zen_lightbox_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>';
} else {
echo '<script language="javascript" type="text/javascript"><!--
document.write(\'<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')" oncontextmenu="return false">' . 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>';
But this just generates the 'larger image' link that shows a lightbox with the large image. What I need to edit is the <IMG> tag that lightbox uses to show the large image.
Here is some sample source code:
Code:
<!-- bof Zen Lightbox v1.4 aclarke 2007-09-15 -->
<script language="javascript" type="text/javascript"><!--
document.write('<a href="images/floral/a_bucket_of_sun.jpg" oncontextmenu="return false" rel="lightbox[gallery]" title="A Bucket of Sun"><img src="bmz_cache/e/ed5a7180c0d95ab16982d572a69bc0cd.image.93x120.jpg" alt="A Bucket of Sun" title=" A Bucket of Sun " width="93" height="120" /><br /><span class="imgLink">larger image</span></a>')//--></script><!-- eof Zen Lightbox v1.4 aclarke 2007-09-15 -->
<noscript>
<a href="http://throughmylensphotography.com/index.php?main_page=popup_image&pID=1" target="_blank"><img src="bmz_cache/e/ed5a7180c0d95ab16982d572a69bc0cd.image.93x120.jpg" alt="A Bucket of Sun" title=" A Bucket of Sun " width="93" height="120" /><br /><span class="imgLink">larger image</span></a></noscript>
</div><!--eof Main Product Image-->
The highlighted code is a link to the large image. I need this image to have the
Code:
contextmenu="return false"
property.
This is the CSS tree for the element that holds the large image:
Code:
html > body #productinfoBody > div #lightbox > div #outerImageContainer > div #imageContainer > div #hoverNav
Can I add the
Code:
contextmenu="return false"
to that CSS element?
All I want to do is disable the right-click menu on the large images.
Bookmarks