You are here

function theme_uc_option_image_preloaded in Ubercart Option Images 6

Theme option image preloaded images.

Parameters

object $node:

string $size: (optional) An imagecache preset or '_original'.

Return value

string Markup.

1 theme call to theme_uc_option_image_preloaded()
uc_option_image_nodeapi in ./uc_option_image.module
Implements hook_nodeapi().

File

./uc_option_image.module, line 626
Provides image upload fields for attribute options. @author Tj Holowaychuk <tj@vision-media.ca/> @link http://vision-media.ca @todo supply 'default' image field when no option images are supplied or no option image attributes are…

Code

function theme_uc_option_image_preloaded($aid, $node, $size = '_original') {
  $output = '<div id="uc-option-image-preloaded-' . $node->nid . '" class="uc-option-image-preloaded" style="display: none;">';
  foreach ((array) $node->option_images as $i => $option_image) {
    $output .= theme('uc_option_image', $aid, $option_image, $size);
  }
  $output .= theme('uc_option_image_no_image', $node, $size);
  $output .= '</div>';
  return $output;
}