<?php
 drupal_add_js
(path_to_theme() .'/jquery.cycle.js''theme');
 
drupal_add_js("
   $(document).ready(function(){
     $('#photos').cycle({
      fx:     'fade',
      speed:  2500,
      timeout: 0,
      pager:  '#pnav'
      });
    });
  "
'inline');

  // set the name of the imagecache rule
  
$imagecache 'page';
  if (
count($node->field_image) && $node->field_image[0]['fid'] != 0) {
    if (
count($node->field_image)> 1) {
      
$images '<div id="photos" class="cycle">';
    }
    else {
      
$images '<div id="photos" class="single">';
    }
    foreach (
$node->field_image as $key => $image) {
     
$images .= '<a title="'$image['title'] .'" href="'base_path() . $image['filepath'] .'" rel="lightshow[gallery-node-'$node->nid .']">';

     $images .= '<img title="'$image['title'] .'" alt="'$image['alt'] .'" src="'base_path() . file_directory_path() . '/imagecache/'$imagecache .'/'$image['filepath'] .'">';

      $images .= '</a>';
    }
    
$images .= '</div>';
    
$images .= '<script type="text/javascript">
      <!--
        document.write(\'<div class="help">Click image to view full size.</div><div id="pnav"></div>\');
      //-->
      </script>'
;

  }

}
?>
<div id="node-<?php print $node->nid?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?> clear-block">

<?php print $header?>

<?php print $picture ?>

<?php if ($page == 0): ?>
  <h2><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>
<?php endif; ?>
<div class="content">
    <?php if ($images): ?>
      <?php print $images ?>
    <?php endif; ?>
  </div>
  <div class="clear-block">
    <?php print $content ?>
  </div>
</div>
<?php
  
if ($links) {
    print 
$links;
  }
?>

</div>
?>

0
Your rating: None