aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2008-12-31 07:23:54 +0000
committerJim Hu <jimhu@users.sourceforge.net>2008-12-31 07:23:54 +0000
commitcd60de7740306494f2146eb7e4b8e7df406ede64 (patch)
tree9ba4c8f117eabf23368be49ff9da20941a838dff /functions
parent891159af439013fb1efd7c36799640ca30633f4a (diff)
downloadphpicalendar-cd60de7740306494f2146eb7e4b8e7df406ede64.tar.gz
phpicalendar-cd60de7740306494f2146eb7e4b8e7df406ede64.tar.bz2
phpicalendar-cd60de7740306494f2146eb7e4b8e7df406ede64.zip
option to hide location in month view (feature request 1880571)
Diffstat (limited to 'functions')
-rw-r--r--functions/template.php4
1 files changed, 2 insertions, 2 deletions
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'] .= '<div class="V10"><img src="templates/'.$phpiCal_config->template.'/images/monthdot_'.$event_calno.'.gif" alt="" width="9" height="9" border="0" />';
$switch['ALLDAY'] .= openevent($daylink, $cal_time, $uid, $val, $phpiCal_config->month_event_lines, 15, 'psf');
- $switch['ALLDAY'] .= (isset($val['location']) && $val['location'] != '') ? $val['location']."<br />" : '';
+ $switch['ALLDAY'] .= (isset($val['location']) && $val['location'] != '' && $phpiCal_config->month_locations == 'yes') ? $val['location']."<br />" : '';
$switch['ALLDAY'] .= '</div>';
} else {
$switch['ALLDAY'] = '<img src="templates/'.$phpiCal_config->template.'/images/allday_dot.gif" alt=" " width="11" height="10" border="0" />';
@@ -980,7 +980,7 @@ class Page {
if ($type == 'large') {
$switch['EVENT'] .= '<div class="V9"><img src="templates/'.$phpiCal_config->template.'/images/monthdot_'.$event_calno.'.gif" alt="" width="9" height="9" border="0" />';
$switch['EVENT'] .= openevent($daylink, $cal_time, $uid, $val, $phpiCal_config->month_event_lines, 10, 'ps3', "$start2 ").'';
- $switch['EVENT'] .= (isset($val['location']) && $val['location'] != '') ? "<br />".$val['location']."<br />" : '';
+ $switch['EVENT'] .= (isset($val['location']) && $val['location'] != '' && $phpiCal_config->month_locations == 'yes') ? "<br />".$val['location']."<br />" : '';
$switch['EVENT'] .= '</div>';
} else {
$switch['EVENT'] = '<img src="templates/'.$phpiCal_config->template.'/images/event_dot.gif" alt=" " width="11" height="10" border="0" />';

© 2014-2024 Faster IT GmbH | imprint | privacy policy