Changeset 8912


Ignore:
Timestamp:
Jan 26, 2011, 1:17:55 PM (9 years ago)
Author:
cljosse
Message:

[Autosize][beta] compatibility (admin.tpl) whith piwigo 2.2


Location:
extensions/Autosize
Files:
2 added
2 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/admin/admin_autosize.php

    r8911 r8912  
    2929   PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'
    3030);
     31if (!defined('ROOT_URL'))
     32define(  'ROOT_URL',  get_root_url().'/' );
     33if (!defined('AUTOSIZE_PATH_ABS'))
     34define('AUTOSIZE_PATH_ABS', dirname(__FILE__).'/' );
     35
    3136// +-----------------------------------------------------------------------+
    3237// | Check Access and exit when user status is not ok                      |
     
    4550                $my_base_url.'&tab=autosize_admin'
    4651                           );
    47  
     52 /*     
    4853$tabsheet->add( 'autosize_help',
    4954                l10n('help'),
     
    5156                           );
    5257                           
    53                            
     58        */         
    5459                           
    5560        if (!isset($_GET['tab']))
  • extensions/Autosize/admin/template/admin.tpl

    r8864 r8912  
    3434
    3535     </script>
    36     {known_script id="jquery" src="themes/default/js/jquery.packed.js"}
     36 
     37  {if PHPWG_VERSION < 2.2 }
     38  {include file=$AUTOSIZE_PATH_ABS|@cat:'admin/template/header_2_1.tpl'}
     39{else}
     40{include file= $AUTOSIZE_PATH_ABS|@cat:'admin/template/header_2_2.tpl'}
     41 {/if}
     42 
    3743   
    3844{/html_head}
     
    4046{* $Id: autosize admin.tpl  *}
    4147 <!--- HEAD autosize TPL --->
    42 {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"}
    43 {known_script id="jquery.ui"      src=$ROOT_URL|@cat:"themes/default/js/ui/ui.core.js"}
    44 {known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"themes/default/js/ui/ui.resizable.js"}
    45 {known_script id="jquery.ui.slider" src=$ROOT_URL|@cat:"themes/default/js/ui/ui.slider.js"}
    46 {known_script id="jquery.ui.draggable" src=$ROOT_URL|@cat:"themes/default/js/ui/ui.draggable.js"}
     48
    4749{literal}
    4850<script type="text/javascript">
  • extensions/Autosize/admin/template/help.tpl

    r8865 r8912  
    1 {html_head} {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
    2 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"}
    3 {known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.resizable.packed.js"}
     1{html_head} {if PHPWG_VERSION < 2.2 } {include file=$AUTOSIZE_PATH_ABS|@cat:'admin/template/header_2_1.tpl'}
     2{else} {include file= $AUTOSIZE_PATH_ABS|@cat:'admin/template/header_2_2.tpl'} {/if}
    43{/html_head}
    54<form action="" method="post">
  • extensions/Autosize/include/affiche.php

    r8911 r8912  
    1313$theme=$user['theme'];
    1414$user_status = $user['status'] ;
    15  
    16                    $template->assign( array( 'AUTOSIZE_PATH_ABS' => AUTOSIZE_PATH_ABS
     15
     16                   $template->assign( array(
     17                   'AUTOSIZE_PATH_ABS' => AUTOSIZE_PATH_ABS,
     18                   'ROOT_URL' => ROOT_URL,
     19                   'AUTOSIZE_PATH' => AUTOSIZE_PATH,
    1720                                                                                        )
    18                                                                         );             
     21                                                                        );     
     22                                       
    1923        $template->assign(
    2024                                        array(
     
    2731                                        'thumbnail' => $conf['prefix_thumbnail'],
    2832                    'visible' => $visible,
    29                      'ROOT_URL' => get_root_url()  ,
    30                     'AUTOSIZE_PATH' => AUTOSIZE_PATH,
     33
    3134                    'theme' => $theme,
    3235                                         'SCALED_WIDTH' => $picture['current']['scaled_width'],
  • extensions/Autosize/template/header_2_1.tpl

    r8911 r8912  
    1 {known_script id="jquery" src = $ROOT_URL|@cat:"themes/default/js/jquery.js" now=1}
    2 {known_script id="jquery.cluetip" src = $ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.js"   }
     1{known_script id="jquery" src = $ROOT_URL|@cat:"themes/default/js/jquery.packed.js" now=1}
     2{known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"}
     3{known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/ui.core.js"}
     4{known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"themes/default/js/ui/ui.resizable.js"}
     5{known_script id="jquery.ui.slider" src=$ROOT_URL|@cat:"themes/default/js/ui/ui.slider.js"}
     6{known_script id="jquery.ui.draggable" src=$ROOT_URL|@cat:"themes/default/js/ui/ui.draggable.js"}
     7
    38{known_script id="conflit_script" src = $AUTOSIZE_PATH|@cat:"js/conflit.js"  }
    49{known_script id="dimensions" src = $AUTOSIZE_PATH|@cat:"js/jquery.dimensions.js"  }
     10
     11
  • extensions/Autosize/template/header_2_2.tpl

    r8911 r8912  
    1 {combine_script id="jquery" load="header" path = $ROOT_URL|@cat:"themes/default/js/jquery.js"
    2 } {combine_script id="jquery.cluetip" path = $ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.js"
    3 require="jquery" } {combine_script id="conflit_script" path = $AUTOSIZE_PATH|@cat:"js/conflit.js"
    4 require="jquery"} {combine_script id="dimensions" path = $AUTOSIZE_PATH|@cat:"js/jquery.dimensions.js"
    5 require="jquery"}
     1{combine_script id="jquery" load="header" path = $ROOT_URL|@cat:"themes/default/js/jquery.js"}
     2{combine_script id="jquery.cluetip" path = $ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.js" require="jquery" }
     3{combine_script id="conflit_script" path = $AUTOSIZE_PATH|@cat:"js/conflit.js" require="jquery"}
     4{combine_script id="dimensions" path = $AUTOSIZE_PATH|@cat:"js/jquery.dimensions.js" require="jquery"}
Note: See TracChangeset for help on using the changeset viewer.