function theme_file_styles_image in Styles 7.2
Same name in this branch
- 7.2 contrib/file_styles/file_styles.theme.inc \theme_file_styles_image()
- 7.2 contrib/file_styles/includes/themes/file_styles.theme.inc \theme_file_styles_image()
Same name and namespace in other branches
- 7 contrib/file_styles/file_styles.theme.inc \theme_file_styles_image()
Display an image according to the style presented, or raw as specified.
1 theme call to theme_file_styles_image()
- FileStyles::thumbnail in contrib/
file_styles/ includes/ styles/ FileStyles.inc
File
- contrib/
file_styles/ includes/ themes/ file_styles.theme.inc, line 12 - file_styles/includes/themes/file_styles.theme.inc
Code
function theme_file_styles_image($variables) {
// @TODO: Check to see if the image is local as well, for getsize.
if (isset($variables['image_style'])) {
$output = theme('image_style', array(
'style_name' => $variables['image_style'],
'path' => $variables['image_uri'],
'alt' => $variables['alt'],
'title' => $variables['title'],
'getsize' => FALSE,
'attributes' => $variables['attributes'],
));
}
else {
$output = theme('image', array(
'path' => $variables['image_uri'],
'alt' => $variables['alt'],
'title' => $variables['title'],
'getsize' => FALSE,
'attributes' => $variables['attributes'],
));
}
return $output;
}