BakerMan

Untitled

May 8th, 2013
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. <?php
  2. $cost = tribe_get_cost();
  3. if ( !empty( $cost ) ) :
  4. ?>
  5. <tr>
  6. <td class="tribe-events-event-meta-desc"><?php _e('Cost:', 'tribe-events-calendar'); ?></td>
  7. <td class="tribe-events-event-meta-value" itemprop="price"> <?php
  8. the_content();
  9. tribe_get_ticket_form();
  10. $price_differential = max($wootickets_pricing) > min($wootickets_pricing);
  11.  
  12. if (count($wootickets_pricing) === 1 or !price_differential) {
  13. $price = woocommerce_price($wootickets_pricing[0]);
  14. echo "Tickets cost $price";
  15. }
  16. elseif (count($wootickets_pricing) > 1) {
  17. $from = woocommerce_price(min($wootickets_pricing));
  18. $to = woocommerce_price(max($wootickets_pricing));
  19. echo "Tickets from $from &ndash; $to";
  20. }
  21. ?></td>
  22. </tr>
  23. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment