You are here

function theme_iek_image_resize_summary in Image effect kit 7

Theme function for resizing effect summary.

File

./iek.module, line 716
Primarily Drupal hooks and global API functions to manipulate image styles.

Code

function theme_iek_image_resize_summary($variables) {
  $data = $variables['data'];
  if (isset($data['width']) && isset($data['height'])) {
    $summary = array();
    $summary['width'] = $data['width'] . 'px';
    $summary['height'] = $data['height'] . 'px';
    $summary['blank margin'] = $data['blank_margin'] ? 'true' : 'false';
    if ($data['blank_margin']) {
      $summary['blank margin background color'] = $data['blank_margin_bg_color'];
    }
    $summary['position'] = $data['position'];
    if ($data['position'] == 'coordinate') {
      $summary['x'] = $data['x'] . 'px';
      $summary['y'] = $data['y'] . 'px';
    }
    return iek_generate_summary($summary);
  }
  return '';
}