Some of my products have multiple images and some don't.

Those that do, I want to float all images, blurb and attributes etc to the left, and those that don't I want to align the single image central.

To get this to work, I added the following highlighted code to tpl_product_info_display.php

Code:
<div id="mainProductBox">
<h3 id="productName"><?php echo $products_name; ?></h3>

<?php
 require(DIR_WS_MODULES . zen_get_module_directory('additional_images.php'));
 ?>
<?php
 if ($flag_show_product_info_additional_images != 0 && $num_images > 0) {
  ?>

<div id="productImageBox2"><!-- images etc float left -->
<?php } else { ?>
<div id="productImageBox"><!-- image is centralised -->
<?php
  }
?>

<!-- bof Main Product Image -->
Although this works, I suspect the code is flawed. For if there are additional images, tpl_product_info_display.php will call the following twice:

Code:
 require(DIR_WS_MODULES . zen_get_module_directory('additional_images.php'));
when all I really need is this part of additional_images.php

Code:
<?php
 if ($flag_show_product_info_additional_images != 0 && $num_images > 0) {
  ?>
The difference is CSS is as follows:

#productImageBox { }

#productImageBox2 {float:left;}

I would appreciate if someone could steer me right on this.