Esempio n. 1
0
 /**
  * increment the row for the all day map
  *
  * @since 3.0
  * @author tim@imaginesimplicity.com
  * @return void
  */
 function tribe_events_week_the_day_map()
 {
     Tribe_Events_Pro_Week_Template::the_day_map();
     $all_day_map = tribe_events_week_get_all_day_map();
     $all_day_offset = Tribe_Events_Pro_Week_Template::get_current_day() < Tribe_Events_Pro_Week_Template::$start_of_week ? Tribe_Events_Pro_Week_Template::$week_length + Tribe_Events_Pro_Week_Template::get_current_day() : Tribe_Events_Pro_Week_Template::get_current_day();
     tribe_events_week_setup_event($all_day_map[Tribe_Events_Pro_Week_Template::get_the_day_map()][$all_day_offset]);
 }
Esempio n. 2
0
		</div>
		<div class="tribe-grid-content-wrap">
			<?php 
    while (tribe_events_week_have_days()) {
        tribe_events_week_the_day();
        tribe_events_week_reset_the_day_map();
        ?>
				<div title="<?php 
        tribe_events_week_get_the_date();
        ?>
" class="tribe-events-mobile-day column <?php 
        tribe_events_week_column_classes();
        ?>
">
					<?php 
        foreach (tribe_events_week_get_all_day_map() as $all_day_cols) {
            tribe_events_week_the_day_map();
            ?>
						<?php 
            tribe_get_template_part('pro/week/single-event', 'allday');
            ?>
					<?php 
        }
        ?>
				</div><!-- allday column -->
			<?php 
    }
    ?>
		</div><!-- .tribe-grid-content-wrap -->
	</div><!-- .tribe-grid-allday -->
<?php 
Esempio n. 3
0
 /**
  * For use within the week view template to determine if the current day in the
  * loop contains events.
  *
  * @return bool
  */
 function tribe_events_current_week_day_has_events()
 {
     // Do we have any all day events taking place today?
     $day_counter = Tribe_Events_Pro_Week_Template::get_current_day();
     $map = tribe_events_week_get_all_day_map();
     if (null !== $map[0][$day_counter]) {
         return true;
     }
     // Do we have any hourly events taking place today?
     $hourly = Tribe_Events_Pro_Week_Template::get_events('hourly_map');
     return empty($hourly[$day_counter]) ? false : true;
 }