plugins/gallery/viewimage.php
changeset 2 88c954d2846c
parent 0 7caf561c50ee
child 9 ebd7003e73c6
equal deleted inserted replaced
1:94af07c8f2f3 2:88c954d2846c
   198   $img_url  = makeUrlNS('Special', 'GalleryFetcher/preview/' . $img_id);
   198   $img_url  = makeUrlNS('Special', 'GalleryFetcher/preview/' . $img_id);
   199   $img_href = makeUrlNS('Special', 'GalleryFetcher/full/' . $img_id);
   199   $img_href = makeUrlNS('Special', 'GalleryFetcher/full/' . $img_id);
   200   
   200   
   201   if ( $perms->get_permissions('gal_full_res') )
   201   if ( $perms->get_permissions('gal_full_res') )
   202   {
   202   {
   203     echo '<a href="' . $img_href . '" title="Click to view this image at full resolution, right click to save image" onclick="window.open(this.href, \'\', \'toolbar=no,address=no,menus=no,status=no\'); return false;">';
   203     echo '<a href="' . $img_href . '" title="Click to view this image at full resolution, right click to save image" onclick="window.open(this.href, \'\', \'toolbar=no,address=no,menus=no,status=no,scrollbars=yes\'); return false;">';
   204   }
   204   }
   205   
   205   
   206   echo '<img alt="Image preview (640px max width)" src="' . $img_url . '" style="border-width: 0; margin-bottom: 5px; display: block;" />';
   206   echo '<img alt="Image preview (640px max width)" src="' . $img_url . '" style="border-width: 0; margin-bottom: 5px; display: block;" />';
   207   
   207   
   208   if ( $perms->get_permissions('gal_full_res') )
   208   if ( $perms->get_permissions('gal_full_res') )