ploto

ploto Git Source Tree


Root/plog-content/themes/lucid/search.php

<?php plogger_get_header(); ?>

		<div id="thumbnail-container">
<?php if (plogger_has_pictures()) : ?>
			<div id="overlay"> </div>
			<ul class="slides">
<?php while(plogger_has_pictures()) : plogger_load_picture();
	// Display thumbnails within album
	// Generate XHTML with thumbnail and link to picture view.
	// Find thumbnail width
	$thumb_info = plogger_get_thumbnail_info();
	$thumb_width = $thumb_info['width']; // The width of the image. It is integer data type.
	$thumb_height = $thumb_info['height']; // The height of the image. It is an integer data type.
	$li_width = $thumb_width + 10; // Account for padding/border width
	$img_id = "thumb-".plogger_get_picture_id();
	$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.'" height="'.$thumb_height.'" title="'.plogger_get_picture_caption().'" alt="'.plogger_get_picture_caption().'" />';
?>
				<li class="thumbnail" style="width: <?php echo $li_width; ?>px;">
					<a href="<?php echo plogger_get_picture_url(); ?>"><?php echo $imgtag; ?></a>
					<?php echo plogger_download_checkbox(plogger_get_picture_id()); ?>
					<div class="tag"><?php echo plogger_get_picture_caption(); ?></div>
				</li><!-- /thumbnail -->
<?php endwhile; ?>
			</ul><!-- /slides -->
<?php else : ?>
			<div id="no-pictures-msg">
				<h2><?php echo plog_tr('Search Results') ?></h2>
				<p><?php echo plog_tr('Sorry, but there are no images that matched your search terms.') ?></p>
			</div><!-- /no-pictures-msg -->
<?php endif; ?>
		</div><!-- /thumbnail-container -->

<?php plogger_get_footer(); ?>

Archive Download this file

Branches

Number of commits:
Page rendered in 0.06586s using 11 queries.