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 }
} ?> <?php if (getPrevPageURL() || getNextPageURL()) { printPageListWithNav('« ' . gettext('Prev'), gettext('Next') . ' »', false, 'true', 'page-nav', '', true, '5'); } ?> <?php if (function_exists('printGoogleMap')) { ?> <div class="gmap"> <?php setOption('gmap_width', 600, false); printGoogleMap(); ?> </div> <?php } ?> <?php printCodeblock(); ?> <?php if (function_exists('printCommentForm')) { printCommentForm(); } ?> </div>
/** * @deprecated */ function printImageMap($zoomlevel = NULL, $defaultmaptype = NULL, $width = NULL, $height = NULL, $text = NULL, $toggle = true, $id = 'googlemap', $mapselections = NULL, $addwiki = NULL, $background = NULL, $mapcontrol = NULL, $maptypecontrol = NULL, $customJS = NULL) { deprecated_function_notify(gettext('The google-maps plugin is deprecated. Convert to GoogleMap.')); if (function_exists('printGoogleMap')) { printGoogleMap($text, $id, $toggle, NULL, NULL); } }
printSlideShowLink(); ?> </span> <?php } ?> </div> <div id="object-desc"><?php printImageDesc(); ?> </div> <?php if (function_exists('printGoogleMap')) { ?> <div id="map-wrap"><?php printGoogleMap('Google Map', null, 'hide'); ?> </div><?php } ?> <?php if (getImageData('copyright')) { ?> <p class="image-copy"><?php echo getImageData('copyright'); ?> </p><?php } ?> <?php
</div> </div> </div> <?php if ($gmap_c) { ?> <div id="map-gallery" class="clearfix"> <div id="map-wrap"> <?php if (function_exists('printOpenStreetMap')) { printOpenStreetMap(); } else { printGoogleMap(gettext('Show Google Map'), null, 'show'); } ?> </div> </div> <?php } ?> <?php if (function_exists('printCommentForm') && $_zp_gallery_page != 'favorites.php') { ?> <div id="comments-gallery" class="wrap clearfix"> <div class="inner"> <div class="comments-sidebar pad"> <?php
<?php printTags('links', gettext('Tags: '), NULL, ''); ?> <?php if (getImageMetaData()) { printImageMetadata(NULL, 'colorbox'); ?> <br class="clearall" /> <?php } if (function_exists('printGoogleMap')) { setOption('gmap_display', 'colorbox', false); ?> <span id="map_link"> <?php printGoogleMap(NULL, NULL, NULL, NULL, 'gMapOptionsImage'); ?> </span> <br class="clearall" /> <?php } ?> </div> </div> <span class="clear"></span> </div> <!-- /container --> </div> <?php zp_apply_filter('theme_body_close'); ?> </body>
<?php if (zp_loggedin() && extensionEnabled('favoritesHandler')) { ?> <div class="favorites"><?php printAddToFavorites($_zp_current_album); ?> </div> <?php } ?> <?php if (extensionEnabled('GoogleMap')) { ?> <div class="googlemap"><?php printGoogleMap(NULL, 'googlemap'); ?> </div> <script type="text/javascript"> //<![CDATA[ <?php if (getOption('gmap_display') == 'colorbox') { ?> $('.google_map').addClass('fadetoggler'); $('.google_map').prepend('<img id="icon-map" alt="icon-map" src="<?php echo $_zp_themeroot; ?> /images/map.png" />'); <?php } else { ?>
" /></a> </div> <?php } } ?> <?php printTags('links', gettext('Tags: '), NULL, ''); ?> <?php if (!empty($points) && $map) { setOption('gmap_display', 'colorbox', false); ?> <div id="map_link"> <?php printGoogleMap(NULL, NULL, NULL, 'album_page', 'gMapOptionsAlbum'); ?> </div> <br class="clearall" /> <?php } ?> <?php if (function_exists('printLatestImages')) { ?> <h2><?php printf(gettext('Latest Images for %s'), $_zp_current_album->getTitle()); ?> </h2> <?php printLatestImages(5, $_zp_current_album->name);
<?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 } if (function_exists('printSlideShowLink') && $personality != 'Smoothgallery') { printSlideShowLink(gettext('View Slideshow'), 'text-align:center;'); } } ?> </div> <!-- images --> <?php if (getOption('enable_album_zipfile')) { echo "<p align=\"center\">"; printAlbumZip(); echo "</p>";
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 } }
?> "><?php echo getGalleryTitle(); ?> </a> > <?php printParentBreadcrumb("", " > ", " > "); ?> <?php printAlbumTitle(false); ?> </p> <div class="main"> <?php if (function_exists('printGoogleMap')) { printGoogleMap(NULL, NULL, NULL, $thisablum); } ?> <?php if (function_exists('printCommentForm')) { require_once 'comment.php'; } ?> </div> <div id="footer"> <hr /> <p> <?php printZenphotoLink(); ?> </p>