From 7cade3b04274ecc2d3583a0602cc5de3643e81a6 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sat, 31 Jan 2004 22:59:28 +0000 Subject: More template work. --- year.php | 184 ++++++++++++--------------------------------------------------- 1 file changed, 34 insertions(+), 150 deletions(-) (limited to 'year.php') diff --git a/year.php b/year.php index 13755f7..60401cd 100644 --- a/year.php +++ b/year.php @@ -1,7 +1,9 @@ replace_tags(array( + 'header' => BASE.'templates/'.$template.'/header.tpl', + 'footer' => BASE.'templates/'.$template.'/footer.tpl', + 'template' => $template, + 'cal' => $cal, + 'getdate' => $getdate, + 'calendar_name' => $calendar_name, + 'display_date' => $display_date, + 'rss_powered' => $rss_powered, + 'rss_available' => '', + 'rss_valid' => '', + 'todo_available' => '', + 'show_search' => '', + 'next_month' => $next_month, + 'prev_month' => $prev_month, + 'show_goto' => '', + 'is_logged_in' => '', + 'list_icals' => $list_icals, + 'list_years' => $list_years, + 'list_months' => $list_months, + 'list_weeks' => $list_weeks, + 'style_select' => $style_select, + 'generated' => $generated + + )); + +$page->output(); -?> -
- - - - -
- - - - - - -
-
-
- - - - -  '; - $m++; - $n++; - if (($m == 3) && ($n < 12)) { - $m = 0; - echo ''; - echo ''; - echo ''; - } - } while (($m < 3) && ($n < 12)); - ?> - -
- - - - - - ' . $day . '' . "\n"; - $start_day = strtotime("+1 day", $start_day); - } - ?> - - - - -
- - - - - - - -
 '; ?>
-
- - $day"; - if ($i == 0) echo ''; - if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { - foreach ($master_array[("$daylink")] as $event_times) { - foreach ($event_times as $val) { - if (!isset($val["event_start"])) $image1 = ' '; - if (isset($val["event_start"])) $image2 = ' '; - } - } - if (isset($master_array[("$daylink")][-1])) $image2 = ' '; - echo '' . "\n"; - } else { - echo '' . "\n"; - } - $start_day = strtotime("+1 day", $start_day); - $i++; - $image1 = ''; - $image2 = ''; - if ($i == 7) { - echo ''; - $i = 0; - $checkagain = date ("m", $start_day); - if ($checkagain != $minical_month) $whole_month = FALSE; - } - } while ($whole_month == TRUE); - $startYear = strtotime ("+1 month", $startYear); - ?> -
' . "\n"; - echo '' . "\n"; - echo '' . "\n"; - echo '' . "\n"; - echo '' . "\n"; - echo '' . "\n"; - echo '' . "\n"; - echo '' . "\n"; - echo '
' . "\n"; - echo '' . $day . '' . "\n"; - echo '
' . $image1 . $image2 . '
' . "\n"; - } elseif ($check_month == $minical_month) { - echo '
' . "\n"; - echo '' . $day . '' . "\n"; - echo '' . $day . '
-
-
-
- +?> \ No newline at end of file -- cgit v1.2.3