Guest User

Untitled

a guest
Aug 18th, 2013
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 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. <p>Organized by: <?php echo tribe_get_organizer(); ?></p>
  37. <?php endif; ?>
  38. </div>
  39.  
  40. <!-- Event header -->
  41. <div id="tribe-events-header" <?php tribe_events_the_header_attributes() ?>>
  42. <!-- Navigation -->
  43. <h3 class="tribe-events-visuallyhidden"><?php _e( 'Event Navigation', 'tribe-events-calendar' ) ?></h3>
  44. <ul class="tribe-events-sub-nav">
  45. <li class="tribe-events-nav-previous"><?php tribe_the_prev_event_link( '&laquo; %title%' ) ?></li>
  46. <li class="tribe-events-nav-next"><?php tribe_the_next_event_link( '%title% &raquo;' ) ?></li>
  47. </ul><!-- .tribe-events-sub-nav -->
  48. </div><!-- #tribe-events-header -->
  49.  
  50. <?php while ( have_posts() ) : the_post(); ?>
  51. <div id="post-<?php the_ID(); ?>" <?php post_class('vevent'); ?>>
  52. <!-- Event featured image -->
  53. <?php echo tribe_event_featured_image(); ?>
  54.  
  55. <!-- Event content -->
  56. <div style='text-align:left;'>
  57. <?php do_action( 'tribe_events_single_event_before_the_content' ) ?>
  58. <div align="left" class="tribe-events-single-event-description tribe-events-content entry-content description">
  59. <?php the_content(); ?>
  60. </div><!-- .tribe-events-single-event-description -->
  61. <br/><br/>
  62. <?php do_action( 'tribe_events_single_event_after_the_content' ) ?></div>
  63. <!-- Event meta -->
  64. <?php do_action( 'tribe_events_single_event_before_the_meta' ) ?>
  65. <?php echo tribe_events_single_event_meta() ?>
  66. <?php do_action( 'tribe_events_single_event_after_the_meta' ) ?>
  67. </div><!-- .hentry .vevent -->
  68. <?php if( get_post_type() == TribeEvents::POSTTYPE && tribe_get_option( 'showComments','no' ) == 'yes' ) { comments_template(); } ?>
  69. <?php endwhile; ?>
  70.  
  71. <!-- Event footer -->
  72. <div id="tribe-events-footer">
  73. <!-- Navigation -->
  74. <!-- Navigation -->
  75. <h3 class="tribe-events-visuallyhidden"><?php _e( 'Event Navigation', 'tribe-events-calendar' ) ?></h3>
  76. <ul class="tribe-events-sub-nav">
  77. <li class="tribe-events-nav-previous"><?php tribe_the_prev_event_link( '&laquo; %title%' ) ?></li>
  78. <li class="tribe-events-nav-next"><?php tribe_the_next_event_link( '%title% &raquo;' ) ?></li>
  79. </ul><!-- .tribe-events-sub-nav -->
  80. </div><!-- #tribe-events-footer -->
  81.  
  82. </div><!-- #tribe-events-content -->
Advertisement
Add Comment
Please, Sign In to add comment