Index: sifr.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/sifr/sifr.module,v retrieving revision 1.13 diff -u -r1.13 sifr.module --- sifr.module 20 Feb 2007 19:50:42 -0000 1.13 +++ sifr.module 20 Feb 2007 20:37:25 -0000 @@ -359,11 +359,12 @@ '#size' => 12, '#default_value' => $edit['bgcolor'] ? $edit['bgcolor'] : '#FFFFFF', ); + $transparency_options = array(0 => t('No transparency'), 1 => t('Use transparency'), 2 => t('Opaque background')); $form['colors']['transparent'] = array( - '#type' => 'checkbox', - '#title' => t('Use transparency'), + '#title' => t('Transparency'), + '#type' => 'radios', + '#options' => $transparency_options, '#default_value' => $edit['transparent'], - '#return_value' => 1, '#description' => t('Warning: Flash transparency is not well supported in all browsers and therefore not recommended.'), ); $form['tweaks'] = array( @@ -685,7 +686,17 @@ $padding .= is_numeric($rule->paddingright) ? ", nPaddingRight: $rule->paddingright" : ''; $padding .= is_numeric($rule->paddingbottom) ? ", nPaddingBottom: $rule->paddingbottom" : ''; $padding .= is_numeric($rule->paddingleft) ? ", nPaddingLeft: $rule->paddingleft" : ''; - $wsmode = $rule->transparent ? ", sWmode: 'transparent'" : ''; + switch ($rule->transparent) { + case '1': + $wsmode = ", sWmode: 'transparent'"; + break; + case '2': + $wsmode = ", sWmode: 'opaque'"; + break; + default: + $wsmode = ''; + break; + } $case = in_array($rule->lettercase,array('upper','lower')) ? ", sCase: \"$rule->lettercase\"" : ''; if($rule->underline){ $vars[] = 'underline=true';