Advertisement
Guest User

Venue Events Dates Only

a guest
Oct 29th, 2012
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. Shortcodes.php Line 932, find:
  2. if (isset($id) && $id > 0) {
  3. $atts = array_merge($atts, array('venue_id'=>$id, 'use_venue_id'=>true));
  4. }
  5.  
  6. Under that, Paste:
  7. if(isset($show_only_dates) && $show_only_dates == true) {
  8. $atts['venue_dates_only'] = true;
  9. }
  10.  
  11. event_list_display.php around line 40 you'll see:
  12.  
  13. global $this_event_id;
  14. $this_event_id = $event_id;
  15. ?>
  16. After the ?> paste :
  17.  
  18. <?php if(isset($venue_dates_only) && $venue_dates_only == true )
  19. {
  20. ?>
  21. <h3 id="event_date-<?php echo $event_id ?>" class="event_date"><a title="<?php _e('Date:', 'event_espresso'); ?>" class="a_event_date" id="a_event_date-<?php echo $event_id ?>" href="<?php echo $registration_url; ?>"><?php echo event_date_display($start_date, get_option('date_format')) ?></a></h3>
  22.  
  23. <?php
  24. } else {
  25. ?>
  26.  
  27. Then on the last line of the same file paste:
  28.  
  29. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement