示例#1
0
                $lastImage = imageNumber();
                $firstImage = $lastImage;
            } else {
                $lastImage++;
            }
            ?>
									<div class="image">
										<div class="imagethumb">
											<?php 
            if ($map) {
                $coord = getGeoCoord($_zp_current_image);
                if ($coord) {
                    $points[] = $coord;
                }
            }
            $annotate = annotateImage();
            echo '<a href="' . html_encode(getImageURL()) . '"';
            echo " title=\"" . $annotate . "\">\n";
            printImageThumb($annotate);
            echo "</a>";
            printAddToFavorites($_zp_current_image, '', gettext('Remove'));
            ?>
										</div>
									</div>
									<?php 
        }
        echo '<div class="clearage"></div>';
        ?>
							</div><!-- images -->
						</div> <!-- main -->
						<div class="clearage"></div>
示例#2
0
    function theme_content($map)
    {
        global $_zp_current_image, $points;
        ?>
		<!-- Colorbox section -->
		<div id="content">
			<div id="main">
				<div id="images">
					<?php 
        $points = array();
        $firstImage = null;
        $lastImage = null;
        while (next_image()) {
            // Colorbox does not do video
            if (is_null($firstImage)) {
                $lastImage = imageNumber();
                $firstImage = $lastImage;
            } else {
                $lastImage++;
            }
            ?>
						<div class="image">
							<div class="imagethumb">
								<?php 
            if ($map) {
                $coord = getGeoCoord($_zp_current_image);
                if ($coord) {
                    $points[] = $coord;
                }
            }
            $annotate = annotateImage();
            if (isImagePhoto()) {
                // colorbox is only for real images
                echo '<a href="' . html_encode(getDefaultSizedImage()) . '" class="thickbox"';
            } else {
                echo '<a href="' . html_encode(getImageURL()) . '"';
            }
            echo " title=\"" . $annotate . "\">\n";
            printImageThumb($annotate);
            echo "</a>";
            ?>
							</div>
						</div>
						<?php 
        }
        echo '<div class="clearage"></div>';
        if (!empty($points) && $map) {
            function map_callback($map)
            {
                global $points;
                foreach ($points as $coord) {
                    addGeoCoord($map, $coord);
                }
            }
            ?>
						<div id="map_link">
						<?php 
            printGoogleMap(NULL, NULL, NULL, 'album_page', 'map_callback');
            ?>
						</div>
						<?php 
        }
        @call_user_func('printSlideShowLink', NULL, 'text-align:center;');
        ?>
				</div><!-- images -->
			<?php 
        @call_user_func('printRating');
        ?>
			</div><!-- main -->
			<div class="clearage"></div>
		<?php 
        if (isset($firstImage)) {
            printNofM('Photo', $firstImage, $lastImage, getNumImages());
        }
        ?>
		</div><!-- content -->
		<?php 
    }
示例#3
0
 				<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 -->
	 		<?php