aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2007-05-18 21:18:00 +0000
committerJim Hu <jimhu@users.sourceforge.net>2007-05-18 21:18:00 +0000
commit5a25e8901aa2931e26098f03eb8f97a80c2f2677 (patch)
treea12b4a839bafc3872121cf7e6e2d22f3bf3bbcf8 /functions
parentd085a95d5285edd2c4d8f58a70c85712a3af0d84 (diff)
downloadphpicalendar-5a25e8901aa2931e26098f03eb8f97a80c2f2677.tar.gz
phpicalendar-5a25e8901aa2931e26098f03eb8f97a80c2f2677.tar.bz2
phpicalendar-5a25e8901aa2931e26098f03eb8f97a80c2f2677.zip
Month location display again
Diffstat (limited to 'functions')
-rw-r--r--functions/template.php7
1 files changed, 4 insertions, 3 deletions
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'] .= '<div class="V10"><img src="templates/'.$template.'/images/monthdot_'.$event_calno.'.gif" alt="" width="9" height="9" border="0" />';
$switch['ALLDAY'] .= openevent($daylink, $cal_time, $uid, $val, $month_event_lines, 15, 'psf');
+ $switch['ALLDAY'] .= (isset($val['location']) && $val['location'] != '') ? $val['location']."<br />" : '';
$switch['ALLDAY'] .= '</div>';
} else {
$switch['ALLDAY'] .= '<img src="templates/'.$template.'/images/allday_dot.gif" alt=" " width="11" height="10" border="0" />';
@@ -936,13 +937,13 @@ class Page {
$start2 = date($timeFormat_small, $val['start_unixtime']);
if ($type == 'large') {
$switch['EVENT'] .= '<div class="V9"><img src="templates/'.$template.'/images/monthdot_'.$event_calno.'.gif" alt="" width="9" height="9" border="0" />';
- $switch['EVENT'] .= openevent($daylink, $cal_time, $uid, $val, $month_event_lines, 10, 'ps3', "$start2 ").'<br />';
+ $switch['EVENT'] .= openevent($daylink, $cal_time, $uid, $val, $month_event_lines, 10, 'ps3', "$start2 ").'';
+ $switch['EVENT'] .= (isset($val['location']) && $val['location'] != '') ? "<br />".$val['location']."<br />" : '';
$switch['EVENT'] .= '</div>';
} else {
$switch['EVENT'] = '<img src="templates/'.$template.'/images/event_dot.gif" alt=" " width="11" height="10" border="0" />';
}
}
- $switch['LOCATION'] = (isset($val['location'])) ? "<span class='V9G'>".$val['location']."</span>" : '';
}
}
}
@@ -951,7 +952,7 @@ class Page {
$switch['EVENT'] = (isset($switch['EVENT'])) ? $switch['EVENT'] : '';
$switch['ALLDAY'] = (isset($switch['ALLDAY'])) ? $switch['ALLDAY'] : '';
- #print_r($switch);
+ #echo "<pre>";print_r($switch);echo "</pre>";
foreach ($switch as $tag => $data) {
$temp = str_replace('{'.$tag.'}', $data, $temp);

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