Index: amazon_store_item_reviews_panel.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/amazon_store/amazon_store_item_reviews_panel.tpl.php,v
retrieving revision 1.3.2.2
diff -u -r1.3.2.2 amazon_store_item_reviews_panel.tpl.php
--- amazon_store_item_reviews_panel.tpl.php	7 Apr 2010 21:00:42 -0000	1.3.2.2
+++ amazon_store_item_reviews_panel.tpl.php	3 Oct 2010 18:52:26 -0000
@@ -5,28 +5,33 @@
  *   template for item_reviews panel
  */
 
-if ($item->CustomerReviews->Review) {
-  $rounded_avg = round($item->CustomerReviews->AverageRating);
+if (empty($item->CustomerReviews->Review)) {
+  if ($item->CustomerReviews->IFrameURL) print '<iframe src="'. $item->CustomerReviews->IFrameURL .'" />';
+}
+else {
+  if ($item->CustomerReviews->Review) {
+    $rounded_avg = round($item->CustomerReviews->AverageRating);
 
-?>
-<p><strong>Average Amazon User Rating:</strong>
-  <?php print theme('image', "$directory/images/{$rounded_avg}stars.gif","{$item->CustomerReviews->AverageRating} stars", "{$item->CustomerReviews->AverageRating} stars"); ?>
-  
-<?php
-  foreach ($item->CustomerReviews->Review as $review) {
+  ?>
+  <p><strong>Average Amazon User Rating:</strong>
+    <?php print theme('image', "$directory/images/{$rounded_avg}stars.gif","{$item->CustomerReviews->AverageRating} stars", "{$item->CustomerReviews->AverageRating} stars"); ?>
+    
+  <?php
+    foreach ($item->CustomerReviews->Review as $review) {
 
-    $rounded_stars = round($review->Rating);
-    ?>
-<div class="customer_review">
-<p>
-  <?php print theme('image', "$directory/images/{$rounded_stars}stars.gif","{$review->Rating} stars", "{$review->Rating} stars"); ?>
-	<strong> <?php print $review->Summary ?></strong>
-	<?php print $review->Date ?></p>
-<p>Reviewer: <strong><?php print $review->Reviewer->Name ?></strong></p>
+      $rounded_stars = round($review->Rating);
+      ?>
+  <div class="customer_review">
+  <p>
+    <?php print theme('image', "$directory/images/{$rounded_stars}stars.gif","{$review->Rating} stars", "{$review->Rating} stars"); ?>
+    <strong> <?php print $review->Summary ?></strong>
+    <?php print $review->Date ?></p>
+  <p>Reviewer: <strong><?php print $review->Reviewer->Name ?></strong></p>
 
-<p><?php print $review->Content ?></p>
-</div>
-<?php
+  <p><?php print $review->Content ?></p>
+  </div>
+  <?php
 
+    }
   }
 }

