function theme_imagefield_crop_edit_crop_image_row in Imagefield Crop 5
1 theme call to theme_imagefield_crop_edit_crop_image_row()
File
- ./
imagefield_crop.module, line 674
Code
function theme_imagefield_crop_edit_crop_image_row($element) {
list($cropw, $croph) = explode('x', $element['#croparea']);
$cropid = $element['#cropid'];
$output .= '<div class="imagefield-crop-preview" style="width:' . $cropw . 'px; height:' . $croph . 'px">';
$output .= drupal_render($element['preview']) . '</div>';
if ($element['crop']) {
$output .= '<div class="imagefield-edit-image-detail" id="imagefield-edit-image-detail-' . $cropid . '">';
// REFACTOR: Don't 'flags' only if multiple is unsupported
$output .= '<div class="imagefield-edit-image-flags">' . drupal_render($element['flags']) . '</div>';
$output .= '<div class="imagefield-edit-image-description">' . drupal_render($element['description']);
$output .= '</div>';
$output .= drupal_render($element['crop']);
$output .= drupal_render($element['alt']);
$output .= drupal_render($element['title']);
$output .= '</div>';
}
$output = '<div class="imagefield-edit-image-row clear-block" id="imagefield-edit-image-row-' . $cropid . '">' . $output . '</div>';
if (isset($element['replace'])) {
$output .= '<div class="imagefield-edit-image-replace">' . drupal_render($element['replace']) . '</div>';
}
return $output;
}