source: extensions/rv_gmaps/trunk/template/picture_map_content.tpl @ 8029

Last change on this file since 8029 was 8029, checked in by rvelices, 13 years ago

rv_gmaps do not use prototype anymore on the picture page

  • Property svn:eol-style set to LF
File size: 1.8 KB
Line 
1{html_head}
2<script src="http://maps.google.com/maps/api/js?sensor=false&amp;hl={$lang_info.code}" type="text/javascript"></script>
3<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js" type="text/javascript"></script>
4<script src="{$PLUGIN_ROOT_URL}/template/nyroModal/jquery.nyroModal-1.6.2.js" type="text/javascript"></script>
5<link href="{$PLUGIN_ROOT_URL}/template/nyroModal/nyroModal.css" rel="stylesheet" type="text/css">
6
7<style type="text/css">{literal}
8#mapPicture {
9        position:absolute;
10        width: 310px;
11}
12
13#map {
14        position:relative;
15        left: 320px;
16        margin-right: 320px;
17        height: 512px;
18        min-height: 512px;
19}
20
21#thumbPrev, #thumbNext {display:none;}
22{/literal}</style>
23{/html_head}
24
25<div id="mapPicture">
26<a href="{$U_NO_MAP}" title="{'return to normal view mode'|@translate}" rel="nofollow"><img src="{$TN_SRC}" alt="thumb"/></a>
27<br/>
28<a href="{$U_BLOWUP}" onclick="return blowupUrl(this.href);">{'More pictures near this location'|@translate}</a>
29<br/>
30{$COMMENT_IMG}
31<br/>
32</div>
33
34<div id="map"></div>
35
36<div style="clear:both"></div>
37<script type="text/javascript">{literal}
38//<![CDATA[
39function onLoad()
40{
41        var mapElement = document.getElementById("map");
42        var mapOpts = {
43{/literal}{if isset($coordinates)}
44                center: new google.maps.LatLng( {$coordinates.LAT}, {$coordinates.LON} ),
45                zoom : 12,
46{else}
47                center: new google.maps.LatLng(0,0),
48                zoom : 1,
49{/if}{literal}
50                mapTypeId: google.maps.MapTypeId.ROADMAP
51        };
52       
53        var map = new google.maps.Map( mapElement, mapOpts );
54
55{/literal}{if isset($coordinates)}
56        var marker = new google.maps.Marker( {ldelim}
57                position: map.getCenter(),
58                map: map
59                });
60{/if}{literal}
61}
62
63function blowupUrl(theUrl)
64{
65        jQuery.fx.off = true;
66        jQuery.nyroModalManual( {
67                url: theUrl,
68                forceType: 'iframe',
69                width: 1920
70        });
71        return false;
72}
73
74jQuery(document).ready( onLoad );
75//]]>
76{/literal}</script>
Note: See TracBrowser for help on using the repository browser.