File: /home/mciraet/www/wp-content/themes/movedo/tribe-events/single-event.php
<?php
/**
* Single Event Template
* A single event. This displays the event title, description, meta, and
* optionally, the Google map for the event.
*
*/
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
$events_label_singular = tribe_get_event_label_singular();
$events_label_plural = tribe_get_event_label_plural();
$event_id = get_the_ID();
?>
<div id="tribe-events-content" class="tribe-events-single">
<!-- Notices -->
<?php tribe_the_notices(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<!-- Event featured image, but exclude link -->
<?php
if ( has_post_thumbnail() ) {
$event_image_size = movedo_grve_option( 'event_image_size' );
$image_size = 'large';
if( 'default' != $event_image_size ) {
$image_size = movedo_grve_get_image_size( $event_image_size );
}
?>
<div id="grve-single-media">
<div class="grve-media clearfix">
<?php the_post_thumbnail( $image_size ); ?>
</div>
</div>
<?php
}
?>
<!-- Event content -->
<?php do_action( 'tribe_events_single_event_before_the_content' ); ?>
<div id="grve-single-content" class="tribe-events-single-event-description tribe-events-content">
<?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 tribe_get_template_part( 'modules/meta' ); ?>
<?php do_action( 'tribe_events_single_event_after_the_meta' ); ?>
</div> <!-- #post-x -->
<?php if ( get_post_type() == Tribe__Events__Main::POSTTYPE && tribe_get_option( 'showComments', false ) ) { comments_template(); } ?>
<?php endwhile; ?>
</div><!-- #tribe-events-content -->