Ignore:
Timestamp:
Jul 16, 2009, 8:23:19 PM (15 years ago)
Author:
tiico
Message:

Finalize advanced parameters for embeded wall
FR and EN Language
Add icones for custom icon toolbar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/piclens/admin/piclenswallconfig2.php

    r3598 r3610  
    5858
    5959if (isset($_POST['submit'])) {
    60   $me->my_config['piclens_wall_color'] =   $_POST['background_color'];
    61   $me->my_config['piclens_wall_showembed'] = isset($_POST['piclens_wall_embed']);
    62   $me->my_config['piclens_wall_showfullscreen'] = isset($_POST['piclens_wall_fullscreen']);
    63   $me->my_config['piclens_wall_showsearch'] = isset($_POST['piclens_wall_search']);
    64   $me->my_config['piclens_wall_transparent'] =   isset($_POST['piclens_wall_transparent']);
    65 $me->my_config['piclens_wall_showChrome']  = isset($_POST['piclens_wall_showChrome']);
    66 $me->my_config['piclens_wall_showDescription']  = isset($_POST['piclens_wall_showDescription']);
    67 $me->my_config['piclens_wall_showReflections']  = isset($_POST['piclens_wall_showReflections']);
    68 $me->my_config['piclens_wall_showTutorial']  = isset($_POST['piclens_wall_showTutorial']);
    69 $me->my_config['piclens_wall_showNavArrows']  = isset($_POST['piclens_wall_showNavArrows']);
    70 $me->my_config['piclens_wall_nb_ligne']     = $_POST['piclens_wall_nb_ligne'];
    71 $me->my_config['piclens_wall_backgroundAlpha']     = $_POST['piclens_wall_backgroundAlpha'];
     60        $me->my_config['piclens_wall_color'] =   $_POST['background_color'];
     61        $me->my_config['piclens_wall_showembed'] = isset($_POST['piclens_wall_embed']);
     62        $me->my_config['piclens_wall_showfullscreen'] = isset($_POST['piclens_wall_fullscreen']);
     63        $me->my_config['piclens_wall_showsearch'] = isset($_POST['piclens_wall_search']);
     64        $me->my_config['piclens_wall_transparent'] =   isset($_POST['piclens_wall_transparent']);
     65        $me->my_config['piclens_wall_showChrome']  = isset($_POST['piclens_wall_showChrome']);
     66        $me->my_config['piclens_wall_showDescription']  = isset($_POST['piclens_wall_showDescription']);
     67        $me->my_config['piclens_wall_showReflections']  = isset($_POST['piclens_wall_showReflections']);
     68        $me->my_config['piclens_wall_showTutorial']  = isset($_POST['piclens_wall_showTutorial']);
     69        $me->my_config['piclens_wall_showNavArrows']  = isset($_POST['piclens_wall_showNavArrows']);
     70        $me->my_config['piclens_wall_nb_ligne']     = $_POST['piclens_wall_nb_ligne'];
     71        $me->my_config['piclens_wall_backgroundAlpha']     = $_POST['piclens_wall_backgroundAlpha'];
    7272
    73   $me->save_config();
    74   array_push($page['infos'], l10n('piclens_admin_saveOK'));
     73        $me->my_config['piclens_wall_backgroundColor']  = $_POST['piclens_wall_backgroundColor'];
     74        $me->my_config['piclens_wall_glowColor']  = $_POST['piclens_wall_glowColor'];
     75        $me->my_config['piclens_wall_descriptionHeight'] = $_POST['piclens_wall_descriptionHeight'];
     76        $me->my_config['piclens_wall_tilt'] = $_POST['piclens_wall_tilt'];
     77
     78        $me->my_config['piclens_wall_backgroundImage']  = $_POST['piclens_wall_backgroundImage'];
     79        $me->my_config['piclens_wall_tutorial'] = $_POST['piclens_wall_tutorial'];
     80        $me->my_config['piclens_wall_tutorialtime']     = $_POST['piclens_wall_tutorialtime'];
     81        $me->my_config['piclens_wall_customButtonURL'] = $_POST['piclens_wall_customButtonURL'];
     82        $me->my_config['piclens_wall_customButtonTARGET'] = $_POST['piclens_wall_customButtonTARGET'];
     83        $me->my_config['piclens_wall_icons']  = $_POST['piclens_wall_icons'];
     84        $me->my_config['piclens_wall_linkCSS']  = $_POST['piclens_wall_linkCSS'];
     85        $me->save_config();
     86        array_push($page['infos'], l10n('piclens_admin_saveOK'));
    7587       
    7688}
     
    94106        'PICLENS_WALL_NB_LIGNE'                                                 => $me->my_config['piclens_wall_nb_ligne'],
    95107        'PICLENS_WALL_BACKGROUNDALPHA'                                          => $me->my_config['piclens_wall_backgroundAlpha'],
    96    
     108       
     109    'PICLENS_WALL_BACKGROUNDCOLOR'                              => $me->my_config['piclens_wall_backgroundColor'],
     110        'PICLENS_WALL_GLOWCOLOR'                                        => $me->my_config['piclens_wall_glowColor'],
     111        'PICLENS_WALL_DESCRIPTIONHEIGHT'                        => $me->my_config['piclens_wall_descriptionHeight'],
     112        'PICLENS_WALL_TILT'                                                     => $me->my_config['piclens_wall_tilt'],
     113        'PICLENS_WALL_BACKGROUNDIMAGE'                          => $me->my_config['piclens_wall_backgroundImage'],
     114        'PICLENS_WALL_TUTORIALTIME'                                     => $me->my_config['piclens_wall_tutorialtime'],
     115        'PICLENS_WALL_TUTORIAL'                                         => $me->my_config['piclens_wall_tutorial'],
     116        'PICLENS_WALL_CUSTOMBUTTONURL'                          => $me->my_config['piclens_wall_customButtonURL'],
     117        'PICLENS_WALL_CUSTOMBUTTONTARGET'                       => $me->my_config['piclens_wall_customButtonTARGET'],
     118        'PICLENS_WALL_ICONS'                                            => $me->my_config['piclens_wall_icons'],
     119        'PICLENS_WALL_LINKCSS'                                          => $me->my_config['piclens_wall_linkCSS'],
     120       
    97121        ));
    98122
     123$template->assign(array('OTHERS_SCRIPT' =>
     124                        '<script type="text/javascript" src="'.PICLENS_PATH.'farbtastic/farbtastic.js"></script>
     125                        <link href="'.PICLENS_PATH.'farbtastic/farbtastic.css" rel="stylesheet" type="text/css"  />'));
     126       
    99127$template->assign_var_from_handle( 'ADMIN_CONTENT', 'plugin_admin_content');
    100128
Note: See TracChangeset for help on using the changeset viewer.