Changeset 4557
- Timestamp:
- Dec 22, 2009, 6:50:52 PM (15 years ago)
- Location:
- extensions/edit_gmaps
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/edit_gmaps/admin/admin_edit.tpl
r4555 r4557 21 21 22 22 23 <script src="{$PLUGIN_ROOT_URL}/template/windows_13/javascripts/prototype.js" type="text/javascript"></script> 24 <script src="{$PLUGIN_ROOT_URL}/template/windows_13/javascripts/window.js" type="text/javascript" defer="defer"></script> 25 <link href="{$PLUGIN_ROOT_URL}/template/windows_13/themes/default.css" rel="stylesheet" type="text/css" /> 26 <link href="{$PLUGIN_ROOT_URL}/template/windows_13/themes/alphacube.css" rel="stylesheet" type="text/css" /> 23 <script src="plugins/rv_gmaps/template/windows_13/javascripts/prototype.js" type="text/javascript"></script> 24 27 25 28 26 <style type="text/css">{literal} … … 176 174 177 175 Ma_position=coord; 178 var echelle=18; 176 var echelle=18; 177 if ({$lat}=='49' && {$lon}=='3' ) echelle=4; 179 178 180 179 map.setCenter( coord, echelle); … … 184 183 {literal} 185 184 if ( !map.isLoaded() ) 186 map.setCenter( new GLatLng(49,3), 14);185 map.setCenter( new GLatLng(49,3), 4); 187 186 try { 188 187 // the overview must be added after setting map center … … 244 243 } 245 244 246 <!--Event.observe(window, 'load', onLoad );--> 247 <!--Event.observe(window, 'unload', GUnload );--> 245 Event.observe(window, 'load', onLoad ); 246 Event.observe(window, 'unload', GUnload ); 248 247 //]-->]> 249 248 {/literal} 250 onLoad(); 249 251 250 </script> 252 251 -
extensions/edit_gmaps/main.inc.php
r4556 r4557 3 3 Version: 1.0.0 4 4 Description: Editor for rv gmaps 5 Plugin URI: http://piwigo.org/ext 5 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=330 6 6 Author: rvelices cljosse 7 7 Author URI: http://www.modusoptimus.com/ … … 35 35 global $template,$page; 36 36 37 if ( !isset($_GET['map']) ) 37 38 if ( isset($_GET['map']) || isset($_POST['lat']) ) 38 39 { 39 return ; 40 $template->set_filenames(array('cl_conflit' => dirname(__FILE__).'/template/cl_conflit.tpl')); 41 $template->parse('cl_conflit'); 42 }else{ 43 40 44 } 41 $template->set_filenames(array('cl_conflit' => dirname(__FILE__).'/template/cl_conflit.tpl')); 42 $template->parse('cl_conflit'); 43 45 return ; 44 46 } 45 47
Note: See TracChangeset
for help on using the changeset viewer.