From cd60de7740306494f2146eb7e4b8e7df406ede64 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Wed, 31 Dec 2008 07:23:54 +0000 Subject: option to hide location in month view (feature request 1880571) --- functions/template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functions') diff --git a/functions/template.php b/functions/template.php index 7c56f38..42cf1f5 100644 --- a/functions/template.php +++ b/functions/template.php @@ -970,7 +970,7 @@ class Page { if ($type == 'large') { $switch['ALLDAY'] .= '
'; $switch['ALLDAY'] .= openevent($daylink, $cal_time, $uid, $val, $phpiCal_config->month_event_lines, 15, 'psf'); - $switch['ALLDAY'] .= (isset($val['location']) && $val['location'] != '') ? $val['location']."
" : ''; + $switch['ALLDAY'] .= (isset($val['location']) && $val['location'] != '' && $phpiCal_config->month_locations == 'yes') ? $val['location']."
" : ''; $switch['ALLDAY'] .= '
'; } else { $switch['ALLDAY'] = ' '; @@ -980,7 +980,7 @@ class Page { if ($type == 'large') { $switch['EVENT'] .= '
'; $switch['EVENT'] .= openevent($daylink, $cal_time, $uid, $val, $phpiCal_config->month_event_lines, 10, 'ps3', "$start2 ").''; - $switch['EVENT'] .= (isset($val['location']) && $val['location'] != '') ? "
".$val['location']."
" : ''; + $switch['EVENT'] .= (isset($val['location']) && $val['location'] != '' && $phpiCal_config->month_locations == 'yes') ? "
".$val['location']."
" : ''; $switch['EVENT'] .= '
'; } else { $switch['EVENT'] = ' '; -- cgit v1.2.3