diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-10-06 20:19:23 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-10-06 20:19:23 +0000 |
commit | 8f8ee3be28fd7786d85bf9064191b214892b4062 (patch) | |
tree | 4e43447d073687636be41ac0609610e48e6dacdf | |
parent | 89d24274b2c0810d5e595b499983cb7664c70b88 (diff) | |
download | phpicalendar-8f8ee3be28fd7786d85bf9064191b214892b4062.tar.gz phpicalendar-8f8ee3be28fd7786d85bf9064191b214892b4062.tar.bz2 phpicalendar-8f8ee3be28fd7786d85bf9064191b214892b4062.zip |
added minical_view support, updated time_bg for long events, added new shiznit to README
-rw-r--r-- | README | 4 | ||||
-rw-r--r-- | config.inc.php | 1 | ||||
-rw-r--r-- | day.php | 1 | ||||
-rw-r--r-- | month.php | 3 | ||||
-rw-r--r-- | month_bottom.php | 8 | ||||
-rw-r--r-- | sidebar.php | 12 | ||||
-rw-r--r-- | styles/silver/time_bg.gif | bin | 964 -> 1560 bytes | |||
-rw-r--r-- | week.php | 1 |
8 files changed, 18 insertions, 12 deletions
@@ -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 @@ -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"; @@ -1,6 +1,7 @@ <?php $current_view = "month"; - include("./functions/ical_parser.php"); + include("./functions/ical_parser.php"); + if ($minical_view == "current") $minical_view = "month"; //might not need this, depending on implimentation, doesn't work correctly in current form anyway //setcookie("last_view", "month"); diff --git a/month_bottom.php b/month_bottom.php index 8e1d18a..80218a7 100644 --- a/month_bottom.php +++ b/month_bottom.php @@ -72,11 +72,11 @@ if ($i == 0) echo "<tr>\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo "<td align=\"center\" class=\"G10B\">\n"; - echo "<a class=\"ps2\" href=\"day.php?cal=$cal&getdate=$daylink\">$day</a>\n"; + echo "<a class=\"ps2\" href=\"$minical_view.php?cal=$cal&getdate=$daylink\">$day</a>\n"; echo "</td>\n"; } else { echo "<td align=\"center\" class=\"G10B\">\n"; - echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$daylink\">$day</a>\n"; + echo "<a class=\"psf\" href=\"$minical_view.php?cal=$cal&getdate=$daylink\">$day</a>\n"; echo "</td>\n"; } $start_day = ($start_day + (24.5 * 60 * 60)); @@ -278,11 +278,11 @@ if ($i == 0) echo "<tr>\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo "<td align=\"center\" class=\"G10B\">\n"; - echo "<a class=\"ps2\" href=\"day.php?cal=$cal&getdate=$daylink\">$day</a>\n"; + echo "<a class=\"ps2\" href=\"$minical_view.php?cal=$cal&getdate=$daylink\">$day</a>\n"; echo "</td>\n"; } else { echo "<td align=\"center\" class=\"G10B\">\n"; - echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$daylink\">$day</a>\n"; + echo "<a class=\"psf\" href=\"$minical_view.php?cal=$cal&getdate=$daylink\">$day</a>\n"; echo "</td>\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 "<tr>\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo "<td align=\"center\" class=\"G10B\">\n"; - echo "<a class=\"ps2\" href=\"day.php?cal=$cal&getdate=$daylink\">$day</a>\n"; + echo "<a class=\"ps2\" href=\"$minical_view.php?cal=$cal&getdate=$daylink\">$day</a>\n"; echo "</td>\n"; } else { echo "<td align=\"center\" class=\"G10B\">\n"; - echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$daylink\">$day</a>\n"; + echo "<a class=\"psf\" href=\"$minical_view.php?cal=$cal&getdate=$daylink\">$day</a>\n"; echo "</td>\n"; } $start_day = ($start_day + (24.5 * 60 * 60)); @@ -331,11 +331,11 @@ if ($i == 0) echo "<tr>\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo "<td align=\"center\" class=\"G10B\">\n"; - echo "<a class=\"ps2\" href=\"day.php?cal=$cal&getdate=$daylink\">$day</a>\n"; + echo "<a class=\"ps2\" href=\"$minical_view.php?cal=$cal&getdate=$daylink\">$day</a>\n"; echo "</td>\n"; } else { echo "<td align=\"center\" class=\"G10B\">\n"; - echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$daylink\">$day</a>\n"; + echo "<a class=\"psf\" href=\"$minical_view.php?cal=$cal&getdate=$daylink\">$day</a>\n"; echo "</td>\n"; } $start_day = ($start_day + (24.5 * 60 * 60)); @@ -411,11 +411,11 @@ if ($i == 0) echo "<tr>\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo "<td align=\"center\" class=\"G10B\">\n"; - echo "<a class=\"ps2\" href=\"day.php?cal=$cal&getdate=$daylink\">$day</a>\n"; + echo "<a class=\"ps2\" href=\"$minical_view.php?cal=$cal&getdate=$daylink\">$day</a>\n"; echo "</td>\n"; } else { echo "<td align=\"center\" class=\"G10B\">\n"; - echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$daylink\">$day</a>\n"; + echo "<a class=\"psf\" href=\"$minical_view.php?cal=$cal&getdate=$daylink\">$day</a>\n"; echo "</td>\n"; } $start_day = ($start_day + (24.5 * 60 * 60)); diff --git a/styles/silver/time_bg.gif b/styles/silver/time_bg.gif Binary files differindex 8f1a3ee..e306001 100644 --- a/styles/silver/time_bg.gif +++ b/styles/silver/time_bg.gif @@ -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(); |