You are here

function theme_ctools_style_icon in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 includes/stylizer.inc \theme_ctools_style_icon()

Theme the style icon image

1 theme call to theme_ctools_style_icon()
ctools_stylizer_print_style_icon in includes/stylizer.inc
Render the icon for a style base.

File

includes/stylizer.inc, line 56
Create customized CSS and images from palettes created by user input.

Code

function theme_ctools_style_icon($image, $title = NULL) {
  ctools_add_css('stylizer');
  ctools_add_js('stylizer');
  $output = '<div class="ctools-style-icon">';
  $output .= $image;
  if ($title) {
    $output .= '<div class="caption">' . $title . '</div>';
  }
  $output .= '</div>';
  return $output;
}