Last change
on this file since 5087 was
5061,
checked in by cljosse, 15 years ago
|
[Edit_gmaps] make markers draggable
|
File size:
1.1 KB
|
Rev | Line | |
---|
[4547] | 1 | <?php /* |
---|
| 2 | Plugin Name: Edit Maps&Earth |
---|
[5061] | 3 | Version: 1.0.3 |
---|
[4558] | 4 | Description: Editor for rv gmaps |
---|
[4557] | 5 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=330 |
---|
[4547] | 6 | Author: rvelices cljosse |
---|
[4558] | 7 | Author URI: http://cl.josse.free.fr/ |
---|
[4547] | 8 | */ |
---|
[4558] | 9 | |
---|
[4559] | 10 | define( 'ed_rvm_PLUGIN_VERSION', '2.0.0'); |
---|
[4547] | 11 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 12 | add_event_handler('get_admin_plugin_menu_links', 'ed_rvm_plugin_admin_menu' ); |
---|
| 13 | |
---|
| 14 | global $ed_rvm_dir; |
---|
| 15 | $ed_rvm_dir = basename( dirname(__FILE__) ); |
---|
| 16 | |
---|
[4559] | 17 | |
---|
[4547] | 18 | function ed_rvm_plugin_admin_menu($menu) |
---|
| 19 | { |
---|
| 20 | // include_once( dirname(__FILE__) .'/include/functions.php'); |
---|
| 21 | add_event_handler('invalidate_user_cache', 'rvm_invalidate_cache' ); |
---|
| 22 | |
---|
| 23 | array_push($menu, |
---|
| 24 | array( |
---|
[4558] | 25 | |
---|
[4547] | 26 | 'NAME' => 'EDIT Maps & Earth', |
---|
| 27 | 'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin/admin.php') |
---|
| 28 | ) |
---|
| 29 | ); |
---|
| 30 | return $menu; |
---|
| 31 | } |
---|
[4556] | 32 | |
---|
| 33 | add_event_handler('loc_after_page_header', 'cl_conflit'); |
---|
| 34 | function cl_conflit() { |
---|
| 35 | global $template,$page; |
---|
| 36 | |
---|
[4557] | 37 | |
---|
[4558] | 38 | if ( isset($_GET['map']) ) |
---|
[4556] | 39 | { |
---|
[4558] | 40 | |
---|
[4557] | 41 | $template->set_filenames(array('cl_conflit' => dirname(__FILE__).'/template/cl_conflit.tpl')); |
---|
[4556] | 42 | $template->parse('cl_conflit'); |
---|
[4557] | 43 | }else{ |
---|
[4556] | 44 | |
---|
| 45 | } |
---|
[4557] | 46 | return ; |
---|
| 47 | } |
---|
[4547] | 48 | |
---|
[4556] | 49 | |
---|
[4547] | 50 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.