Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Single Event Template
- * A single event. This displays the event title, description, meta, and
- * optionally, the Google map for the event.
- *
- * Override this template in your own theme by creating a file at [your-theme]/tribe-events/single-event.php
- *
- * @package TribeEventsCalendar
- *
- */
- if ( ! defined( 'ABSPATH' ) ) {
- die( '-1' );
- }
- $event_id = get_the_ID();
- ?>
- <section id="blog-posts-two" class="single-event">
- <!-- Blog Post -->
- <div class="row blog-post single-blog-post tribe-events-single vevent hentry" id="tribe-events-content">
- <div class="large-offset-2 columns">
- </div>
- <!-- Event header -->
- <div id="tribe-events-header" <?php tribe_events_the_header_attributes() ?>>
- <!-- Navigation -->
- <h3 class="tribe-events-visuallyhidden"><?php _e( 'Event Navigation', 'tribe-events-calendar' ) ?></h3>
- <ul class="tribe-events-sub-nav">
- <li class="tribe-events-nav-previous"><?php tribe_the_prev_event_link( '<span>«</span> %title%' ) ?></li>
- <li class="tribe-events-nav-next"><?php tribe_the_next_event_link( '%title% <span>»</span>' ) ?></li>
- </ul><!-- .tribe-events-sub-nav -->
- </div><!-- #tribe-events-header -->
- <div class="large-10 columns page-subtitle">
- <div class="post-content-wrapp">
- <?php echo tribe_event_featured_image( $event_id, 'full', false ); ?>
- <div class="blog-info event">
- <div class="top-infos">
- <div class="post-info">
- <?php echo tribe_get_start_date($post->ID, true, 'l'); ?><br />
- <span><?php echo tribe_get_start_date($post->ID, true, 'j'); ?></span><br />
- <?php echo tribe_get_start_date($post->ID, true, 'F'); ?><br />
- </div>
- </div>
- <div class="sharings-and-tags">
- <div class="sharings">
- </div>
- <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'); ?>
- </div>
- </div>
- </div>
- </div>
- <div class="single-content row">
- <div class="event-content columns">
- <?php tribe_events_the_notices() ?>
- <?php the_title( '<h5 class="tribe-events-single-event-title summary entry-title">', '</h5>' ); ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <!-- Event featured image, but exclude link -->
- <!-- Event content -->
- <?php do_action( 'tribe_events_single_event_before_the_content' ) ?>
- <div class="tribe-events-single-event-description tribe-events-content entry-content description">
- <?php the_content(); ?>
- </div><!-- .tribe-events-single-event-description -->
- <?php do_action( 'tribe_events_single_event_after_the_content' ) ?>
- <!-- Event meta -->
- <?php do_action( 'tribe_events_single_event_before_the_meta' ) ?>
- <?php
- /**
- * The tribe_events_single_event_meta() function has been deprecated and has been
- * left in place only to help customers with existing meta factory customizations
- * to transition: if you are one of those users, please review the new meta templates
- * and make the switch!
- */
- if ( ! apply_filters( 'tribe_events_single_event_meta_legacy_mode', false ) )
- tribe_get_template_part( 'modules/meta' );
- else echo tribe_events_single_event_meta()
- ?>
- <?php do_action( 'tribe_events_single_event_after_the_meta' ) ?>
- </div> <!-- #post-x -->
- <?php if( get_post_type() == TribeEvents::POSTTYPE && tribe_get_option( 'showComments', false ) ) comments_template() ?>
- <?php endwhile; ?>
- <!-- Event footer -->
- <div id="tribe-events-footer">
- <!-- Navigation -->
- <!-- Navigation -->
- <h3 class="tribe-events-visuallyhidden"><?php _e( 'Event Navigation', 'tribe-events-calendar' ) ?></h3>
- <ul class="tribe-events-sub-nav">
- <li class="tribe-events-nav-previous"><?php tribe_the_prev_event_link( '<span>«</span> %title%' ) ?></li>
- <li class="tribe-events-nav-next"><?php tribe_the_next_event_link( '%title% <span>»</span>' ) ?></li>
- </ul><!-- .tribe-events-sub-nav -->
- </div><!-- #tribe-events-footer -->
- </div>
- </div>
- </div>
- </div>
- </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement