From 8f8ee3be28fd7786d85bf9064191b214892b4062 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sun, 6 Oct 2002 20:19:23 +0000 Subject: added minical_view support, updated time_bg for long events, added new shiznit to README --- README | 4 +++- config.inc.php | 1 + day.php | 1 + month.php | 3 ++- month_bottom.php | 8 ++++---- sidebar.php | 12 ++++++------ styles/silver/time_bg.gif | Bin 964 -> 1560 bytes week.php | 1 + 8 files changed, 18 insertions(+), 12 deletions(-) diff --git a/README b/README index ebc2985..b967c23 100644 --- a/README +++ b/README @@ -33,7 +33,7 @@ marks to change the setting of that variable. If there are restrictions as to what that variable can be set to, the comment behind will specify them. If you have difficulty with your configuration, you can ask the developers and other PHP iCalendar users at the PHP iCalendar forums -(get the link from our home page). +http://phpicalendar.sourceforge.net/phpBB2/ Licensing: ---------- @@ -53,6 +53,7 @@ Changes: -Localized dates and times work with Mac OS X as well as other *nixes. -Almost all text has been translated for supported languages + -Added Spanish and Swedish -Added ability to turn off the pop-up menu calendar list -Added "black-listing" of specific local calendars -Added remote calendar support @@ -61,6 +62,7 @@ Changes: -Allow any URL of a calendar to be parsed by your server -Added custom error page for user-friendly error messages. -Added saving of parsed files to separate files for faster processing + -Custom options for mini-calendars, this months, events -Bug fixes 0.5 diff --git a/config.inc.php b/config.inc.php index a7e2545..fa4f631 100644 --- a/config.inc.php +++ b/config.inc.php @@ -8,6 +8,7 @@ $style_sheet = 'silver'; // Themes support $calendar_path = './calendars'; // Path to directory with calendars $default_view = 'day'; // Default view for calendars = 'day', 'week', 'month' +$minical_view = 'current'; // Where do the mini-calendars go when clicked? = 'day', 'week', 'month', 'current' $default_cal = 'Home'; // Exact filename of calendar without .ics $language = 'english'; // Language support - 'English', 'Polish', 'German', 'French', 'Dutch', 'Danish', 'Italian', 'Japanese', 'Norwegian', 'Spanish' $week_start_day = 'sunday'; // Day of the week your week starts on diff --git a/day.php b/day.php index 8d46d1c..f0b4884 100644 --- a/day.php +++ b/day.php @@ -9,6 +9,7 @@ if (isset($HTTP_GET_VARS['jumpto_day'])) { } $current_view = 'day'; include('./functions/ical_parser.php'); +if ($minical_view == "current") $minical_view = "day"; diff --git a/month.php b/month.php index 0414319..7006334 100644 --- a/month.php +++ b/month.php @@ -1,6 +1,7 @@ \n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo "\n"; - echo "$day\n"; + echo "$day\n"; echo "\n"; } else { echo "\n"; - echo "$day\n"; + echo "$day\n"; echo "\n"; } $start_day = ($start_day + (24.5 * 60 * 60)); @@ -278,11 +278,11 @@ if ($i == 0) echo "\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo "\n"; - echo "$day\n"; + echo "$day\n"; echo "\n"; } else { echo "\n"; - echo "$day\n"; + echo "$day\n"; echo "\n"; } $start_day = ($start_day + (24.5 * 60 * 60)); diff --git a/sidebar.php b/sidebar.php index 2347d9d..dcd24f4 100644 --- a/sidebar.php +++ b/sidebar.php @@ -251,11 +251,11 @@ if ($i == 0) echo "\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo "\n"; - echo "$day\n"; + echo "$day\n"; echo "\n"; } else { echo "\n"; - echo "$day\n"; + echo "$day\n"; echo "\n"; } $start_day = ($start_day + (24.5 * 60 * 60)); @@ -331,11 +331,11 @@ if ($i == 0) echo "\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo "\n"; - echo "$day\n"; + echo "$day\n"; echo "\n"; } else { echo "\n"; - echo "$day\n"; + echo "$day\n"; echo "\n"; } $start_day = ($start_day + (24.5 * 60 * 60)); @@ -411,11 +411,11 @@ if ($i == 0) echo "\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo "\n"; - echo "$day\n"; + echo "$day\n"; echo "\n"; } else { echo "\n"; - echo "$day\n"; + echo "$day\n"; echo "\n"; } $start_day = ($start_day + (24.5 * 60 * 60)); diff --git a/styles/silver/time_bg.gif b/styles/silver/time_bg.gif index 8f1a3ee..e306001 100644 Binary files a/styles/silver/time_bg.gif and b/styles/silver/time_bg.gif differ diff --git a/week.php b/week.php index e6a753d..ada5f71 100644 --- a/week.php +++ b/week.php @@ -2,6 +2,7 @@ $current_view = "week"; include("./functions/ical_parser.php"); +if ($minical_view == "current") $minical_view = "week"; //if ($use_sessions == "yes") { // session_start(); -- cgit v1.2.3