amazon-item.tpl.php in Amazon Product Advertisement API 7
Same filename and directory in other branches
Theme the 'amazon-item' style. Many, many available variables. See template_preprocess_amazon_item(). Everything that gets put into $variables there is available.
5 theme calls to amazon-item.tpl.php
- amazon_search_search_execute in amazon_search/
amazon_search.module - Implements hook_search_execute(). Implements remote Amazon searching.
- amazon_test_form in ./
amazon.admin.inc - Form for testing a single ASIN.
- template_preprocess_amazon_views_view_row_item in ./
amazon.module - Template helper for theme_amazon_views_view_row_item
- _amazon_filter_process_text in amazon_filter/
amazon_filter.module - Actual filter processing function - changes [amazon <whatever>] in text.
- _amazon_filter_process_text in amazon_filter/
amazon_filter.module - Actual filter processing function - changes [amazon <whatever>] in text.
File
templates/amazon-item.tpl.phpView 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>