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 --- README | 5 +++++ functions/template.php | 7 ++++--- templates/default/month_large.tpl | 3 --- templates/green/month_large.tpl | 3 --- templates/grey/month_large.tpl | 3 --- templates/red/month_large.tpl | 3 --- templates/tan/month_large.tpl | 3 --- 7 files changed, 9 insertions(+), 18 deletions(-) diff --git a/README b/README index 0dc85ad..29b1da0 100644 --- a/README +++ b/README @@ -81,6 +81,11 @@ COPYING for more information about our license. Changes: -------- +cvs + Fix location display in months + Fix polish language file + Sanitizer bug fixes + Fix status bug for publish.php 2.23 New language files Add input sanitizer - important for blocking XSS attacks 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); diff --git a/templates/default/month_large.tpl b/templates/default/month_large.tpl index ff65ceb..ca3d3d3 100644 --- a/templates/default/month_large.tpl +++ b/templates/default/month_large.tpl @@ -16,7 +16,6 @@ {ALLDAY} {EVENT} - {LOCATION} @@ -26,7 +25,6 @@ {ALLDAY} {EVENT} - {LOCATION} @@ -36,7 +34,6 @@ {ALLDAY} {EVENT} - {LOCATION} diff --git a/templates/green/month_large.tpl b/templates/green/month_large.tpl index ff65ceb..ca3d3d3 100644 --- a/templates/green/month_large.tpl +++ b/templates/green/month_large.tpl @@ -16,7 +16,6 @@ {ALLDAY} {EVENT} - {LOCATION} @@ -26,7 +25,6 @@ {ALLDAY} {EVENT} - {LOCATION} @@ -36,7 +34,6 @@ {ALLDAY} {EVENT} - {LOCATION} diff --git a/templates/grey/month_large.tpl b/templates/grey/month_large.tpl index ff65ceb..ca3d3d3 100644 --- a/templates/grey/month_large.tpl +++ b/templates/grey/month_large.tpl @@ -16,7 +16,6 @@ {ALLDAY} {EVENT} - {LOCATION} @@ -26,7 +25,6 @@ {ALLDAY} {EVENT} - {LOCATION} @@ -36,7 +34,6 @@ {ALLDAY} {EVENT} - {LOCATION} diff --git a/templates/red/month_large.tpl b/templates/red/month_large.tpl index ff65ceb..ca3d3d3 100644 --- a/templates/red/month_large.tpl +++ b/templates/red/month_large.tpl @@ -16,7 +16,6 @@ {ALLDAY} {EVENT} - {LOCATION} @@ -26,7 +25,6 @@ {ALLDAY} {EVENT} - {LOCATION} @@ -36,7 +34,6 @@ {ALLDAY} {EVENT} - {LOCATION} diff --git a/templates/tan/month_large.tpl b/templates/tan/month_large.tpl index ff65ceb..ca3d3d3 100644 --- a/templates/tan/month_large.tpl +++ b/templates/tan/month_large.tpl @@ -16,7 +16,6 @@ {ALLDAY} {EVENT} - {LOCATION} @@ -26,7 +25,6 @@ {ALLDAY} {EVENT} - {LOCATION} @@ -36,7 +34,6 @@ {ALLDAY} {EVENT} - {LOCATION} -- cgit v1.2.3