Skip to content

Instantly share code, notes, and snippets.

@zachseifts
Created September 2, 2011 19:45
Show Gist options
  • Save zachseifts/1189685 to your computer and use it in GitHub Desktop.
Save zachseifts/1189685 to your computer and use it in GitHub Desktop.
<?php
if (is_object($vars['node']) && !empty($vars['node']->iids)) {
foreach($vars['node']->iids as $image) {
$rotating_image = node_load($image);
$node_title = $rotating_image->title;
$header_image .= theme('imagecache', 'banner-header', $rotating_image->images['_original'], $node_title, $node_title);
};
$vars['body_classes'] .= ' heading-image';
} else {
$vars['body_classes'] .= ' no-heading-image';
}
$vars['header_image'] = $header_image;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment