Ignore:
Timestamp:
Oct 16, 2010, 5:36:55 PM (14 years ago)
Author:
cljosse
Message:

[Autosize][beta]fix bugs with rv_gmaps, option show icon.


File:
1 edited

Legend:

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

    r7220 r7229  
    4141                                $autosize_parametres = cl_autosize_Get_Options();
    4242                                include (AUTOSIZE_PATH."include/affiche.php");   
    43 
     43                                if($autosize_parametres->check_icon_v == 'on'){
    4444                                $template->assign('cl_autosize_button',
    4545                                 array(
     
    5454                                $template->set_filenames(array('cl_bp' => $my_path. 'template/picture.tpl'));
    5555                                $template->concat('PLUGIN_PICTURE_ACTIONS', $template->parse('cl_bp', true));
    56 
     56                                }
    5757                                $template->set_filenames(
    5858                                                array('autosize_content'=> $my_path.'template/autosize.tpl')
     
    235235   $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') ; ;
    236236   }
    237 
     237if ( isset($_POST['submit'] ) && $_POST['submit'] == l10n('cl_autosize_save') )  {
     238   $autosize_parametres->check_icon_v = isset($_POST['check_icon_v']) ? $_POST['check_icon_v'] : "off" ;
     239         }else{
     240   $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') ; ;
     241   }
    238242return $autosize_parametres;
    239243}
Note: See TracChangeset for help on using the changeset viewer.