0) { } else { $td_width = ealist_get_td_width(); } while($i < $weeks) { $next_day = get_option('ealist_day'); $today = mktime(0,0,0, date('m'), date('d'), date('Y')); $next_special_date = get_option('ealist_date'); if ($att_date != "") { if ($att_date == "monday" OR $att_date == "tuesday" OR $att_date == "wednesday" OR $att_date == "thursday" OR $att_date == "friday" OR $att_date == "saturday" OR $att_date == "sunday") { $next_special_date = ""; switch ($att_date) { case "monday": $next_day = "tuesday"; break; case "tuesday": $next_day = "wednesday"; break; case "wednesday": $next_day = "thursday"; break; case "thursday": $next_day = "friday"; break; case "friday": $next_day = "saturday"; break; case "saturday": $next_day = "sunday"; break; case "sunday": $next_day = "monday"; break; } } else { $next_special_date = $att_date; } } if ($next_special_date != "") { $next_special_date = mktime(0, 0, 0, substr($next_special_date, 3, 2), substr($next_special_date, 0, 2), substr($next_special_date, 6, 4)); } if ($next_day != "") { $next_date_time = strtotime("next $next_day") - (24*3600) + ($i * 7*24*3600); // Estimating next meeting into time-stamp. In strtotime() the day after tomorrow // has to be included, since the next day is also today. This is also the time, // which will be saved to the database. } else { $next_date_time = $today; } if (($next_special_date < $next_date_time OR $next_date_time == $today) AND $next_special_date > 0 AND $next_special_date >= $today) { $next_date_time = $next_special_date; } $next_date = date("d.m.", $next_date_time); // Calculating the time out of the time stamp if (get_option("ealist_font_color")) { $next_color = get_option("ealist_font_color"); } else { $next_color = "#AAA"; } $ealist_facebook_app = get_option('ealist_facebook_app'); $return .= ""; $return .= "
"; $return .= "$next_date ("; $return .= ealist_count($next_date_time); $return .= ""; $max_no = get_option('ealist_players'); if ($max_no != "") { $return .= "/$max_no"; } $td_width_small = $td_width - 8; $return .= ")
"; $return .= ""; $return .= ""; $return .= ""; $return .= "[easyattendancelist][easyattendancelist_stat]