Amazon Media Manager – Templates
-
After getting the plug-in installed and working, I have only been able to get one custom template working at a time. I’m not sure why, but when I try to put two custom templates into my amm-extras.php file, I always end up with debilitating errors. Can anyone help me spot the problem with my PHP code?
<?php } function amm_template_a($amm) { ?> <div class="amm"> <?php for ($x = 0; $x < $amm->totalItems(); $x++ ) :?> <p><?= $amm->imageLink(medium);?><br /> <strong>Title: </strong> <?= $amm->title();?><br /> <emphasis><?= $amm->autoAuthorLabel();?>: </empahsis> <?= $amm->autoAuthor();?><br /> <?= $amm->asin();?><br /> <?= $amm->country();?><br /> <?= $amm->fancyRatings();?><br /></p> <p><?= $amm->userComments();?><br /><br /></p> <?php $amm->nextItem(); endfor; ?> <?php return $content; } ?> </div> <?php } function amm_template_b($amm) { ?> <div class="amm"> <?php for ($x = 0; $x < $amm->totalItems(); $x++ ) :?> <table width="100%" border="1" cellspacing="0" cellpadding="0"> <tr> <td width="11%" rowspan="6"><div align="center"><?= $amm->imageLink(medium);?></div></td> <td width="89%"><strong><?= $amm->title();?></strong></td> </tr> <tr> <td><em><?= $amm->autoAuthorLabel();?>: <?= $amm->autoAuthor();?></em></td> </tr> <tr> <td>ASIN: <a href="<?= $amm->URL();?>"><?= $amm->asin();?></a></td> </tr> <tr> <td>From Amazon: <?= $amm->country();?></td> </tr> <tr> <td><?= $amm->fancyRatings();?></td> </tr> <tr> <td><?= $amm->userComments();?></td> </tr> </table> <br /> <?php $amm->nextItem(); endfor; ?> <?php return $content; } ?> </div>
The topic ‘Amazon Media Manager – Templates’ is closed to new replies.