date ); $date = mktime(12, 0, 0, $month, 1, $year); $daysInMonth = date("t", $date); $offset = date("w", $date); $rows = 1; ?> "; } // output this month for( $day = 1; $day <= $daysInMonth; $day++ ) { if( ($day + $offset - 1) % 7 == 0 && $day != 1) { echo "\n\t"; $rows++; } echo ""; } // skip next month while( ($day + $offset) <= $rows * 7) { echo ""; $day++; } ?>
" . $day . "
\n"; echo display_day( $day, $monthView ); echo "
ID.'-'.$day; $start = the_event_start_date( $event->ID ); $end = the_event_end_date( $event->ID ); $cost = the_event_cost( $event->ID ); $address = the_event_address( $event->ID ); $city = the_event_city( $event->ID ); $state = the_event_state( $event->ID ); $province = the_event_province( $event->ID ); $country = the_event_country( $event->ID ); include( dirname( __FILE__ ) . '/gridview-day.php' ); if( $i < count( $monthView[$day] ) - 1 ) { echo "
"; } } } ?>