Exemple #1
0
    function theme_content($map)
    {
        global $_zp_current_image, $points;
        ?>
		<!-- Colorbox section -->
		<div id="images">
			<?php 
        $points = array();
        while (next_image()) {
            if ($map) {
                $coord = getGeoCoord($_zp_current_image);
                if ($coord) {
                    $points[] = $coord;
                }
            }
            ?>
				<div class="image">
					<div class="imagethumb">
						<?php 
            if (isImagePhoto()) {
                // colorbox is only for real images
                $link = html_encode(getDefaultSizedImage()) . '" class="thickbox"';
            } else {
                $link = html_encode(getImageURL()) . '"';
            }
            ?>
						<a href="<?php 
            echo $link;
            ?>
" title="<?php 
            echo getBareImageTitle();
            ?>
">
							<?php 
            printImageThumb(getImageTitle());
            ?>
						</a></div>
				</div>
				<?php 
        }
        ?>
		</div>
		<br class="clearall" />
		<?php 
        @call_user_func('printSlideShowLink');
    }
Exemple #2
0
    function theme_content($map)
    {
        global $_zp_current_image, $points;
        ?>
		<!-- Image page section -->
		<div id="images">
			<?php 
        $points = array();
        while (next_image()) {
            if ($map) {
                $coord = getGeoCoord($_zp_current_image);
                if ($coord) {
                    $points[] = $coord;
                }
            }
            ?>
				<div class="image">
					<div class="imagethumb"><a href="<?php 
            echo html_encode(getImageURL());
            ?>
" title="<?php 
            echo html_encode(getBareImageTitle());
            ?>
"><?php 
            printImageThumb(getImageTitle());
            ?>
</a></div>
				</div>
				<?php 
        }
        ?>
		</div>
		<br class="clearall" />
		<?php 
        @call_user_func('printSlideShowLink');
    }
Exemple #3
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 
    }
Exemple #4
0
/**
 * Gathers the map data for an album
 * @param $album		album object
 * @param $map			google map object
 */
function getAlbumGeodata($album, $map)
{
    $result = false;
    $images = $album->getImages(0, 0, null, null, false);
    foreach ($images as $an_image) {
        $image = newImage($album, $an_image);
        $coord = getGeoCoord($image);
        if ($coord) {
            $result = true;
            // at least one image has geodata
            addGeoCoord($map, $coord);
        }
    }
    return $result;
}
Exemple #5
0
        $points = array();
        $firstImage = null;
        $lastImage = null;
        while (next_image()) {
            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();
            echo '<a href="' . html_encode(getImageURL()) . '"';
            echo " title=\"" . $annotate . "\">\n";
            printImageThumb($annotate);
            echo "</a>";
            printAddToFavorites($_zp_current_image, '', gettext('Remove'));
            ?>
										</div>
									</div>
									<?php 
        }
/**
 * Gathers the data for an album
 * @param album $obj
 * @param object $MAP_OBJECT
 */
function getAlbumGeodata($obj, $MAP_OBJECT)
{
    $result = false;
    $images = $obj->getImages(0);
    foreach ($images as $an_image) {
        $image = newImage($obj, $an_image);
        $coord = getGeoCoord($image);
        if ($coord) {
            $result = true;
            //	at least one image has geodata
            $coord['desc'] = '<a href="' . html_encode($image->getImageLink()) . '"><img src="' . html_encode($image->getThumb()) . '" alt="' . $image->getDesc() . '" ' . 'style=" margin-left: 30%; margin-right: 10%; border: 0px; " /></a><p align=center >' . $image->getDesc() . "</p>";
            addGeoCoord($MAP_OBJECT, $coord);
        }
    }
    return $result;
}
Exemple #7
0
							<i class="fa fa-angle-up mobile-click-details"></i>
						</div>	
						<?php 
}
?>
					</div>
					
					<div class="gallery-thumbs">
						<?php 
$gmap_c = 0;
while (next_image()) {
    // check for geo-coordinates if enabled
    if ($gmap_c == 0 && (function_exists('printGoogleMap') || function_exists('printOpenStreetMap'))) {
        // still checking
        if (function_exists('printGoogleMap')) {
            if (getGeoCoord($_zp_current_image)) {
                $gmap_c++;
                // Print the map, at least one...
                setOption('gmap_width', null, false);
                // wipe out any px settings for plugin, flex set in css
                setOption('gmap_height', 400, false);
            }
        } elseif (function_exists('printOpenStreetMap')) {
            $map = new zpOpenStreetMap();
            if ($map->getGeoData()) {
                $gmap_c++;
                // Print the map, at least one...
                setOption('osmap_width', '100%', false);
                // wipe out any px settings for plugin, flex set in css
                setOption('osmap_height', '400px', false);
            }
Exemple #8
0
    function theme_content($map)
    {
        global $_zp_current_image, $points;
        if (isImagePage()) {
            ?>
			<!-- Gallery section -->
			<div id="images">
				<?php 
            $points = array();
            $firstImage = null;
            $lastImage = null;
            if (getNumImages() > 0) {
                ?>
					<div id="gallery" class="ad-gallery">
						<div class="ad-image-wrapper"></div>
						<div class="ad-controls"></div>
						<div class="ad-nav">
							<div class="ad-thumbs">
								<ul class="ad-thumb-list">
									<?php 
                while (next_image(true)) {
                    if ($map) {
                        $coord = getGeoCoord($_zp_current_image);
                        if ($coord) {
                            $points[] = $coord;
                        }
                    }
                    if (isImagePhoto()) {
                        // does not do video
                        if (is_null($firstImage)) {
                            $lastImage = imageNumber();
                            $firstImage = $lastImage;
                        } else {
                            $lastImage++;
                        }
                        ?>
											<li>
												<a href="<?php 
                        echo html_encode(getDefaultSizedImage());
                        ?>
">
													<img src="<?php 
                        echo html_encode(pathurlencode(getImageThumb()));
                        ?>
"
															 class="image<?php 
                        echo $lastImage;
                        ?>
"
															 alt="<?php 
                        echo html_encode(getImageDesc());
                        ?>
">
												</a>
											</li>
											<?php 
                    }
                }
                ?>
								</ul>
							</div>
						</div>
					</div>
				<?php 
            }
            ?>

				<div id="caption"<?php 
            if (getOption('garland_caption_location') == 'none') {
                echo ' style="display:none"';
            }
            ?>
>
				</div>
				<div class="clearage"></div>
			</div><!-- images -->
			<br class="clearall" />
			<?php 
        }
    }
Exemple #9
0
    function theme_content($map)
    {
        global $_zp_current_image, $_zp_current_album, $points;
        if (isImagePage()) {
            ?>
			<!-- Gallery section -->
			<div id="content">
				<div id="main">
					<div id="images">
						<?php 
            $points = array();
            $firstImage = null;
            $lastImage = null;
            if (getNumImages() > 0) {
                ?>
							<div id="gallery" class="ad-gallery">
								<div class="ad-image-wrapper"></div>
								<div class="ad-controls"></div>
								<div class="ad-nav">
									<div class="ad-thumbs">
										<ul class="ad-thumb-list">
											<?php 
                while (next_image(true)) {
                    if ($map) {
                        $coord = getGeoCoord($_zp_current_image);
                        if ($coord) {
                            $points[] = $coord;
                        }
                    }
                    if (isImagePhoto()) {
                        // does not do video
                        if (is_null($firstImage)) {
                            $lastImage = imageNumber();
                            $firstImage = $lastImage;
                        } else {
                            $lastImage++;
                        }
                        ?>
													<li>
														<a href="<?php 
                        echo html_encode(getDefaultSizedImage());
                        ?>
">
															<img src="<?php 
                        echo html_encode(pathurlencode(getImageThumb()));
                        ?>
"
																	 class="image<?php 
                        echo $lastImage;
                        ?>
"
																	 alt="<?php 
                        echo html_encode(getImageDesc());
                        ?>
">
														</a>
													</li>
													<?php 
                    }
                }
                ?>
										</ul>
									</div>
								</div>
							</div>
							<?php 
            }
            ?>

						<div id="caption"<?php 
            if (getOption('effervescence_caption_location') == 'none') {
                echo ' style="display:none"';
            }
            ?>
>
						</div>
						<div class="clearage"></div>
						<?php 
            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 
            }
            ?>
					</div><!-- images -->
			<?php 
            if (function_exists('printAddToFavorites')) {
                printAddToFavorites($_zp_current_album);
            }
            ?>
			<?php 
            @call_user_func('printRating');
            ?>
				</div><!-- main -->
				<div class="clearage"></div>
			</div><!-- content -->
			<?php 
        }
    }