43a44,53
> 
>     $form['simplegallery_lightboxpreset'] = array(
>     '#type' => 'textfield',
>     '#title' => t('Lightbox Preset'),
>     '#default_value' => variable_get('simplegallery_lightboxpreset', 'big'),
>     '#size' => 20,
>     '#maxlength' => 20,
>     '#description' => t("The name of the ImageCache preset you want to use to display the lightbox images."),
>     '#required' => TRUE,
>   );
131a142
>   $lightboximagecache = variable_get('simplegallery_lightboxpreset', 'big');
168,169d178
<           //$rows[0]['data'][] = l(theme('imagecache', $imagecache, $node->{$imagefield}[0]['filepath']),$node->{$imagefield}[0]['filepath'], array('attributes' => array('rel' => 'lightbox[' . $term->name . ']', 'title' => $node->{$imagefield}[0]['data']['title']), 'html'=>TRUE));
<           
171c180,192
<             $rows[0]['data'][] = l(theme('imagecache', $imagecache, $node->{$imagefield}[$i]['filepath']),$node->{$imagefield}[$i]['filepath'], array('attributes' => array('rel' => 'lightbox[' . $term->name . ']', 'title' => $node->{$imagefield}[$i]['data']['title']), 'html'=>TRUE));
---
>              $linkto = theme('imagecache', $imagecache, $node->{$imagefield}[0]['filepath']);
>              if ($_image = image_get_info(imagecache_create_path($lightboximagecache, $node->{$imagefield}[0]['filepath']))) {
>               $attributes['width'] = $_image['width'];
>               $attributes['height'] = $_image['height'];
>             }
>             // check is_null so people can intentionally pass an empty array of attributes to override
>             // the defaults completely... if
>             if (is_null($attributes)) {
>               $attributes['class'] = 'imagecache imagecache-'. $lightboximagecache;
>             }
>             $attributes = drupal_attributes($attributes);
>             $imagecache_url = imagecache_create_url($lightboximagecache, $node->{$imagefield}[0]['filepath']);
>             $rows[0]['data'][] = l($linkto,$imagecache_url, array('attributes' => array('rel' => 'lightbox[' . $term->name . ']', 'title' => $node->{$imagefield}[$i]['data']['title']), 'html'=>TRUE));
173d193
<       
253c273
< }
\ Kein Zeilenumbruch am Dateiende.
---
> }
