rendered paste bodyfunction lmds_roating_header($nid, $preset, $transtime) { if (node_load($nid)){ //print_r(($node->field_image));$output = <<<lmdsJava <script type="text/javascript"> $(document).ready(function() { $('#slideshow').slideshow({ timeout: $transtime, type: 'random' }); }); </script>lmdsJava; $output .= '<div id="slideshow" class="' . $preset . '">'; $node = node_load($nid); foreach ( $node->field_image as $image) { if (is_file($image['filepath'])) { $output .= "\n" . theme('imagecache', $preset, $image[filepath]); // print $image[filepath]; } } $output .= '</div>'; } return $output;}function lmds_imagefield_image($file, $alt = '', $title = '', $attributes = NULL, $getsize = TRUE) { $file = (array)$file; if (!$getsize || (is_file($file['filepath']) && (list($width, $height, $type, $image_attributes) = @getimagesize($file['filepath'])))) { $attributes = drupal_attributes($attributes); $path = $file['fid'] == 'upload' ? $file['preview'] : $file['filepath']; $title = empty($title) ? $file['title'] : $title; //drupal_add_js(path_to_theme() . '/thickbox.js'); // drupal_add_css(path_to_theme() . '/thickbox.css'); if ($width >= $height) { $preset = '185x150sc'; } else { $preset = '150x185sc'; } return '<a href="' . base_path() . $path . '" title="' . $title . '" class="thickbox">' . theme('imagecache', $preset, $path) . '</a>'; } }