plugins/gallery/viewimage.php
changeset 22 593180f9eea9
parent 19 08bf8aa2f0ab
child 23 43f9c64a7672
equal deleted inserted replaced
21:0475c9ed1386 22:593180f9eea9
   287   
   287   
   288   echo '<div style="text-align: center; margin: 10px auto; border: 1px solid #DDDDDD; padding: 7px 10px; display: table;">';
   288   echo '<div style="text-align: center; margin: 10px auto; border: 1px solid #DDDDDD; padding: 7px 10px; display: table;">';
   289   $img_url  = makeUrlNS('Special', 'GalleryFetcher/preview/' . $img_id);
   289   $img_url  = makeUrlNS('Special', 'GalleryFetcher/preview/' . $img_id);
   290   $img_href = makeUrlNS('Special', 'GalleryFetcher/full/' . $img_id);
   290   $img_href = makeUrlNS('Special', 'GalleryFetcher/full/' . $img_id);
   291   
   291   
   292   echo '<div snapr:imgid="' . $img_id . '" style="width: 1px;"><img alt="Image preview (640px max width)" src="' . $img_url . '" id="snapr_preview_img" style="border-width: 0; margin-bottom: 5px; display: block;" /></div>';
   292   $iehack = ( strstr(@$_SERVER['HTTP_USER_AGENT'], 'MSIE') ) ? ' style="width: 1px;"' : '';
       
   293   echo '<div snapr:imgid="' . $img_id . '"' . $iehack . '><img alt="Image preview (640px max width)" src="' . $img_url . '" id="snapr_preview_img" style="border-width: 0; margin-bottom: 5px; display: block;" /></div>';
   293   
   294   
   294   echo '<table border="0" width="100%"><tr><td style="text-align: left; width: 24px;">';
   295   echo '<table border="0" width="100%"><tr><td style="text-align: left; width: 24px;">';
   295   
   296   
   296   // Prev button
   297   // Prev button
   297   if ( $prev )
   298   if ( $prev )