Guest User

The Events Calendar 2

a guest
Jul 18th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 KB | None | 0 0
  1. <?php
  2. /**
  3. * Single Event Template
  4. * A single event. This displays the event title, description, meta, and
  5. * optionally, the Google map for the event.
  6. *
  7. * Override this template in your own theme by creating a file at [your-theme]/tribe-events/single-event.php
  8. *
  9. * @package TribeEventsCalendar
  10. * @since 2.1
  11. * @author Modern Tribe Inc.
  12. *
  13. */
  14.  
  15. if ( !defined('ABSPATH') ) { die('-1'); }
  16.  
  17. $event_id = get_the_ID();
  18.  
  19. ?>
  20.  
  21. <div id="tribe-events-content" class="tribe-events-single">
  22.  
  23. <p class="tribe-events-back"><a href="<?php echo tribe_get_events_link() ?>"> <?php _e( '&laquo; All Events', 'tribe-events-calendar' ) ?></a></p>
  24.  
  25. <!-- Notices -->
  26. <?php tribe_events_the_notices() ?>
  27.  
  28. <?php the_title( '<h2 class="tribe-events-single-event-title summary">', '</h2>' ); ?>
  29.  
  30. <div class="tribe-events-schedule updated published tribe-clearfix">
  31. <h3><?php echo tribe_events_event_schedule_details(); ?></h3>
  32. <?php echo tribe_events_event_recurring_info_tooltip(); ?>
  33. <?php if ( tribe_get_cost() ) : ?>
  34. <span class="tribe-events-divider">|</span>
  35. <span class="tribe-events-cost"><?php echo tribe_get_cost( null, true ) ?></span>
  36. <?php endif; ?>
  37. </div>
  38.  
  39. <!-- Event header -->
  40. <div id="tribe-events-header" <?php tribe_events_the_header_attributes() ?>>
  41. <!-- Navigation -->
  42. <h3 class="tribe-events-visuallyhidden"><?php _e( 'Event Navigation', 'tribe-events-calendar' ) ?></h3>
  43. <ul class="tribe-events-sub-nav">
  44. <li class="tribe-events-nav-previous"><?php tribe_the_prev_event_link( '&laquo; %title%' ) ?></li>
  45. <li class="tribe-events-nav-next"><?php tribe_the_next_event_link( '%title% &raquo;' ) ?></li>
  46. </ul><!-- .tribe-events-sub-nav -->
  47. </div><!-- #tribe-events-header -->
  48.  
  49. <?php while ( have_posts() ) : the_post(); ?>
  50. <div id="post-<?php the_ID(); ?>" <?php post_class('vevent'); ?>>
  51. <!-- Event featured image -->
  52. <!–- <?php echo tribe_event_featured_image(); ?> -–>
  53.  
  54.  
  55. <!-- Event content -->
  56. <?php do_action( 'tribe_events_single_event_before_the_content' ) ?>
  57. <div class="tribe-events-single-event-description tribe-events-content entry-content description">
  58. <?php the_content(); ?>
  59. </div><!-- .tribe-events-single-event-description -->
  60. <?php do_action( 'tribe_events_single_event_after_the_content' ) ?>
  61.  
  62. <!-- Event meta -->
  63. <?php do_action( 'tribe_events_single_event_before_the_meta' ) ?>
  64. <?php echo tribe_events_single_event_meta() ?>
  65. <?php do_action( 'tribe_events_single_event_after_the_meta' ) ?>
  66. </div><!-- .hentry .vevent -->
  67. <?php if( get_post_type() == TribeEvents::POSTTYPE && tribe_get_option( 'showComments','no' ) == 'yes' ) { comments_template(); } ?>
  68. <?php endwhile; ?>
  69.  
  70. <!-- Event footer -->
  71. <div id="tribe-events-footer">
  72. <!-- Navigation -->
  73. <!-- Navigation -->
  74. <h3 class="tribe-events-visuallyhidden"><?php _e( 'Event Navigation', 'tribe-events-calendar' ) ?></h3>
  75. <ul class="tribe-events-sub-nav">
  76. <li class="tribe-events-nav-previous"><?php tribe_the_prev_event_link( '&laquo; %title%' ) ?></li>
  77. <li class="tribe-events-nav-next"><?php tribe_the_next_event_link( '%title% &raquo;' ) ?></li>
  78. </ul><!-- .tribe-events-sub-nav -->
  79. </div><!-- #tribe-events-footer -->
  80.  
  81. </div><!-- #tribe-events-content -->
Advertisement
Add Comment
Please, Sign In to add comment