/** * Week View Grid Hourly Event Loop * This file sets up the structure for the week grid hourly event loop * * Override this template in your own theme by creating a file at [your-theme]/tribe-events/week/loop-grid-hourly.php * * @package TribeEventsCalendar * @since 3.0 * @author Modern Tribe Inc. * */ if (!defined('ABSPATH')) { die('-1'); } tribe_events_week_set_loop_type('hourly'); $hour_format = apply_filters('tribe_events_pro_week_hour_format', 'gA'); ?> <div class="tribe-week-grid-wrapper"> <div class="tribe-week-grid-outer-wrap tribe-clearfix"> <div class="tribe-week-grid-inner-wrap"> <?php for ($hour = 0; $hour <= 23; $hour++) { ?> <div class="tribe-week-grid-block" data-hour="<?php echo $hour; ?> "> <div></div> </div> <?php
/** * Week View Grid All Day Event Loop * This file sets up the structure for the week grid all day event loop * * Override this template in your own theme by creating a file at [your-theme]/tribe-events/week/loop-grid-allday.php * * @package TribeEventsCalendar * */ if (!defined('ABSPATH')) { die('-1'); } ?> <?php tribe_events_week_set_loop_type('allday'); $all_day_map = tribe_events_week_get_all_day_map(); //Filter out empty all day array items $all_day_array = array_filter($all_day_map[0], "is_numeric"); //Hide All Day row if there are no All Day events if (!empty($all_day_array)) { ?> <div class="tribe-grid-allday clearfix"> <div class="column first"> <span><?php _e('All Day', 'tribe-events-calendar-pro'); ?> </span> </div> <div class="tribe-grid-content-wrap"> <?php