diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2012-04-24 08:12:30 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2012-04-24 08:12:30 +0200 |
commit | fc61616c53181a0484d773a08f9b0411896a5064 (patch) | |
tree | 3593c13d7da151a8efdc38aca1dd741fd1c40bd7 /boot.php | |
parent | 7923404c836979f5da7bd7ab47b1d93d137af1cc (diff) | |
download | volse-hubzilla-fc61616c53181a0484d773a08f9b0411896a5064.tar.gz volse-hubzilla-fc61616c53181a0484d773a08f9b0411896a5064.tar.bz2 volse-hubzilla-fc61616c53181a0484d773a08f9b0411896a5064.zip |
events page: set calendar start date from url (events/[year]/[month]/) and show event popup from url anchor (#link-[event id])
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1249,11 +1249,11 @@ if(! function_exists('get_events')) { $o .= '<div id="event-title-end"></div>'; 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 .= '<div class="event-list" id="event-' . $rr['eid'] . '"></a> <a href="events/' . $md . '">' . $title . '</a>' + $o .= '<div class="event-list" id="event-' . $rr['id'] . '"></a> <a href="events/' . $md . '">' . $title . '</a>' . day_translate(datetime_convert('UTC', $rr['adjust'] ? $a->timezone : 'UTC', $rr['start'], $bd_format)) . (($today) ? ' ' . t('[today]') : '') . '</div>' ; } |