Changeset 4307 for extensions/piclens


Ignore:
Timestamp:
Nov 18, 2009, 11:27:30 PM (14 years ago)
Author:
tiico
Message:

[Piclens/Cooliris] Fiw bug 1249 : embeded 3d wall (in navigation replacement mode) doesnt integrate all customized parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/piclens/include/Piclens.class.php

    r3907 r4307  
    482482                        if (isset($conf['NO_https']) and $conf['NO_https'] and strncasecmp($rssfeed, 'https://', 8) == 0 )
    483483                                        $rssfeed = 'http://' . substr($rssfeed, 8);
    484                
     484
     485/////////
    485486                        $color = $this->my_config['piclens_wall_color'];
    486487                        $height = $this->my_config['piclens_wall_height'];
     
    488489                        $showembed = ($this->my_config['piclens_wall_showembed'] ? "true" : "false");
    489490                        $showsearch = ($this->my_config['piclens_wall_showsearch'] ? "true" : "false");
     491                        $transparent = $this->my_config['piclens_wall_transparent'];
     492                        $swf_link = ($this->my_config['piclens_wall_swflocal'] ? $this->root_site_piclens.PICLENS_PATH.'swf/cooliris.swf' : 'http://apps.cooliris.com/embed/cooliris.swf');
     493                        $nbligne = (isset($this->my_config['piclens_wall_nb_ligne']) ? $this->my_config['piclens_wall_nb_ligne'] : "3");
     494
     495                        $showChrome = ($this->my_config['piclens_wall_showChrome'] ? "true" : "false");
     496                        $showDescription = ($this->my_config['piclens_wall_showDescription'] ? "true" : "false");
     497                        $showReflections = ($this->my_config['piclens_wall_showReflections'] ? "true" : "false");
     498                        $showTutorial = ($this->my_config['piclens_wall_showTutorial'] ? "true" : "false");
     499                        $showNavArrows = ($this->my_config['piclens_wall_showNavArrows'] ? "true" : "false");
     500                        $backgroundAlpha = isset($this->my_config['piclens_wall_backgroundAlpha']) ? $this->my_config['piclens_wall_backgroundAlpha'] : "1.0";
     501            $backgroundColor =  str_replace('#', '%23', $this->my_config['piclens_wall_backgroundColor']);
     502                        $glowColor      = str_replace('#', '%23', $this->my_config['piclens_wall_glowColor']);
     503                        $descriptionHeight = $this->my_config['piclens_wall_descriptionHeight'];
     504                        $tilt = $this->my_config['piclens_wall_tilt'];
     505               
     506                        if (!empty($this->my_config['piclens_wall_backgroundImage']))
     507                                        $backgroundImage = $this->my_config['piclens_wall_backgroundImage'];
     508                        if (!empty($this->my_config['piclens_wall_tutorial']))
     509                                        $tutorial = (empty($this->my_config['piclens_wall_tutorialtime']) ? "4500" : $this->my_config['piclens_wall_tutorialtime']).','.$this->my_config['piclens_wall_tutorial'];
     510                        if (!empty($this->my_config['piclens_wall_customButtonURL']))
     511                                        $customButton = $this->my_config['piclens_wall_customButtonURL'].(empty($this->my_config['piclens_wall_customButtonTARGET']) ? ','.PICLENS_PATH : ','.$this->my_config['piclens_wall_customButtonTARGET']);
     512
     513                        if (!empty($this->my_config['piclens_wall_icons']))
     514                                        $icons = $this->my_config['piclens_wall_icons'];
     515                        if (!empty($this->my_config['piclens_wall_linkCSS']))
     516                                        $linkCSS = $this->my_config['piclens_wall_linkCSS'];
     517///////
     518
    490519                        $template->assign('THUMBNAILS',
    491                                 '<object id="o" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    492                                         width="100%" height="'.$this->my_config['piclens_wall_height'].'" >
    493                                                 <param name="movie" value="'
    494 // Test si utilisation du fichier flash local.
    495                                                 .($this->my_config['piclens_wall_swflocal'] ? $this->root_site_piclens.PICLENS_PATH.'swf/cooliris.swf' : 'http://apps.cooliris.com/embed/cooliris.swf')
    496                                                 .'?feed='.$rssfeed.'&amp;style='.$color.'&amp;showEmbed='.$showembed.'&amp;showFullScreen='.$showfullscreen.'&amp;showSearch='.$showsearch.'" />
    497                                                 <param name="allowFullScreen" value="'.$showfullscreen.'" />
    498                                                 <param name="showEmbed" value="'.$showembed.'" />
    499                                                 <param name="showSearch" value="'.$showsearch.'" />
    500                                                 <param name="allowScriptAccess" value="always" />'
    501                                                 .($this->my_config['piclens_wall_transparent'] 
    502                                                         ?       '<param name="wmode" value="transparent" />
    503                                                                 <embed WMODE="transparent"'
    504                                                         :       '<embed ')
    505                                                 .'type="application/x-shockwave-flash" src="'
    506 // Test si utilisation du fichier flash local.
    507                                                 .($this->my_config['piclens_wall_swflocal'] ? $this->root_site_piclens.PICLENS_PATH.'swf/cooliris.swf' : 'http://apps.cooliris.com/embed/cooliris.swf')
    508                                                 .'?feed='.$rssfeed.'&amp;style='.$color.'&amp;showEmbed='.$showembed.'&amp;showFullScreen='.$showfullscreen.'&amp;showSearch='.$showsearch.'" width="100%" height="'.$height.'" showEmbed="'.$showembed.'" showSearch="'.$showsearch.'" allowFullScreen="'.$showfullscreen.'" allowScriptAccess="always" />
    509                                 </object>');
     520                '<object id="o" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
     521                        <param name="movie" value="'.$swf_link.'?feed='.$rssfeed.'&amp;style='.$color.'&amp;showEmbed='.$showembed.'&amp;showFullScreen='.$showfullscreen.'&amp;showSearch='.$showsearch.'&amp;numRows='.$nbligne.'&amp;showChrome='.$showChrome.'&amp;showDescription='.$showDescription.'&amp;showReflections='.$showReflections.'&amp;showTutorial='.$showTutorial.'&amp;showNavArrows='.$showNavArrows.'&amp;backgroundAlpha='.$backgroundAlpha.'&amp;backgroundColor='.$backgroundColor.'&amp;glowColor='.$glowColor.'&amp;descriptionHeight='.$descriptionHeight.'&amp;tilt='.$tilt
     522                        .(isset($backgroundImage) ? '&amp;backgroundImage='.$backgroundImage : '')
     523                        .(isset($tutorial)?'&amp;tutorial='.$tutorial : '')
     524                        .(isset($customButton)?'&amp;customButton='.$customButton:'')
     525                        .(isset($icons)?'&amp;icons='.$icons:'')
     526                        .(isset($linkCSS)?'&amp;linkCSS='.$linkCSS:'')
     527                        .'" />
     528                    width="100%" height="'.$height.'" >
     529                        <param name="allowFullScreen" value="'.$showfullscreen.'" />
     530                        <param name="showEmbed" value="'.$showembed.'" />
     531                        <param name="showSearch" value="'.$showsearch.'" />
     532                        <param name="allowScriptAccess" value="always" />
     533                        <param name="flashvars" value="feed='.$rssfeed.'&amp;style='.$color.'&amp;showEmbed='.$showembed.'&amp;showFullScreen='.$showfullscreen.'&amp;showSearch='.$showsearch.'&amp;numRows='.$nbligne.'&amp;showChrome='.$showChrome.'&amp;showDescription='.$showDescription.'&amp;showReflections='.$showReflections.'&amp;showTutorial='.$showTutorial.'&amp;showNavArrows='.$showNavArrows.'&amp;backgroundAlpha='.$backgroundAlpha.'&amp;backgroundColor='.$backgroundColor.'&amp;glowColor='.$glowColor.'&amp;descriptionHeight='.$descriptionHeight.'&amp;tilt='.$tilt
     534                        .(isset($backgroundImage)?'&amp;backgroundImage='.$backgroundImage:'')
     535                        .(isset($tutorial)?'&amp;tutorial='.$tutorial:'')
     536                        .(isset($customButton)?'&amp;customButton='.$customButton:'')
     537                        .(isset($icons)?'&amp;icons='.$icons:'')
     538                        .(isset($linkCSS)?'&amp;linkCSS='.$linkCSS:'').'" />
     539                       
     540                        '.(isset($transparent)?'<param name="wmode" value="transparent" />':'')
     541                        .'<embed '.(isset($transparent)?'WMODE="transparent"':'').' type="application/x-shockwave-flash"
     542                        src="'.$swf_link.'?feed='.$rssfeed.'&amp;style='.$color.'&amp;showEmbed='.$showembed.'&amp;showFullScreen='.$showfullscreen.'&amp;showSearch='.$showsearch.'&amp;numRows='.$nbligne.'&amp;showChrome='.$showChrome.'&amp;showDescription='.$showDescription.'&amp;showReflections='.$showReflections.'&amp;showTutorial='.$showTutorial.'&amp;showNavArrows='.$showNavArrows.'&amp;backgroundAlpha='.$backgroundAlpha.'&amp;backgroundColor='.$backgroundColor.'&amp;glowColor='.$glowColor.'&amp;descriptionHeight='.$descriptionHeight.'&amp;tilt='.$tilt
     543                        .(isset($backgroundImage)?'&amp;backgroundImage='.$backgroundImage:'')
     544                        .(isset($tutorial)?'&amp;tutorial='.$tutorial:'')
     545                        .(isset($customButton)?'&amp;customButton='.$customButton:'')
     546                        .(isset($icons)?'&amp;icons='.$icons:'')
     547                        .(isset($linkCSS)?'&amp;linkCSS='.$linkCSS:'').'"
     548                        width="100%" height="'.$height.'" showEmbed="'.$showembed.'" showSearch="'.$showsearch.'" allowFullScreen="'.$showfullscreen.'" allowScriptAccess="always" style="'.$color.'" numRows="'.$nbligne.'" showChrome="'.$showChrome.'" showDescription="'.$showDescription.'" showReflections="'.$showReflections.'" showTutorial="'.$showTutorial.'" showNavArrows="'.$showNavArrows.'"  backgroundAlpha="'.$backgroundAlpha.'" backgroundColor="'.$backgroundColor.'" glowColor="'.$glowColor.'" descriptionHeight="'.$descriptionHeight.'" tilt="'.$tilt.'" '
     549                        .(isset($backgroundImage)?'backgroundImage="'.$backgroundImage.'"':'')
     550                        .(isset($tutorial)?'tutorial="'.$tutorial.'"':'')
     551                        .(isset($customButton)?'customButton="'.$customButton.'"':'')
     552                        .(isset($icons)?'icons="'.$icons.'"':'')
     553                        .(isset($linkCSS)?'linkCSS="'.$linkCSS.'"':'').'/>
     554                </object>');
    510555
    511556                // Suppression de la barre de navigation
Note: See TracChangeset for help on using the changeset viewer.