You are here

function theme_textimage_gif_transparency_effect_summary in Textimage 7.3

Renders 'textimage_gif_transparency' image effect summary.

Implements theme_hook().

Parameters

array $variables: An associative array containing:

  • data: The current configuration of the image effect.

Return value

string The HTML for the summary of the image effect.

File

effects/textimage_gif_transparency.inc, line 62
Implementation of the 'textimage_gif_transparency' image effect.

Code

function theme_textimage_gif_transparency_effect_summary($variables) {
  $output = NULL;

  // Merge input data with effect defaults.
  $data = drupal_array_merge_deep(_textimage_gif_transparency_effect_defaults(), $variables['data']);

  // GIF transparency color.
  $output .= ' ' . t('- Color:') . ' ';
  if ($data['gif_transparency_color']) {
    $output .= theme('textimage_colored_string', array(
      'text' => 'MMMM',
      'foreground_color' => $data['gif_transparency_color'],
      'background_color' => $data['gif_transparency_color'],
      'border' => TRUE,
      'border_color' => 'matchLuma',
    ));
  }
  else {
    $output .= ' ' . t('Not set');
  }
  return $output;
}