function 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

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;
}