You are here

amazon-item.tpl.php in Amazon Product Advertisement API 7.2

Same filename and directory in other branches
  1. 7 templates/amazon-item.tpl.php

Theme the 'amazon-item' style. Many, many available variables. See template_preprocess_amazon_item(). Everything that gets put into $variables there is available.

File

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

/**
 * @file
 * Theme the 'amazon-item' style.
 * Many, many available variables. See template_preprocess_amazon_item().
 * Everything that gets put into $variables there is available.
 */
?>
<div class="<?php

print $classes;
?>">
<?php

if (!empty($invalid_asin)) {
  print "<div class='invalid_asin'>This item is no longer valid on Amazon.</div>";
}
if (!empty($smallimage)) {
  print $smallimage;
}
?>
<div><strong><?php

print l($title, $detailpageurl, array(
  'html' => TRUE,
  'attributes' => array(
    'rel' => 'nofollow',
  ),
));
?></strong></div>
</div>