Ejemplo n.º 1
0
    ?>
</th>
			<?php 
}
?>

		</tr>
		</thead>


		<tbody class="hfeed vcalendar">

		<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 
    }
    ?>
			<td class="<?php 
    tribe_events_the_month_day_classes();
    ?>
">
				<?php 
Ejemplo n.º 2
0
 /**
  * Gets all events in the month
  *
  * @static
  *
  * @return array events in the month
  */
 private static function get_month_view_events()
 {
     do_action('tribe_events_before_view');
     // this will trigger the month view query setup
     $events_posts = array();
     while (tribe_events_have_month_days()) {
         tribe_events_the_month_day();
         $month_day = tribe_events_get_current_month_day();
         if (isset($month_day['events']) && $month_day['total_events'] > 0) {
             $events_posts = array_merge($month_day['events']->posts, $events_posts);
         }
     }
     return $events_posts;
 }