Changeset 557 for trunk/plog-content/themes/default/album.php
- Timestamp:
- 07/14/08 22:15:37 (4 years ago)
- File:
-
- 1 edited
-
trunk/plog-content/themes/default/album.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plog-content/themes/default/album.php
r552 r557 1 <?php 2 plogger_get_header(); 3 print '<div id="thumbnail_container">'; 4 if (plogger_has_pictures()) { 5 print '<div id="overlay"> </div>'; 6 print '<ul class="slides">'; 7 8 while(plogger_has_pictures()) { 9 10 plogger_load_picture(); 1 <?php plogger_get_header(); ?> 11 2 3 <div id="thumbnail_container"> 4 5 <?php if (plogger_has_pictures()) : ?> 6 <div id="overlay"> </div> 7 <ul class="slides"> 8 <?php while(plogger_has_pictures()) : ?> 9 <?php plogger_load_picture(); 12 10 // display thumbnails within album 13 11 // generate XHTML with thumbnail and link to picture view. 12 // find thumbnail width 13 $thumb_info = plogger_get_thumbnail_info(); 14 $thumb_width = $thumb_info[0]; // The width of the image. It is integer data type. 15 $thumb_height = $thumb_info[1]; // The height of the image. It is an integer data type. 16 $div_width = $thumb_width + 20; // account for padding/border width 17 $div_height = $thumb_height + 65; // account for padding/border width 18 $picture_caption = plogger_get_picture_caption(); 19 $img_id = "thumb-".plogger_get_picture_id(); 20 $imgtag = '<img id="' . $img_id . '" onmouseout="document.getElementById(\'overlay\').style.visibility = \'hidden\';" onmouseover="display_overlay(\''.$img_id.'\', \''.plogger_picture_comment_count().'\')" class="photos" src="'.plogger_get_picture_thumb().'" width="'.$thumb_width.'px" height="'.$thumb_height.'px" title="'.$picture_caption.'" alt="'.$picture_caption.'" />'; 21 ?> 22 <li class="thumbnail"> 23 <div style="width: <?php echo $div_width; ?>px; height: <?php echo $div_height; ?>px;" class="tag"> 24 <a href="<?php echo plogger_get_picture_url(); ?>"><?php echo $imgtag; ?></a><br /> 25 <span><?php echo $picture_caption; ?> <?php echo plogger_download_checkbox(plogger_get_picture_id()); ?></span> 26 </div><!-- /tag --> 27 </li><!-- /thumbnail --> 28 <?php endwhile; ?> 29 </ul><!-- /slides --> 30 <?php else : ?> 31 <p id="no-pictures-msg"><?php echo plog_tr('There are no pictures in this album')?>.</p> 14 32 15 $capt = plogger_get_picture_caption(); 16 $img_id = "thumb-".plogger_get_picture_id(); 17 $imgtag = '<img id="' . $img_id 18 . '" onmouseout="document.getElementById(\'overlay\').style.visibility = \'hidden\';" 19 onmouseover="display_overlay(\''.$img_id.'\', \''.plogger_picture_comment_count().'\')" class="photos" 20 src="'.plogger_get_picture_thumb().'" title="'.$capt.'" alt="'.$capt.'" />'; 21 22 print '<li class="thumbnail"><div class="tag"><a href="' . plogger_get_picture_url() . '">' . $imgtag . "</a><br />"; 23 24 print plogger_download_checkbox(plogger_get_picture_id()); 25 26 print '</div></li>'; 27 } 28 29 30 print '</ul>'; 31 } 32 else{ 33 print '<div id="no-pictures-msg">' . plog_tr('There are no pictures in this album') . '.</div>'; 34 } 33 <?php endif; ?> 34 </div><!-- /thumbnail container --> 35 35 36 print '</div>'; 37 plogger_get_footer(); 38 ?> 36 <?php plogger_get_footer(); ?>
Note: See TracChangeset
for help on using the changeset viewer.
