aboutsummaryrefslogtreecommitdiffstats
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
parent891159af439013fb1efd7c36799640ca30633f4a (diff)
downloadphpicalendar-cd60de7740306494f2146eb7e4b8e7df406ede64.tar.gz
phpicalendar-cd60de7740306494f2146eb7e4b8e7df406ede64.tar.bz2
phpicalendar-cd60de7740306494f2146eb7e4b8e7df406ede64.zip
option to hide location in month view (feature request 1880571)
-rw-r--r--config.inc.php5
-rw-r--r--default_config.php1
-rw-r--r--functions/template.php4
3 files changed, 6 insertions, 4 deletions
diff --git a/config.inc.php b/config.inc.php
index f89eef1..01e12dc 100644
--- a/config.inc.php
+++ b/config.inc.php
@@ -51,15 +51,16 @@ phpicalendar currently supports about 30 language variants. For a list of suppo
# 'language' => 'Spanish',
# 'default_cal' => 'US Holidays', // Exact filename of calendar without .ics.
# 'template' => 'green'; // Template support: change this to have a different "skin" for your installation.
- # 'default_view' => 'year', // Default view for calendars' => 'day', 'week', 'month', 'year'
+# 'default_view' => 'year', // Default view for calendars' => 'day', 'week', 'month', 'year'
# 'printview_default' => 'yes', // Set print view as the default view. Uses'default_view (listed above).
# 'gridLength' => 10, // Grid size in day and week views. Allowed values are 1,2,3,4,10,12,15,20,30,60. Default is 15
# 'minical_view' => 'current', // Where do the mini-calendars go when clicked?' => 'day', 'week', 'month', 'current'
# 'allow_preferences' => 'no',
+ 'month_locations' => 'no',
# 'show_search' => 'yes',
# 'show_todos' => 'no',
# 'show_completed' => 'no',
- 'allow_login' => 'yes', // Set to yes to prompt for login to unlock calendars.
+# 'allow_login' => 'yes', // Set to yes to prompt for login to unlock calendars.
# 'week_start_day' => 'Monday', // Day of the week your week starts on
# 'week_length' => '5', // Number of days to display in the week view
# 'day_start' => '0600', // Start time for day grid
diff --git a/default_config.php b/default_config.php
index 9f99379..374879e 100644
--- a/default_config.php
+++ b/default_config.php
@@ -38,6 +38,7 @@ class Configs{
// Yes/No questions --- 'yes' means Yes, anything else means no. 'yes' must be lowercase.
$this->allow_webcals = 'no'; // Allow http:// and webcal:// prefixed URLs to be used as the $this->cal for remote viewing of "subscribe-able" calendars. This does not have to be enabled to allow specific ones below.
+ $this->month_locations = 'yes'; // Display location in the month view.
$this->this_months_events = 'yes'; // Display "This month's events" at the bottom off the month page.
$this->enable_rss = 'yes'; // Enable RSS access to your calendars (good thing).
$this->rss_link_to_event = ''; // Set to yes to have links in the feed popup an event window. Default is to link to day.php
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