Current Path : /var/www/html/clients/kampol.e-nk.ru/OLD/components/com_easygallery/template/ |
Current File : /var/www/html/clients/kampol.e-nk.ru/OLD/components/com_easygallery/template/photos.tpl |
<eg:tmpl name="list-photos"> <div class="photos"> <eg:link src="list-photo" /> </div> </eg:tmpl> <eg:tmpl name="list-photo"> <a href="{VIEW_IMAGE_URL}#top"><img src="{IMAGE_SRC}" alt="" border="0" style="border:1px solid black"></a> </eg:tmpl> <eg:tmpl name="view-header"> </eg:tmpl> <eg:tmpl name="view-photo"> <div class="view-photo" style="height:340px"> <img src="{IMAGE_SRC}" id="eg_photo" border="0" style="border:1px solid black"><br /> </div> <br /> <table class="adminform" width="100%" cellpadding="0" cellspacing="0"> <tr> <td class="sectiontableheader">{IMAGE_NAME}</td> </tr> <tr> <td>{IMAGE_DESCRIPTION}</td> </tr> </table> <script type="text/javascript"> <!-- function scaleImage() { var image = document.getElementById('eg_photo'); o_width = image.width; o_height = image.height; if(o_width > {MAX_WIDTH} || o_height > {MAX_HEIGHT}){ //do resize perc_w = {MAX_WIDTH} / o_width; perc_h = {MAX_HEIGHT} / o_height; if(perc_h > perc_w){ width = {MAX_WIDTH}; height = Math.round(o_height * perc_w); } else { height = {MAX_HEIGHT}; width = Math.round(o_width * perc_h); } image.height = height; image.width = width; var warning = document.createElement('div'); warning.className = 'small'; warning.style.width = width + 'px'; warning.innerHTML = '{EG_PHOTO_THIS} ' + o_width + ' * ' + o_height + ' {EG_PHOTO_PIXELS}' + (image.fileSize ? ' {EG_PHOTO_AND} ' + Math.floor(image.fileSize/1024) + 'KB' : '') + ' {EG_PHOTO_LARGE}. {EG_PHOTO_CLICK} <a href="' + image.src + '" target="_blank">{EG_PHOTO_HERE}</a> {EG_PHOTO_TO_VIEW}'; image.parentNode.appendChild(warning); } } setTimeout('scaleImage()', 1000); //--> </script> </eg:tmpl>