Changeset 6445


Ignore:
Timestamp:
06/02/10 08:57:34 (10 years ago)
Author:
cljosse
Message:

[Edit_gmaps] update for version piwigo 2.1

Location:
extensions/edit_gmaps
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/edit_gmaps/admin/admin_edit.php

    r4560 r6445  
    44load_language('lang', dirname(__FILE__).'/../'); 
    55$admin_url = PHPWG_ROOT_PATH.'admin.php'; 
    6  
     6if (file_exists ( 'themes/default/js/jquery.packed.js'))  
     7{ 
     8//version 2.1 
     9  
     10   $icon_path = 'themes/default/icon/help.png'; 
     11   $path_js=  'themes/default/js/' ;  
     12 
     13 } 
     14 else 
     15 { 
     16// version < 1.9 
     17  $path_js=  "template-common/lib/";   
     18  $icon_path =  "admin/template/goto/theme/clear/icon/help.png"; 
     19} 
    720$sql="SELECT *  
    821FROM `".$prefixeTable."plugins`  
     
    173186//=================================================================================== 
    174187$template->assign( 
    175     array( 
    176       'U_DISPLAY'=> $admin_url.get_query_string_diff(array('display')), 
    177            'VERSION'=> $version, 
     188    array(      'path_js' => $path_js, 
     189            'U_DISPLAY'=> $admin_url.get_query_string_diff(array('display')), 
     190                'VERSION'=> $version, 
    178191              )  
    179192  ); 
  • extensions/edit_gmaps/main.inc.php

    r5061 r6445  
    11<?php /* 
    22Plugin Name: Edit Maps&Earth 
    3 Version: 1.0.3 
     3Version: 2.1.0 
    44Description:  Editor for rv gmaps  
    55Plugin URI: http://piwigo.org/ext/extension_view.php?eid=330 
     
    88*/ 
    99 
    10 define( 'ed_rvm_PLUGIN_VERSION', '2.0.0'); 
     10define( 'ed_rvm_PLUGIN_VERSION', '2.1.0'); 
    1111if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 
    1212add_event_handler('get_admin_plugin_menu_links', 'ed_rvm_plugin_admin_menu' ); 
     
    1414global $ed_rvm_dir; 
    1515$ed_rvm_dir = basename( dirname(__FILE__) ); 
     16 
    1617 
    1718 
     
    3536  global $template,$page; 
    3637  
     38 if (file_exists ( 'themes/default/js/jquery.packed.js'))  
     39{ 
     40//version 2.1 
    3741  
     42   $icon_path = 'themes/default/icon/help.png'; 
     43   $path_js=  'themes/default/js/' ;  
     44 
     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} 
    3852 if (   isset($_GET['map'])   ) 
    3953{ 
     54//=================================================================================== 
     55$template->assign( 
     56    array(      'path_js' => $path_js, 
    4057 
     58              )  
     59  ); 
    4160 $template->set_filenames(array('cl_conflit' => dirname(__FILE__).'/template/cl_conflit.tpl')); 
    4261 $template->parse('cl_conflit'); 
  • extensions/edit_gmaps/template/cl_conflit.tpl

    r5062 r6445  
    11<!--- My Conflit $ROOT_URL  ---> 
     2{known_script id="jquery" src=$path_js|@cat:"jquery.packed.js"} 
    23 
    3 {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"} 
    44{html_head} 
    55{literal} 
     
    77  jQuery.noConflict(); 
    88</script>{/literal} 
    9 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"} 
     9{known_script id="jquery.ui" src=$ROOT_URL|@cat:$path_j@cat"ui/ui.core.packed.js"} 
    1010{known_script id="gally" src=$PLUGIN_ROOT_URL|@cat:"/template/script.js"} 
    1111{/html_head} 
Note: See TracChangeset for help on using the changeset viewer.