email-friend.phtml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * @version 7.5
  4. */
  5. ?>
  6. <?php
  7. /** @var \Ppb\Db\Table\Row\User $seller */
  8. $seller = $listing->findParentRow('\Ppb\Db\Table\Users');
  9. $this->userDetails($seller);
  10. $this->listingDetails($listing);
  11. ?>
  12. <div class="pull-right">
  13. <a href="<?php echo $this->url($listing->link()); ?>" class="btn btn-default">
  14. <?php echo $this->_('Return to Listing'); ?>
  15. </a>
  16. </div>
  17. <form action="<?php echo $this->form->getAction(); ?>" method="<?php echo $this->form->getMethod(); ?>"
  18. class="form-horizontal">
  19. <?php echo $this->form->hiddenElements; ?>
  20. <dl class="dl-horizontal">
  21. <dt><?php echo $this->_('Name'); ?></dt>
  22. <dd><?php echo $listing['name']; ?></dd>
  23. <?php $media = $listing->getMedia(array('image', 'video')); ?>
  24. <?php if (count($media) > 0) {
  25. $mainImage = $listing->getMainImage();
  26. ?>
  27. <dd>
  28. <?php echo $this->thumbnail($mainImage, 76, true,
  29. array('alt' => $listing['name'])); ?>
  30. </dd>
  31. <?php } ?>
  32. <?php if ($listing['listing_type'] == 'auction') { ?>
  33. <dt><?php echo $this->_('Current Bid'); ?></dt>
  34. <dd><?php echo $this->amount($listing->currentBid(true), $listing['currency']); ?></dd>
  35. <dt><?php echo $this->_('Bids'); ?></dt>
  36. <dd><?php echo count($listing->getBids()); ?></dd>
  37. <dt><?php echo $this->_('Minimum Bid'); ?></dt>
  38. <dd><?php echo $this->amount($listing->minimumBid(), $listing['currency']); ?></dd>
  39. <?php } ?>
  40. <?php if ($listing->isBuyOut()) { ?>
  41. <dt><?php echo $this->_('Price'); ?></dt>
  42. <dd><?php echo $this->amount($listing['buyout_price'], $listing['currency']); ?></dd>
  43. <?php } ?>
  44. <dt><?php echo $this->_('Payment Methods'); ?></dt>
  45. <dd><?php echo $this->fieldDisplay(array_map(function ($array) {
  46. return $array['name'];
  47. }, $listing->getPaymentMethods()), null, 'N/A'); ?></dd>
  48. </dl>
  49. <?php foreach ($this->form->getElements() as $element) { ?>
  50. <?php echo $this->partial('partials/form-element.phtml', array('element' => $element)); ?>
  51. <?php } ?>
  52. </form>