aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2012-04-24 08:12:30 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2012-04-24 08:12:30 +0200
commitfc61616c53181a0484d773a08f9b0411896a5064 (patch)
tree3593c13d7da151a8efdc38aca1dd741fd1c40bd7 /boot.php
parent7923404c836979f5da7bd7ab47b1d93d137af1cc (diff)
downloadvolse-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.php8
1 files changed, 4 insertions, 4 deletions
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 .= '<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>' ;
}