From 83508e2f18660eb68a46de17dfa3ee13a39c724a Mon Sep 17 00:00:00 2001 From: Chad Little Date: Thu, 24 Oct 2002 06:27:04 +0000 Subject: Footer tweeks, addition to config and lang files. --- config.inc.php | 6 ++++-- day.php | 3 +++ footer.inc.php | 2 +- languages/english.inc.php | 1 + rss/index.php | 16 ++++++++++------ rss/rss.php | 14 ++++++-------- 6 files changed, 25 insertions(+), 17 deletions(-) diff --git a/config.inc.php b/config.inc.php index 04f5008..5f4d3e4 100644 --- a/config.inc.php +++ b/config.inc.php @@ -9,7 +9,7 @@ $style_sheet = 'silver'; // Themes support $calendar_path = './calendars'; // Path to directory with calendars $default_view = 'day'; // Default view for calendars = 'day', 'week', 'month', 'year' $minical_view = 'current'; // Where do the mini-calendars go when clicked? = 'day', 'week', 'month', 'current' -$default_cal = 'Home'; // Exact filename of calendar without .ics +$default_cal = 'Jareds32Classes'; // 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 $day_start = '0700'; // Start time for day grid @@ -20,6 +20,7 @@ $tomorrows_events_lines = '1'; // Number of lines to wrap each event title in $allday_week_lines = '1'; // Number of lines to wrap each event title in all-day events in week view, 0 means display all lines. $week_events_lines = '1'; // Number of lines to wrap each event title in the 'Tommorrow's events' box, 0 means display all lines. $timezone = ''; // Set timezone. Read TIMEZONES file for more information +$default_path = 'http://ical.silter.org/phpicalendar'; // Yes/No questions --- 'yes' means Yes, anything else means no. 'yes' must be lowercase. $save_parsed_cals = 'no'; // Recommended 'yes'. Saves a copy of the cal in /tmp after it's been parsed. Improves performence. @@ -29,7 +30,8 @@ $display_ical_list = 'yes'; // In the 'Jump To' box, display the pop-up menu $allow_webcals = 'no'; // Allow http:// and webcal:// prefixed URLs to be used as the $cal for remote viewing of "subscribe-able" calendars. This does not have to be enabled to allow specific ones below. $this_months_events = 'yes'; // Display "This month's events" at the bottom off the month page. $use_color_cals = 'yes'; // Display each calendar in the pop-up as a different color. -$daysofweek_dayview = 'no'; // Display the days of the week in day.php view. +$daysofweek_dayview = 'yes'; // Display the days of the week in day.php view. +$enable_rss = 'yes'; // Enable RSS access to your calendars (good thing). $blacklisted_cals[] = ''; // Fill in between the quotes the name of the calendars $blacklisted_cals[] = ''; // you wish to 'blacklist' or that you don't want to show up in your calendar diff --git a/day.php b/day.php index 4fdc00e..f740962 100644 --- a/day.php +++ b/day.php @@ -110,10 +110,12 @@ if (is_array($master_array[($getdate)])) { } if ($daysofweek_dayview == 'yes') { ?> + '; echo ""; $thisdate = $start_week_time; $start_day = strtotime($week_start_day); @@ -135,6 +137,7 @@ if (is_array($master_array[($getdate)])) { echo ''; } ?> +
diff --git a/footer.inc.php b/footer.inc.php index b147d41..efa7a3e 100644 --- a/footer.inc.php +++ b/footer.inc.php @@ -1 +1 @@ -
$powered_by_lang PHP iCalendar $version_lang
"; ?> \ No newline at end of file +
$powered_by_lang PHP iCalendar $version_lang"; if ($enable_rss == yes) { echo "
\n"; echo $this_site_is_lang.' RSS-Enabled
'; } echo ''; ?> \ No newline at end of file diff --git a/languages/english.inc.php b/languages/english.inc.php index b600d0c..8d1d233 100644 --- a/languages/english.inc.php +++ b/languages/english.inc.php @@ -44,6 +44,7 @@ $goday_lang = 'Go to Today'; $goweek_lang = 'Go to This Week'; $gomonth_lang = 'Go to This Month'; $goyear_lang = 'Go to This Year'; +$this_site_is_lang = 'This site is'; $daysofweek_lang = array ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'); $daysofweekshort_lang = array ('Sun','Mon','Tue','Wed','Thu','Fri','Sat'); diff --git a/rss/index.php b/rss/index.php index 8570920..e0f96a4 100644 --- a/rss/index.php +++ b/rss/index.php @@ -18,7 +18,7 @@ include(BASE.'functions/ical_parser.php');
- +
@@ -34,15 +34,19 @@ include(BASE.'functions/ical_parser.php');
- + diff --git a/rss/rss.php b/rss/rss.php index c134698..d5d1014 100644 --- a/rss/rss.php +++ b/rss/rss.php @@ -1,21 +1,19 @@ "."\n"; $rss .= ''."\n"; $rss .= ''."\n"; $rss .= ''."\n"; -$rss .= 'PHP iCalender'."\n"; -$rss .= 'http://www.yoursite.org'."\n"; -$rss .= 'Someones PHP iCalendar'."\n"; +$rss .= ''.$cal.' '.$calendar_lang.' - '.$theview.''."\n"; +$rss .= ''.$default_path.''."\n"; +$rss .= ''.$cal.' '.$calendar_lang.' - '.$theview.''."\n"; $rss .= 'us-en'."\n"; -$rss .= 'Copyright 2002, yoursite.com.'."\n"; +$rss .= 'Copyright 2002, '.$default_path.''."\n"; if (isset($master_array[($getdate)]) && sizeof($master_array[($getdate)]) > 0) { foreach ($master_array[("$getdate")] as $event_times) { @@ -29,7 +27,7 @@ if (isset($master_array[($getdate)]) && sizeof($master_array[($getdate)]) > 0) { $description = strip_tags($description, ''); $rss .= ''."\n"; $rss .= ''.$event_start.' '.$event_text.''."\n"; - $rss .= 'http://localhost/phpicalendar/day.php?getdate='.$getdate.'&cal='.$cal.''."\n"; + $rss .= ''.$default_path.'/day.php?getdate='.$getdate.'&cal='.$cal.''."\n"; $rss .= ''.$description.''."\n"; $rss .= ''."\n"; } -- cgit v1.2.3
+
- + This website is RSS enabled.

+ Day View:
+

- + Week View:
+

-
- + Month View:
+