Index: /extensions/edit_gmaps/main.inc.php
===================================================================
--- /extensions/edit_gmaps/main.inc.php	(revision 5061)
+++ /extensions/edit_gmaps/main.inc.php	(revision 6445)
@@ -1,5 +1,5 @@
 <?php /*
 Plugin Name: Edit Maps&Earth
-Version: 1.0.3
+Version: 2.1.0
 Description:  Editor for rv gmaps 
 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=330
@@ -8,5 +8,5 @@
 */
 
-define( 'ed_rvm_PLUGIN_VERSION', '2.0.0');
+define( 'ed_rvm_PLUGIN_VERSION', '2.1.0');
 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
 add_event_handler('get_admin_plugin_menu_links', 'ed_rvm_plugin_admin_menu' );
@@ -14,4 +14,5 @@
 global $ed_rvm_dir;
 $ed_rvm_dir = basename( dirname(__FILE__) );
+
 
 
@@ -35,8 +36,26 @@
   global $template,$page;
  
+ if (file_exists ( 'themes/default/js/jquery.packed.js')) 
+{
+//version 2.1
  
+   $icon_path = 'themes/default/icon/help.png';
+   $path_js=  'themes/default/js/' ; 
+
+ }
+ else
+ {
+// version < 1.9
+  $path_js=  "template-common/lib/";  
+  $icon_path =  "admin/template/goto/theme/clear/icon/help.png";
+}
  if (   isset($_GET['map'])   )
 {
+//===================================================================================
+$template->assign(
+    array(	'path_js' => $path_js,
 
+	      ) 
+  );
  $template->set_filenames(array('cl_conflit' => dirname(__FILE__).'/template/cl_conflit.tpl'));
  $template->parse('cl_conflit');
Index: /extensions/edit_gmaps/language/en_UK/description.txt
===================================================================
--- /extensions/edit_gmaps/language/en_UK/description.txt	(revision 6445)
+++ /extensions/edit_gmaps/language/en_UK/description.txt	(revision 6445)
@@ -0,0 +1,5 @@
+About: An addition to rv_gmaps plugin, from rvelices.
+The rv_maps puglin must have been previously installed.
+
+Edit_gmaps allow to find easily geographical coordinates (latitude and longitude) of a photo, either by clicking on the map, or by performing a search on a city.
+The found position is memorized.
Index: /extensions/edit_gmaps/language/fr_FR/description.txt
===================================================================
--- /extensions/edit_gmaps/language/fr_FR/description.txt	(revision 6445)
+++ /extensions/edit_gmaps/language/fr_FR/description.txt	(revision 6445)
@@ -0,0 +1,6 @@
+Un compl�ment au plugin rv_gmaps de rvelices.
+Le plug in rv_gmaps doit �tre install�.
+
+Edit_gmaps permet de trouver facilement la longitude et latitude d'une photo.
+Soit en cliquant sur la carte,en d�pla�ant le marqueur ou en faisant une recherche par ville.
+La position trouv�e est m�moris�e.
Index: /extensions/edit_gmaps/admin/admin_edit.php
===================================================================
--- /extensions/edit_gmaps/admin/admin_edit.php	(revision 4560)
+++ /extensions/edit_gmaps/admin/admin_edit.php	(revision 6445)
@@ -4,5 +4,18 @@
 load_language('lang', dirname(__FILE__).'/../');
 $admin_url = PHPWG_ROOT_PATH.'admin.php';
-
+if (file_exists ( 'themes/default/js/jquery.packed.js')) 
+{
+//version 2.1
+ 
+   $icon_path = 'themes/default/icon/help.png';
+   $path_js=  'themes/default/js/' ; 
+
+ }
+ else
+ {
+// version < 1.9
+  $path_js=  "template-common/lib/";  
+  $icon_path =  "admin/template/goto/theme/clear/icon/help.png";
+}
 $sql="SELECT * 
 FROM `".$prefixeTable."plugins` 
@@ -173,7 +186,7 @@
 //===================================================================================
 $template->assign(
-    array(
-      'U_DISPLAY'=> $admin_url.get_query_string_diff(array('display')),
-	   'VERSION'=> $version,
+    array(	'path_js' => $path_js,
+            'U_DISPLAY'=> $admin_url.get_query_string_diff(array('display')),
+	        'VERSION'=> $version,
 	      ) 
   );
Index: /extensions/edit_gmaps/template/cl_conflit.tpl
===================================================================
--- /extensions/edit_gmaps/template/cl_conflit.tpl	(revision 5062)
+++ /extensions/edit_gmaps/template/cl_conflit.tpl	(revision 6445)
@@ -1,5 +1,5 @@
 <!--- My Conflit $ROOT_URL  --->
+{known_script id="jquery" src=$path_js|@cat:"jquery.packed.js"}
 
-{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
 {html_head}
 {literal}
@@ -7,5 +7,5 @@
   jQuery.noConflict();
 </script>{/literal}
-{known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"}
+{known_script id="jquery.ui" src=$ROOT_URL|@cat:$path_j@cat"ui/ui.core.packed.js"}
 {known_script id="gally" src=$PLUGIN_ROOT_URL|@cat:"/template/script.js"}
 {/html_head}
