File "loop.php"
Full Path: /home/londdqdw/public_html/06/wp-content/plugins/the-events-calendar/src/views/day/loop.php
File size: 1.76 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* Day View Loop
* This file sets up the structure for the day loop
*
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/loop.php
*
* @version 4.6.19
* @package TribeEventsCalendar
*
*/
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
}
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
} ?>
<?php
global $more, $post, $wp_query;
$more = false;
$current_timeslot = null;
?>
<div id="tribe-events-day" class="tribe-events-loop">
<div class="tribe-events-day-time-slot">
<?php while ( have_posts() ) : the_post(); ?>
<?php do_action( 'tribe_events_inside_before_loop' ); ?>
<?php if ( $current_timeslot != $post->timeslot ) :
$current_timeslot = $post->timeslot; ?>
</div>
<!-- .tribe-events-day-time-slot -->
<div class="tribe-events-day-time-slot">
<h2 class="tribe-events-day-time-slot-heading"><?php echo $current_timeslot; ?></h2>
<?php endif; ?>
<!-- Event -->
<div id="post-<?php the_ID() ?>" class="<?php tribe_events_event_classes() ?>">
<?php
$event_type = tribe( 'tec.featured_events' )->is_featured( $post->ID ) ? 'featured' : 'event';
/**
* Filters the event type used when selecting a template to render
*
* @param $event_type
*/
$event_type = apply_filters( 'tribe_events_day_view_event_type', $event_type );
tribe_get_template_part( 'day/single', $event_type );
?>
</div>
<?php do_action( 'tribe_events_inside_after_loop' ); ?>
<?php endwhile; ?>
</div>
<!-- .tribe-events-day-time-slot -->
</div><!-- .tribe-events-loop -->