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