本文整理汇总了PHP中printGoogleMap函数的典型用法代码示例。如果您正苦于以下问题:PHP printGoogleMap函数的具体用法?PHP printGoogleMap怎么用?PHP printGoogleMap使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了printGoogleMap函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: theme_content
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
}
示例2: printPageListWithNav
}
?>
<?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>
示例3: printImageMap
/**
* @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);
}
}
示例4: printSlideShowLink
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
示例5: printOpenStreetMap
</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
示例6: printTags
<?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>
示例7: printAddToFavorites
<?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 {
?>
示例8: printTags
" /></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);
示例9: map_callback
<?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>";
示例10: getGalleryTitle
?>
"><?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>