Ignore:
Timestamp:
07/17/09 00:46:28 (11 years ago)
Author:
tiico
Message:

Modify piclenwall module for compatibility with piclens plugin up to 0.3.5 (extended configuration)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PWG_Stuffs/modules/piclenswall/main.inc.php

    r3609 r3613  
    4444  $block['SWF_LINK'] = (@$obj->my_config['piclens_wall_swflocal'] ? @$obj->root_site_piclens.PICLENS_PATH.'swf/cooliris.swf' : 'http://apps.cooliris.com/embed/cooliris.swf'); 
    4545  $block['NBLIGNE'] = (isset($obj->my_config['piclens_wall_nb_ligne']) ? @$obj->my_config['piclens_wall_nb_ligne'] : "3"); 
     46 
     47  if (isset($obj->my_config['piclens_wall_showChrome'])) 
     48    $block['showChrome'] = (@$obj->my_config['piclens_wall_showChrome'] ? "true" : "false"); 
     49  if (isset($obj->my_config['piclens_wall_showDescription'])) 
     50    $block['showDescription'] = (@$obj->my_config['piclens_wall_showDescription'] ? "true" : "false"); 
     51  if (isset($obj->my_config['piclens_wall_showReflections'])) 
     52    $block['showReflections'] = (@$obj->my_config['piclens_wall_showReflections'] ? "true" : "false"); 
     53  if (isset($obj->my_config['piclens_wall_showTutorial'])) 
     54    $block['showTutorial'] = (@$obj->my_config['piclens_wall_showTutorial'] ? "true" : "false"); 
     55  if (isset($obj->my_config['piclens_wall_showNavArrows'])) 
     56    $block['showNavArrows'] = (@$obj->my_config['piclens_wall_showNavArrows'] ? "true" : "false"); 
     57   
     58  $block['backgroundAlpha'] = isset($obj->my_config['piclens_wall_backgroundAlpha']) ? $obj->my_config['piclens_wall_backgroundAlpha'] : "1.0"; 
     59  if (isset($obj->my_config['piclens_wall_backgroundColor'])) 
     60    $block['backgroundColor'] = str_replace('#', '%23', @$obj->my_config['piclens_wall_backgroundColor']) ; 
     61  if (isset($obj->my_config['piclens_wall_glowColor'])) 
     62    $block['glowColor'] = str_replace('#', '%23', @$obj->my_config['piclens_wall_glowColor']); 
     63  if (isset($obj->my_config['piclens_wall_descriptionHeight'])) 
     64    $block['descriptionHeight'] = @$obj->my_config['piclens_wall_descriptionHeight']; 
     65  if (isset($obj->my_config['piclens_wall_tilt'])) 
     66    $block['tilt'] = $obj->my_config['piclens_wall_tilt']; 
     67 
     68    if (isset($obj->my_config['piclens_wall_backgroundImage']) and !empty($obj->my_config['piclens_wall_backgroundImage'])) 
     69        $block['backgroundImage'] = @$obj->my_config['piclens_wall_backgroundImage']; 
     70 
     71    if (isset($obj->my_config['piclens_wall_tutorial']) and !empty($obj->my_config['piclens_wall_tutorial'])) 
     72        $block['tutorial'] = (empty($obj->my_config['piclens_wall_tutorialtime']) ? "4500" : @$obj->my_config['piclens_wall_tutorialtime']).','.@$obj->my_config['piclens_wall_tutorial'];               
     73 
     74 
     75        if (isset($obj->my_config['piclens_wall_customButtonURL']) and !empty($obj->my_config['piclens_wall_customButtonURL'])) 
     76        $block['customButton'] = @$obj->my_config['piclens_wall_customButtonURL'].(empty($obj->my_config['piclens_wall_customButtonTARGET']) ? ','.PICLENS_PATH : ','.@$obj->my_config['piclens_wall_customButtonTARGET']);  
     77 
     78    if (isset($obj->my_config['piclens_wall_icons']) and !empty($obj->my_config['piclens_wall_icons'])) 
     79        $block['icons'] = @$obj->my_config['piclens_wall_icons'];  
     80    if (isset($obj->my_config['piclens_wall_linkCSS']) and !empty($obj->my_config['piclens_wall_linkCSS'])) 
     81        $block['icons'] = @$obj->my_config['piclens_wall_linkCSS'];  
     82 
    4683   
    4784} 
Note: See TracChangeset for help on using the changeset viewer.