@mc12345678
Thank you for your last comment in colorbox thread, I appreciate, and agree with the time/benefits.
That said I am going to follow both roads (I guess I have too much time!), colorbox customization, and this modal one.
I have done some progress by modifying the includes/modules/MY_TEMPLATE/additional_images.php
Changed these two lines:
PHP Code:
$large_link = zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large);
$script_link = '<script 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 />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
To:
PHP Code:
$large_link = zen_href_link('<div type="button" class="btn btn-lg fz-product-image" data-toggle="modal" data-target="#fz-modal-1">', 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large . '</div>');
$large_link = zen_href_link( 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large );
$script_link = ($flag_display_large ? '<div type="button" class="btn btn-lg fz-product-image" data-toggle="modal" data-target="#fz-modal-1">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</div>' : $thumb_slashes);
And adding the modal code to includes/templates/MY_TEMPLATE/tpl_modules_additional_images.php.
Doing that it displays the images, and when clicked the modal opens, obviously there are problems:
- no gallery effect (next/previous, and main image)
Which as of now will let as it is, and try to solve the following, being more relevant:
- both (I am testing with two additional images) images display same image, precisely image_02_LRG
My guess is I have to change the code in the modal where it calls the content (image)
PHP Code:
<div class="modal-body">
<?php
echo zen_image($products_image_large, $products_name, LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT);
?>
</div>
Bookmarks