Ignore:
Timestamp:
Oct 21, 2010, 4:15:26 PM (14 years ago)
Author:
cljosse
Message:

[Autosize][beta]Include an option for the description and the copyright.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/autosize.inc.php

    r7262 r7316  
    114114 * conflit =============================================
    115115 */
    116         static public function cl_autosize_script()
    117         {
    118            global  $template,$user,$conf ;
    119 
    120  
    121                 $my_path = dirname(__FILE__).'/';
     116        static public function cl_autosize_script($pictures)
     117        {       $my_path = dirname(__FILE__).'/';
     118                   global  $template,$user,$conf ;
    122119                $template->set_filenames(
    123120                     array('autosize_cl_init'=> $my_path.'template/cl_conflit.tpl')
     
    131128                                                 );
    132129
    133                    return $template->parse( 'autosize_cl_init', false);
    134 
     130                   $template->parse( 'autosize_cl_init', false);
     131
     132 return $pictures;
    135133       
    136134        }// function cl_autosize_script
     
    232230
    233231if ( isset($_POST['submit'] ) && $_POST['submit'] == l10n('cl_autosize_save') )  { 
    234 
    235         $autosize_parametres->check_auto_w = isset($_POST['check_auto_w']) ? $_POST['check_auto_w'] : "off" ;
     232                $autosize_parametres->check_desc_v = isset($_POST['check_desc_v']) ? $_POST['check_icon_v'] : "off" ;
     233                $autosize_parametres->check_icon_v = isset($_POST['check_icon_v']) ? $_POST['check_icon_v'] : "off" ;
     234                $autosize_parametres->check_auto_w = isset($_POST['check_auto_w']) ? $_POST['check_auto_w'] : "off" ;
    236235         }else{
    237    $autosize_parametres->check_auto_w = isset($_POST['check_auto_w']) ? $_POST['check_auto_w'] : ( ( isset($autosize_parametres->check_auto_w) ) ? $autosize_parametres->check_auto_w :   'off') ; ;
     236                $autosize_parametres->check_desc_v = isset($_POST['check_desc_v']) ? $_POST['check_desc_v'] : ( ( isset($autosize_parametres->check_desc_v) ) ? $autosize_parametres->check_desc_v :   'off') ; 
     237                $autosize_parametres->check_icon_v = isset($_POST['check_icon_v']) ? $_POST['check_icon_v'] : ( ( isset($autosize_parametres->check_icon_v) ) ? $autosize_parametres->check_icon_v :   'off') ; 
     238                $autosize_parametres->check_auto_w = isset($_POST['check_auto_w']) ? $_POST['check_auto_w'] : ( ( isset($autosize_parametres->check_auto_w) ) ? $autosize_parametres->check_auto_w :   'off') ; 
    238239   }
    239 if ( isset($_POST['submit'] ) && $_POST['submit'] == l10n('cl_autosize_save') )  {
    240    $autosize_parametres->check_icon_v = isset($_POST['check_icon_v']) ? $_POST['check_icon_v'] : "off" ;
    241          }else{
    242    $autosize_parametres->check_icon_v = isset($_POST['check_icon_v']) ? $_POST['check_icon_v'] : ( ( isset($autosize_parametres->check_icon_v) ) ? $autosize_parametres->check_icon_v :   'off') ; ;
    243    }
     240 
     241
    244242return $autosize_parametres;
    245243}
Note: See TracChangeset for help on using the changeset viewer.