• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP printGoogleMap函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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 
    }
开发者ID:rb26,项目名称:zenphoto,代码行数:78,代码来源:functions.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>
开发者ID:kokyandrei,项目名称:Unsupported,代码行数:31,代码来源:album.php


示例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);
    }
}
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:10,代码来源:deprecated-functions.php


示例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 
开发者ID:eyalfyber,项目名称:zpbase,代码行数:31,代码来源:image.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 
开发者ID:ckfreeman,项目名称:libratus,代码行数:30,代码来源:album.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>
开发者ID:rauldobrota,项目名称:zenphoto,代码行数:31,代码来源:image.php


示例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 {
        ?>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:album.php


示例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);
开发者ID:rauldobrota,项目名称:zenphoto,代码行数:31,代码来源:album.php


示例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>";
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:31,代码来源:album.php


示例10: getGalleryTitle

?>
"><?php 
echo getGalleryTitle();
?>
</a> &gt; <?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>
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:31,代码来源:album.php



注:本文中的printGoogleMap函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP printHTMLfooter函数代码示例发布时间:2022-05-15
下一篇:
PHP printGalleryTitle函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap