From cecd608ffaea0d25f182fb9e2e0883c3d17186de Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Wed, 7 Jan 2009 21:11:39 +0000 Subject: add cal_displaynames sort customization example (commented out) to ical_parser.php --- functions/ical_parser.php | 8 ++++++++ month.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 6f48813..70f3593 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -486,9 +486,17 @@ if ($parse_file) { if ($cal == $phpiCal_config->ALL_CALENDARS_COMBINED) { $calendar_name = $all_cal_comb_lang; } +/* example of how to customize the display name sort order +if(in_array('US Holidays',$cal_displaynames)){ + unset($cal_displaynames[array_search('US Holidays',$cal_displaynames)]); + array_unshift($cal_displaynames, 'US Holidays'); +} +*/ $cal_displayname = urldecode(implode(', ', $cal_displaynames)); #reset this with the correct names $template_started = getmicrotime(); + + //If you want to see the values in the arrays, uncomment below. #print '
';
 #var_dump($phpiCal_config);
diff --git a/month.php b/month.php
index cb4509c..9aec865 100644
--- a/month.php
+++ b/month.php
@@ -85,7 +85,7 @@ $page->replace_tags(array(
 	'is_logged_in' 		=> $is_logged_in,
 	'username'			=> $username,
 	'logout_querys'		=> $logout_querys,
-#	'list_jumps' 		=> $list_jumps,
+	'list_jumps' 		=> $list_jumps,
 	'list_icals' 		=> $list_icals,
 	'list_icals_pick'	=> $list_icals_pick,
 	'list_years' 		=> $list_years,
-- 
cgit v1.2.3