function theme_ctools_style_icon in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 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($vars) {
$image = $vars['image'];
ctools_add_css('stylizer');
ctools_add_js('stylizer');
$output = '<div class="ctools-style-icon">';
$output .= $vars['image'];
if ($vars['title']) {
$output .= '<div class="caption">' . $vars['title'] . '</div>';
}
$output .= '</div>';
return $output;
}