function theme_canvasactions_aspect_summary in ImageCache Actions 8
Same name and namespace in other branches
- 7 canvasactions/canvasactions.inc \theme_canvasactions_aspect_summary()
Implements theme_hook() for the aspect switcher effect summary.
Parameters
array $variables: An associative array containing:
- data: The current configuration for this image effect.
Return value
string The HTML for the summary of this image effect.
File
- canvasactions/
canvasactions.inc, line 879
Code
function theme_canvasactions_aspect_summary(array $variables) {
$data = $variables['data'];
$label = imagecache_actions_get_style_label($data['portrait']);
$output = t('Portrait size: %label', array(
'%label' => $label,
));
$label = imagecache_actions_get_style_label($data['landscape']);
$output .= ', ' . t('Landscape size: %label', array(
'%label' => $label,
));
if ($data['ratio_adjustment'] != 1) {
$output .= ', ' . t("(switch at 1:@ratio_adjustment)", array(
'@ratio_adjustment' => $data['ratio_adjustment'],
));
}
return trim($output);
}