Guest User

display duration in list view

a guest
Feb 10th, 2012
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. <table cellspacing="0">
  2. <?php if (tribe_is_multiday() || !tribe_get_all_day()): ?>
  3. <tr>
  4. <td class="tribe-events-event-meta-desc"><?php _e('Start:', 'tribe-events-calendar') ?></td>
  5. <td class="tribe-events-event-meta-value" itemprop="startDate" content="<?php echo tribe_get_start_date(); ?>"><?php echo tribe_get_start_date(); ?></td>
  6. </tr>
  7. <?php if (tribe_get_custom_field('Duration') != 'none'): ?>
  8. <tr>
  9. <td class="tribe-events-event-meta-desc"><?php _e('Duration:', 'tribe-events-calendar') ?></td>
  10. <td class="tribe-events-event-meta-value" itemprop="endDate"><?php echo tribe_custom_field('Duration'); ?></td>
  11. </tr>
  12. <?php endif; ?>
  13. <?php else: ?>
  14. <tr>
  15. <td class="tribe-events-event-meta-desc"><?php _e('Date:', 'tribe-events-calendar') ?></td>
  16. <td class="tribe-events-event-meta-value" itemprop="startDate" content="<?php echo tribe_get_start_date(); ?>"><?php echo tribe_get_start_date(); ?></td>
  17. </tr>
  18. <?php endif; ?>
  19.  
  20. <?php
  21. $cost = tribe_get_cost();
  22. if ( !empty( $cost ) ) :
  23. ?>
  24. <tr>
  25. <td class="tribe-events-event-meta-desc"><?php _e('Cost:', 'tribe-events-calendar') ?></td>
  26. <td class="tribe-events-event-meta-value" itemprop="price"><?php echo $cost; ?></td>
  27. </tr>
  28. <?php endif; ?>
  29. </table>
Advertisement
Add Comment
Please, Sign In to add comment