Advertisement
Guest User

Athletica Theme Modern Tribe single-page

a guest
Nov 21st, 2014
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.55 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. *
  11. */
  12.  
  13. if ( ! defined( 'ABSPATH' ) ) {
  14. die( '-1' );
  15. }
  16.  
  17. $event_id = get_the_ID();
  18.  
  19. ?>
  20.  
  21. <section id="blog-posts-two" class="single-event">
  22. <!-- Blog Post -->
  23. <div class="row blog-post single-blog-post tribe-events-single vevent hentry" id="tribe-events-content">
  24. <div class="large-offset-2 columns">
  25. </div>
  26.  
  27. <!-- Event header -->
  28.  
  29. <div id="tribe-events-header" <?php tribe_events_the_header_attributes() ?>>
  30.  
  31. <!-- Navigation -->
  32.  
  33. <h3 class="tribe-events-visuallyhidden"><?php _e( 'Event Navigation', 'tribe-events-calendar' ) ?></h3>
  34.  
  35. <ul class="tribe-events-sub-nav">
  36.  
  37. <li class="tribe-events-nav-previous"><?php tribe_the_prev_event_link( '<span>&laquo;</span> %title%' ) ?></li>
  38.  
  39. <li class="tribe-events-nav-next"><?php tribe_the_next_event_link( '%title% <span>&raquo;</span>' ) ?></li>
  40.  
  41. </ul><!-- .tribe-events-sub-nav -->
  42.  
  43. </div><!-- #tribe-events-header -->
  44.  
  45.  
  46. <div class="large-10 columns page-subtitle">
  47.  
  48. <div class="post-content-wrapp">
  49. <?php echo tribe_event_featured_image( $event_id, 'full', false ); ?>
  50. <div class="blog-info event">
  51. <div class="top-infos">
  52.  
  53. <div class="post-info">
  54. <?php echo tribe_get_start_date($post->ID, true, 'l'); ?><br />
  55. <span><?php echo tribe_get_start_date($post->ID, true, 'j'); ?></span><br />
  56. <?php echo tribe_get_start_date($post->ID, true, 'F'); ?><br />
  57.  
  58. </div>
  59. </div>
  60.  
  61. <div class="sharings-and-tags">
  62. <div class="sharings">
  63.  
  64. </div>
  65. <div class="tags"><?php echo tribe_get_start_date($post->ID, true, 'h:i a'); ?> - <?php echo tribe_get_end_date($post->ID, true, 'h:i a'); ?>
  66. </div>
  67. </div>
  68.  
  69. </div>
  70. </div>
  71. <div class="single-content row">
  72. <div class="event-content columns">
  73. <?php tribe_events_the_notices() ?>
  74.  
  75. <?php the_title( '<h5 class="tribe-events-single-event-title summary entry-title">', '</h5>' ); ?>
  76. <?php while ( have_posts() ) : the_post(); ?>
  77. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  78. <!-- Event featured image, but exclude link -->
  79. <!-- Event content -->
  80.  
  81. <?php do_action( 'tribe_events_single_event_before_the_content' ) ?>
  82.  
  83. <div class="tribe-events-single-event-description tribe-events-content entry-content description">
  84.  
  85. <?php the_content(); ?>
  86.  
  87. </div><!-- .tribe-events-single-event-description -->
  88.  
  89. <?php do_action( 'tribe_events_single_event_after_the_content' ) ?>
  90.  
  91.  
  92.  
  93. <!-- Event meta -->
  94.  
  95. <?php do_action( 'tribe_events_single_event_before_the_meta' ) ?>
  96.  
  97. <?php
  98.  
  99. /**
  100.  
  101. * The tribe_events_single_event_meta() function has been deprecated and has been
  102.  
  103. * left in place only to help customers with existing meta factory customizations
  104.  
  105. * to transition: if you are one of those users, please review the new meta templates
  106.  
  107. * and make the switch!
  108.  
  109. */
  110.  
  111. if ( ! apply_filters( 'tribe_events_single_event_meta_legacy_mode', false ) )
  112.  
  113. tribe_get_template_part( 'modules/meta' );
  114.  
  115. else echo tribe_events_single_event_meta()
  116.  
  117. ?>
  118.  
  119. <?php do_action( 'tribe_events_single_event_after_the_meta' ) ?>
  120.  
  121. </div> <!-- #post-x -->
  122.  
  123. <?php if( get_post_type() == TribeEvents::POSTTYPE && tribe_get_option( 'showComments', false ) ) comments_template() ?>
  124.  
  125. <?php endwhile; ?>
  126.  
  127.  
  128.  
  129. <!-- Event footer -->
  130.  
  131. <div id="tribe-events-footer">
  132.  
  133. <!-- Navigation -->
  134.  
  135. <!-- Navigation -->
  136.  
  137. <h3 class="tribe-events-visuallyhidden"><?php _e( 'Event Navigation', 'tribe-events-calendar' ) ?></h3>
  138.  
  139. <ul class="tribe-events-sub-nav">
  140.  
  141. <li class="tribe-events-nav-previous"><?php tribe_the_prev_event_link( '<span>&laquo;</span> %title%' ) ?></li>
  142.  
  143. <li class="tribe-events-nav-next"><?php tribe_the_next_event_link( '%title% <span>&raquo;</span>' ) ?></li>
  144.  
  145. </ul><!-- .tribe-events-sub-nav -->
  146.  
  147. </div><!-- #tribe-events-footer -->
  148.  
  149.  
  150.  
  151.  
  152.  
  153. </div>
  154. </div>
  155. </div>
  156. </div>
  157. </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement