From 5a25e8901aa2931e26098f03eb8f97a80c2f2677 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Fri, 18 May 2007 21:18:00 +0000 Subject: Month location display again --- functions/template.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'functions') diff --git a/functions/template.php b/functions/template.php index da13ce0..62c9edc 100644 --- a/functions/template.php +++ b/functions/template.php @@ -928,6 +928,7 @@ class Page { if ($type == 'large') { $switch['ALLDAY'] .= '
'; $switch['ALLDAY'] .= openevent($daylink, $cal_time, $uid, $val, $month_event_lines, 15, 'psf'); + $switch['ALLDAY'] .= (isset($val['location']) && $val['location'] != '') ? $val['location']."
" : ''; $switch['ALLDAY'] .= '
'; } else { $switch['ALLDAY'] .= ' '; @@ -936,13 +937,13 @@ class Page { $start2 = date($timeFormat_small, $val['start_unixtime']); if ($type == 'large') { $switch['EVENT'] .= '
'; - $switch['EVENT'] .= openevent($daylink, $cal_time, $uid, $val, $month_event_lines, 10, 'ps3', "$start2 ").'
'; + $switch['EVENT'] .= openevent($daylink, $cal_time, $uid, $val, $month_event_lines, 10, 'ps3', "$start2 ").''; + $switch['EVENT'] .= (isset($val['location']) && $val['location'] != '') ? "
".$val['location']."
" : ''; $switch['EVENT'] .= '
'; } else { $switch['EVENT'] = ' '; } } - $switch['LOCATION'] = (isset($val['location'])) ? "".$val['location']."" : ''; } } } @@ -951,7 +952,7 @@ class Page { $switch['EVENT'] = (isset($switch['EVENT'])) ? $switch['EVENT'] : ''; $switch['ALLDAY'] = (isset($switch['ALLDAY'])) ? $switch['ALLDAY'] : ''; - #print_r($switch); + #echo "
";print_r($switch);echo "
"; foreach ($switch as $tag => $data) { $temp = str_replace('{'.$tag.'}', $data, $temp); -- cgit v1.2.3