- Timestamp:
- 2012/02/19 02:22:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/Smarty/templates/default/abouts/index.tpl
r21343 r21537 22 22 */ 23 23 *}--> 24 <!--▼CONTENTS-->25 24 <!--{if $objSiteInfo->data.latitude && $objSiteInfo->data.longitude}--> 26 <script type="text/javascript">//<![CDATA[ 27 $(function() { 28 $("#maps").css({ 29 'margin-top': '15px', 30 'margin-left': 'auto', 31 'margin-right': 'auto', 32 'width': '98%', 33 'height': '300px' 34 }); 35 var lat = <!--{$objSiteInfo->data.latitude}--> 36 var lng = <!--{$objSiteInfo->data.longitude}--> 37 if (lat && lng) { 38 var latlng = new google.maps.LatLng(lat, lng); 39 var mapOptions = { 40 zoom: 15, 41 center: latlng, 42 mapTypeId: google.maps.MapTypeId.ROADMAP 43 }; 44 var map = new google.maps.Map($("#maps").get(0), mapOptions); 45 var marker = new google.maps.Marker({map: map, position: latlng}); 46 } else { 47 $("#maps").remove(); 48 } 49 }); 50 //]]> 51 </script> 25 <script type="text/javascript">//<![CDATA[ 26 $(function() { 27 $("#maps").css({ 28 'margin-top': '15px', 29 'margin-left': 'auto', 30 'margin-right': 'auto', 31 'width': '98%', 32 'height': '300px' 33 }); 34 var lat = <!--{$objSiteInfo->data.latitude}--> 35 var lng = <!--{$objSiteInfo->data.longitude}--> 36 if (lat && lng) { 37 var latlng = new google.maps.LatLng(lat, lng); 38 var mapOptions = { 39 zoom: 15, 40 center: latlng, 41 mapTypeId: google.maps.MapTypeId.ROADMAP 42 }; 43 var map = new google.maps.Map($("#maps").get(0), mapOptions); 44 var marker = new google.maps.Marker({map: map, position: latlng}); 45 } else { 46 $("#maps").remove(); 47 } 48 }); 49 //]]></script> 52 50 <!--{/if}--> 53 51 <div id="undercolumn"> … … 127 125 </div> 128 126 </div> 129 <!--▲CONTENTS-->
Note: See TracChangeset
for help on using the changeset viewer.