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/piclenswall.php

    r3598 r3610  
    4747                        $template->assign(array(
    4848                                'piclenswalltitle'              => $this->my_config['piclens_wall_title'],
    49                                 'rssfeed'                               => $rssfeed,
     49                                'rssfeed'                               => isset($rssfeed) ? $rssfeed : "",
    5050                                'color'                                 => $this->my_config['piclens_wall_color'],
    5151                                'height'                                => $this->my_config['piclens_wall_height'],
     
    5757                'nbligne'               => (isset($this->my_config['piclens_wall_nb_ligne']) ? $this->my_config['piclens_wall_nb_ligne'] : "3"),
    5858
    59 'showChrome'        => ($this->my_config['piclens_wall_showChrome'] ? "true" : "false"),
    60 'showDescription'        => ($this->my_config['piclens_wall_showDescription'] ? "true" : "false"),
    61 'showReflections'        => ($this->my_config['piclens_wall_showReflections'] ? "true" : "false"),
    62 'showTutorial'        => ($this->my_config['piclens_wall_showTutorial'] ? "true" : "false"),
    63 'showNavArrows'        => ($this->my_config['piclens_wall_showNavArrows'] ? "true" : "false"),
    64 'backgroundAlpha'       => isset($this->my_config['piclens_wall_backgroundAlpha']) ? $this->my_config['piclens_wall_backgroundAlpha'] : "0.0",
    65                
     59                                'showChrome'        => ($this->my_config['piclens_wall_showChrome'] ? "true" : "false"),
     60                                'showDescription'        => ($this->my_config['piclens_wall_showDescription'] ? "true" : "false"),
     61                                'showReflections'        => ($this->my_config['piclens_wall_showReflections'] ? "true" : "false"),
     62                                'showTutorial'        => ($this->my_config['piclens_wall_showTutorial'] ? "true" : "false"),
     63                                'showNavArrows'        => ($this->my_config['piclens_wall_showNavArrows'] ? "true" : "false"),
     64                                'backgroundAlpha'       => isset($this->my_config['piclens_wall_backgroundAlpha']) ? $this->my_config['piclens_wall_backgroundAlpha'] : "1.0",
     65
     66                                'backgroundColor'                       => str_replace('#', '%23', $this->my_config['piclens_wall_backgroundColor']),
     67                                'glowColor'                                     => str_replace('#', '%23', $this->my_config['piclens_wall_glowColor']),
     68                                'descriptionHeight'                     => $this->my_config['piclens_wall_descriptionHeight'],
     69                                'tilt'                                          => $this->my_config['piclens_wall_tilt'],
    6670               
    6771                        ));
    6872                       
     73                        if (!empty($this->my_config['piclens_wall_backgroundImage']))
     74                                $template->assign(array(
     75                                        'backgroundImage'               => $this->my_config['piclens_wall_backgroundImage']));
     76                        if (!empty($this->my_config['piclens_wall_tutorial']))
     77                                $template->assign(array(
     78                                        'tutorial'              => (empty($this->my_config['piclens_wall_tutorialtime']) ? "4500" : $this->my_config['piclens_wall_tutorialtime']).','.$this->my_config['piclens_wall_tutorial']));
     79                        if (!empty($this->my_config['piclens_wall_customButtonURL']))
     80                                $template->assign(array(
     81                                        'customButton'          => $this->my_config['piclens_wall_customButtonURL'].(empty($this->my_config['piclens_wall_customButtonTARGET']) ? ','.PICLENS_PATH : ','.$this->my_config['piclens_wall_customButtonTARGET'])));
     82
     83                        if (!empty($this->my_config['piclens_wall_icons']))
     84                                $template->assign(array(
     85                                        'icons'         => $this->my_config['piclens_wall_icons']));
     86                        if (!empty($this->my_config['piclens_wall_linkCSS']))
     87                                $template->assign(array(
     88                                        'linkCSS'               => $this->my_config['piclens_wall_linkCSS']));
     89                               
     90
     91                               
    6992                        if (isset($rssfeed))
    7093                                $template->concat('PLUGIN_INDEX_CONTENT_AFTER', $template->parse('piclenswall', true));
Note: See TracChangeset for help on using the changeset viewer.