You are here

function theme_iek_image_watermark_summary in Image effect kit 7

Theme function for watermark effect summary.

File

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

Code

function theme_iek_image_watermark_summary($variables) {
  $data = $variables['data'];
  if (isset($data['text']) && isset($data['font']) && isset($data['color']) && isset($data['size']) && isset($data['angle']) && isset($data['position']) && isset($data['padding_top']) && isset($data['padding_right']) && isset($data['padding_bottom']) && isset($data['padding_left'])) {
    $summary = array();
    $summary['text'] = $data['text'];
    $summary['font'] = $data['font'];
    $summary['color'] = $data['color'];
    $summary['size'] = $data['size'] . 'px';
    $summary['angle'] = $data['angle'] . '°';
    $summary['position'] = $data['position'];
    $summary['top'] = $data['padding_left'] . 'px';
    $summary['right'] = $data['padding_right'] . 'px';
    $summary['bottom'] = $data['padding_bottom'] . 'px';
    $summary['left'] = $data['padding_left'] . 'px';
    return iek_generate_summary($summary);
  }
  return '';
}