<td class="djc_image"> <?php if ($item->item_image) { ?> <div class="djc_image_in"> <?php if ((int)$this->params->get('image_link_item') == 1) { ?> <?php } else { ?> <a href="<?php echo JRoute::_(DJCatalogHelperRoute::getItemRoute($item->slug, (!isset($this->item) || (empty($this->item->catslug))) ? $item->catslug:$this->item->catslug)); ?>"><img class="img-polaroid" alt="<?php echo $item->image_caption; ?>" src="<?php echo DJCatalog2ImageHelper::getImageUrl($item->image_fullpath,'small'); ?>" /></a> <?php } ?> </div> <?php } ?> </td> There is such a code, a link which leads to a detailed view of the ad. How can I make this page open in a modal window? (in a new window it turns out to be done).