Changeset 9454


Ignore:
Timestamp:
03/01/11 16:43:51 (9 years ago)
Author:
Eric
Message:

Add compatibility for Piwigo 2.1 and 2.2 - LCAS can be used on both Piwigo version without changing Smarty's header (that's for Lucmorizur ;-))

Location:
extensions/LCAS/trunk/admin
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/LCAS/trunk/admin/LCAS_admin.php

    r9401 r9454  
    1010 
    1111if (!defined('LCAS_PATH')) define('LCAS_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); 
     12if (!defined('LCAS_PATH_ABS')) define('LCAS_PATH_ABS' ,  dirname(__FILE__).'/'); 
    1213 
    1314//ini_set('error_reporting', E_ALL); 
     
    189190    'LCAS_VERSION'                  => $version, 
    190191    'LCAS_PATH'                     => LCAS_PATH, 
     192    'PHPWG_VERSION'                 => PHPWG_VERSION, 
     193    'LCAS_PATH_ABS'                 => LCAS_PATH_ABS, 
    191194                'LCAS_Option'                   => $conf_LCAS[0], 
    192195                'LCAS_MAIL_TRUE'                => $conf_LCAS[1] == 'true'  ? 'checked = "checked"' : '' , 
  • extensions/LCAS/trunk/admin/template/global.tpl

    r9384 r9454  
    1 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} 
    2 {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"} 
    3 {known_script id="jquery.tablesorter" src=$LCAS_PATH|@cat:"admin/template/js/jquery.tablesorter.js"} 
    4 {known_script id="jquery.tablesorter.pager" src=$LCAS_PATH|@cat:"admin/template/js/jquery.tablesorter.pager.js"} 
    5 {* 
    6 {combine_script id="jquery" path=$ROOT_URL|@cat:"themes/default/js/jquery.js"} 
    7 {combine_script id="jquery.cluetip" path=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"} 
    8 {combine_script id="jquery.tablesorter" path=$LCAS_PATH|@cat:"admin/template/js/jquery.tablesorter.js"} 
    9 {combine_script id="jquery.tablesorter.pager" path=$LCAS_PATH|@cat:"admin/template/js/jquery.tablesorter.pager.js"} 
    10 *} 
    11  
    12 {html_head}<link rel="stylesheet" type="text/css" href="{$LCAS_PATH}admin/template/lcas.css">{/html_head} 
     1{html_head} 
     2{if PHPWG_VERSION < 2.2 } 
     3  {include file= $LCAS_PATH_ABS|@cat:'template/header21.tpl'} 
     4{else} 
     5  {include file= $LCAS_PATH_ABS|@cat:'template/header22.tpl'} 
     6{/if} 
     7 
     8<link rel="stylesheet" type="text/css" href="{$LCAS_PATH}admin/template/lcas.css"> 
     9{/html_head} 
    1310 
    1411<script type="text/javascript"> 
Note: See TracChangeset for help on using the changeset viewer.