Ignore:
Timestamp:
Jan 7, 2011, 6:13:48 PM (13 years ago)
Author:
cljosse
Message:

[edit_gmaps] Improvement of the display.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/edit_gmaps/main.inc.php

    r6445 r8501  
    1 <?php /*
     1<?php
     2/*
    23Plugin Name: Edit Maps&Earth
    3 Version: 2.1.0
     4Version: 2.1.2
    45Description:  Editor for rv gmaps
    56Plugin URI: http://piwigo.org/ext/extension_view.php?eid=330
     
    78Author URI: http://cl.josse.free.fr/
    89*/
     10 
     11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     12if (!defined('EDIT_RV_PATH'))
     13define(  'EDIT_RV_PATH',   PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/' );
    914
    10 define( 'ed_rvm_PLUGIN_VERSION', '2.1.0');
    11 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    1215add_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 
    17 
    18 
    1916function ed_rvm_plugin_admin_menu($menu)
    2017{
    2118//      include_once( dirname(__FILE__) .'/include/functions.php');
    2219        add_event_handler('invalidate_user_cache', 'rvm_invalidate_cache' );
    23 
    2420        array_push($menu,
    25                         array(
    26                        
     21                        array(                 
    2722                                'NAME' => 'EDIT Maps & Earth',
    28                                 'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin/admin.php')
    29                         )
     23                                'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin/admin.php')                       )
    3024                );
    3125        return $menu;
    3226}
    3327 
    34 add_event_handler('loc_after_page_header', 'cl_conflit');
    35 function cl_conflit() {
    36   global $template,$page;
    37  
    38  if (file_exists ( 'themes/default/js/jquery.packed.js'))
    39 {
    40 //version 2.1
    41  
    42    $icon_path = 'themes/default/icon/help.png';
    43    $path_js=  'themes/default/js/' ;
    4428
    45  }
    46  else
    47  {
    48 // version < 1.9
    49   $path_js=  "template-common/lib/"; 
    50   $icon_path =  "admin/template/goto/theme/clear/icon/help.png";
    51 }
    52  if (   isset($_GET['map'])   )
    53 {
    54 //===================================================================================
    55 $template->assign(
    56     array(      'path_js' => $path_js,
    57 
    58               )
    59   );
    60  $template->set_filenames(array('cl_conflit' => dirname(__FILE__).'/template/cl_conflit.tpl'));
    61  $template->parse('cl_conflit');
    62 }else{
    63  
    64 }
    65  return ;
    66 }
    6729
    6830
Note: See TracChangeset for help on using the changeset viewer.