File "loop-grid.php"
Full Path: /home/londdqdw/public_html/06/wp-content/plugins/the-events-calendar/src/views/month/loop-grid.php
File size: 2.23 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* Month View Grid Loop
* This file sets up the structure for the month grid loop
*
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/month/loop-grid.php
*
* @link http://evnt.is/1aiy
*
* @package TribeEventsCalendar
*
* @version 4.6.19
*/
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
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.' );
}
?>
<?php
$days_of_week = tribe_events_get_days_of_week();
$week = 0;
global $wp_locale;
?>
<?php do_action( 'tribe_events_before_the_grid' ) ?>
<h2 class="tribe-events-visuallyhidden"><?php printf( esc_html__( 'Calendar of %s', 'the-events-calendar' ), tribe_get_event_label_plural() ); ?></h2>
<table class="tribe-events-calendar">
<caption class="tribe-events-visuallyhidden"><?php printf( esc_html__( 'Calendar of %s', 'the-events-calendar' ), tribe_get_event_label_plural() ); ?></caption>
<thead>
<tr>
<?php foreach ( $days_of_week as $day ) : ?>
<th id="tribe-events-<?php echo esc_attr( strtolower( $day ) ); ?>" title="<?php echo esc_attr( $day ); ?>" data-day-abbr="<?php echo esc_attr( $wp_locale->get_weekday_abbrev( $day ) ); ?>"><?php echo $day ?></th>
<?php endforeach; ?>
</tr>
</thead>
<tbody>
<tr>
<?php while ( tribe_events_have_month_days() ) : tribe_events_the_month_day(); ?>
<?php if ( $week != tribe_events_get_current_week() ) : $week ++; ?>
</tr>
<tr>
<?php endif; ?>
<?php
// Get data for this day within the loop.
$daydata = tribe_events_get_current_month_day(); ?>
<td class="<?php tribe_events_the_month_day_classes() ?>"
data-day="<?php echo esc_attr( isset( $daydata['daynum'] ) ? $daydata['date'] : '' ); ?>"
data-tribejson='<?php echo tribe_events_template_data( null, [ 'date_name' => tribe_format_date( $daydata['date'], false ) ] ); ?>'
>
<?php tribe_get_template_part( 'month/single', 'day' ) ?>
</td>
<?php endwhile; ?>
</tr>
</tbody>
</table><!-- .tribe-events-calendar -->
<?php
do_action( 'tribe_events_after_the_grid' );