| 2 | | |
|---|
| | 2 | function cs_calendar_display($calendar = ) |
|---|
| | 3 | { |
|---|
| | 4 | $out = "<!-- START CALENDAR DISPLAY-->\n\n"; |
|---|
| | 5 | $out .= "<div class=\"calendar-wrapper\"\n"; |
|---|
| | 6 | $out .= " <div class=\"".$calendar->getClass()."\" id=\"calendar-".$calendar->getIdHash()."\">\n"; |
|---|
| | 7 | foreach($calendar->getDays() as $day): |
|---|
| | 8 | $out .= " <div class=\"".$day->getClass()."\" id=\"day-".$day->getIDHash()."\">\n"; |
|---|
| | 9 | |
|---|
| | 10 | $out .= " </div> <!-- END DAY -->\n"; |
|---|
| | 11 | endforeach; |
|---|
| | 12 | $out .= " </div> <!-- END CALENDAR -->\n"; |
|---|
| | 13 | $out .= "</div> <!-- END CALENDAR WRAPPER -->\n\n"; |
|---|
| | 14 | $out .= "<!-- END CALENDAR DISPLAY-->"; |
|---|
| | 15 | } |
|---|