current-price.phtml 526 B

1234567891011121314151617
  1. <?php
  2. $class = null;
  3. $currentBid = $listing->currentBid(true);
  4. if ($currentBid > 0) {
  5. if ($listing['buyout_price'] == $currentBid) {
  6. $class = 'class="buyout-amount"';
  7. }
  8. else if ($currentBid < $listing['reserve_price']) {
  9. $class = 'class="under-reserve-amount"';
  10. }
  11. else if ($currentBid >= $listing['reserve_price']) {
  12. $class = 'class="over-reserve-amount"';
  13. } ?>
  14. <span <?php echo $class; ?>><?php echo $this->amount($currentBid, $listing['currency']); ?></span>
  15. <?php } ?>