You are here

function theme_imagefield_crop_widget in Imagefield Crop 7.3

Same name and namespace in other branches
  1. 6 imagefield_crop_widget.inc \theme_imagefield_crop_widget()
  2. 7 imagefield_crop.theme.inc \theme_imagefield_crop_widget()
  3. 7.2 imagefield_crop.module \theme_imagefield_crop_widget()

File

theme/theme.inc, line 3

Code

function theme_imagefield_crop_widget($variables) {
  $element = $variables['element'];
  $output = '';
  $output .= '<div class="imagefield-crop-widget form-managed-file clearfix">';
  if (isset($element['presets'])) {
    $output .= drupal_render($element['presets']);
    $output .= drupal_render($element['variants']);
  }
  if (isset($element['preview'])) {
    $output .= '<div class="imagefield-crop-preview">';
    $output .= drupal_render($element['preview']);
    $output .= '</div>';
  }
  if (isset($element['cropbox'])) {
    $output .= '<div class="imagefield-crop-cropbox">';
    $output .= drupal_render($element['cropbox']);
    $output .= '</div>';
  }
  if (isset($element['crop_config'])) {
    $output .= drupal_render($element['crop_config']);
  }
  $output .= '</div>';
  $output .= drupal_render_children($element);
  return $output;
}