Changeset 4558 for extensions/edit_gmaps
- Timestamp:
- Dec 23, 2009, 8:32:13 AM (14 years ago)
- Location:
- extensions/edit_gmaps
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/edit_gmaps/admin/admin.php
r4545 r4558 9 9 else 10 10 $page['tab'] = $_GET['tab']; 11 11 $page['tab'] = 'edit'; 12 12 $my_base_url = get_admin_plugin_menu_link(__FILE__); 13 13 -
extensions/edit_gmaps/admin/admin_edit.tpl
r4557 r4558 19 19 {if $lat} 20 20 <script src="http://maps.google.com/maps?file=api&v=2&key={$GMAPS_API_KEY}&hl={$lang_info.code}" type="text/javascript"></script> 21 22 21 23 22 <script src="plugins/rv_gmaps/template/windows_13/javascripts/prototype.js" type="text/javascript"></script> 24 23 … … 243 242 } 244 243 244 function $(element) { 245 if (arguments.length > 1) { 246 for (var i = 0, elements = [], length = arguments.length; i < length; i++) 247 elements.push($(arguments[i])); 248 return elements; 249 } 250 if (Object.isString(element)) 251 element = document.getElementById(element); 252 return Element.extend(element); 253 } 254 245 255 Event.observe(window, 'load', onLoad ); 246 256 Event.observe(window, 'unload', GUnload ); -
extensions/edit_gmaps/main.inc.php
r4557 r4558 1 1 <?php /* 2 2 Plugin Name: Edit Maps&Earth 3 Version: 1.0. 04 Description: Editor for rv gmaps 3 Version: 1.0.1 4 Description: Editor for rv gmaps 5 5 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=330 6 6 Author: rvelices cljosse 7 Author URI: http:// www.modusoptimus.com/7 Author URI: http://cl.josse.free.fr/ 8 8 */ 9 define( 'ed_rvm_PLUGIN_VERSION', '2.0.c'); 9 10 define( 'ed_rvm_PLUGIN_VERSION', '1.0.1'); 10 11 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 11 12 add_event_handler('get_admin_plugin_menu_links', 'ed_rvm_plugin_admin_menu' ); … … 20 21 add_event_handler('invalidate_user_cache', 'rvm_invalidate_cache' ); 21 22 22 $_GET['tab'] = 'edit';23 24 23 array_push($menu, 25 24 array( 25 26 26 'NAME' => 'EDIT Maps & Earth', 27 27 'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin/admin.php') … … 36 36 37 37 38 if ( isset($_GET['map']) || isset($_POST['lat']))38 if ( isset($_GET['map']) ) 39 39 { 40 40 41 $template->set_filenames(array('cl_conflit' => dirname(__FILE__).'/template/cl_conflit.tpl')); 41 42 $template->parse('cl_conflit'); -
extensions/edit_gmaps/template/cl_conflit.tpl
r4556 r4558 1 <!--- My Conflit --->1 <!--- My Conflit $ROOT_URL ---> 2 2 3 3 {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"} … … 11 11 {/html_head} 12 12 13 <!--- << fly conflit --->13 <!--- << My conflit --->
Note: See TracChangeset
for help on using the changeset viewer.