Exemple #1
0
 			<div id="content">
 				<div id="main">
 					<div id="images">
 			<?php 
        $firstImage = null;
        $lastImage = null;
        while (next_image()) {
            if (is_null($firstImage)) {
                $lastImage = imageNumber();
                $firstImage = $lastImage;
            } else {
                $lastImage++;
            }
            echo '<div class="image">' . "\n";
            echo '<div class="imagethumb">' . "\n";
            echo '<a href="' . html_encode(getImageLinkURL()) . '" title="' . GetBareImageTitle() . '">' . "\n";
            echo printImageThumb(annotateImage()) . "</a>\n";
            echo "</div>\n";
            echo "</div>\n";
        }
        ?>
 					</div>
 					</div> <!-- main -->
		 			<div class="clearage"></div>
 					<?php 
        if (function_exists('printSlideShowLink')) {
            printSlideShowLink(gettext('View Slideshow'), 'text-align:center;');
        }
        printNofM('Photo', $firstImage, $lastImage, getNumImages());
        ?>
 					</div> <!-- content -->
function annotateImage()
{
    global $_zp_current_image;
    if (!$_zp_current_image->getShow()) {
        $tagit = "\n" . gettext('The image is marked not visible.');
    } else {
        $tagit = '';
    }
    return sprintf(gettext('View the image: %s'), GetBareImageTitle()) . $tagit;
}
Exemple #3
0
 			<div id="content">
 				<div id="main">
 					<div id="images">
 			<?php 
            $firstImage = null;
            $lastImage = null;
            while (next_image(false, $firstPageImages)) {
                if (is_null($firstImage)) {
                    $lastImage = imageNumber();
                    $firstImage = $lastImage;
                } else {
                    $lastImage++;
                }
                echo '<div class="image">' . "\n";
                echo '<div class="imagethumb">' . "\n";
                echo '<a href="' . htmlspecialchars(getImageLinkURL()) . '" title="' . GetBareImageTitle() . '">' . "\n";
                echo printImageThumb(annotateImage()) . "</a>\n";
                echo "</div>\n";
                echo "</div>\n";
            }
            ?>
 					</div>
 					</div> <!-- main -->
		 			<div class="clearage"></div>
 					<?php 
            if (function_exists('printSlideShowLink')) {
                echo "<p align=\"center\">";
                printSlideShowLink(gettext('View Slideshow'));
                echo "</p>";
            }
            printNofM('Photo', $firstImage, $lastImage, getNumImages());