Current File : /home/kelaby89/teamhachem.com/wp-content/plugins/the-events-calendar/src/views/v2/latest-past.php |
<?php
/**
* View: Latest Past View
*
* Override this template in your own theme by creating a file at:
* [your-theme]/tribe/events/v2/latest-past.php
*
* See more documentation about our views templating system.
*
* @link http://evnt.is/1aiy
*
* @version 5.1.0
*
* @var array $events The array containing the events.
*/
if ( count( $events ) === 0 ) {
return;
}
?>
<div class="tribe-events-calendar-latest-past">
<?php $this->template( 'latest-past/heading' ); ?>
<?php foreach ( $events as $event ) : ?>
<?php $this->setup_postdata( $event ); ?>
<?php $this->template( 'latest-past/event', [ 'event' => $event ] ); ?>
<?php endforeach; ?>
</div>