You are here

amazon-detail.tpl.php in Amazon Product Advertisement API 7

Same filename and directory in other branches
  1. 7.2 templates/amazon-detail.tpl.php

File

templates/amazon-detail.tpl.php
View source
<?php

/**
 * @file
 * Outputs a single piece of data as provided in $$detail.
 *
 * This is used primarily for amazon_filter, where any arbitrary piece of data
 * from the $item can be accessed.
 */
if (!empty($detail) && !empty(${$detail})) {
  print ${$detail};
}
else {
  print t('%detail not found for %asin', array(
    '%detail' => $detail,
    '%asin' => $asin,
  ));
}