From fc61616c53181a0484d773a08f9b0411896a5064 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Tue, 24 Apr 2012 08:12:30 +0200 Subject: events page: set calendar start date from url (events/[year]/[month]/) and show event popup from url anchor (#link-[event id]) --- boot.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index d2758c643..f024d64ce 100644 --- a/boot.php +++ b/boot.php @@ -1249,11 +1249,11 @@ if(! function_exists('get_events')) { $o .= '
'; foreach($r as $rr) { - if($rr['adjust']) - $md = datetime_convert('UTC',$a->timezone,$rr['start'],'Y/m\#\l\i\n\k\-j'); + $md = datetime_convert('UTC',$a->timezone,$rr['start'],'Y/m'); else - $md = datetime_convert('UTC','UTC',$rr['start'],'Y/m\#\l\i\n\k\-j'); + $md = datetime_convert('UTC','UTC',$rr['start'],'Y/m'); + $md .= "/#link-".$rr['id']; $title = substr(strip_tags(bbcode($rr['desc'])),0,32) . '... '; if(! $title) @@ -1262,7 +1262,7 @@ if(! function_exists('get_events')) { $strt = datetime_convert('UTC',$rr['convert'] ? $a->timezone : 'UTC',$rr['start']); $today = ((substr($strt,0,10) === datetime_convert('UTC',$a->timezone,'now','Y-m-d')) ? true : false); - $o .= '
' . $title . '' + $o .= '
' . $title . '' . day_translate(datetime_convert('UTC', $rr['adjust'] ? $a->timezone : 'UTC', $rr['start'], $bd_format)) . (($today) ? ' ' . t('[today]') : '') . '
' ; } -- cgit v1.2.3