Commit 181e4a35 authored by Francesco Iannuzzelli's avatar Francesco Iannuzzelli

Single image in iCal export

parent d75b431e
......@@ -291,6 +291,7 @@ class Events
$e['thumb'] = $irl->PublicUrlGlobal("event_image",array('id'=>$row['id_event'],'size'=>1,'format'=>'jpg'),TRUE );
$e['image'] = $irl->PublicUrlGlobal("event_image",array('id'=>$row['id_event'],'size'=>3,'format'=>'jpg'),TRUE );
$e['large'] = $irl->PublicUrlGlobal("event_image",array('id'=>$row['id_event'],'size'=>5,'format'=>'jpg'),TRUE );
$e['orig'] = $irl->PublicUrlGlobal("event_image",array('id'=>$row['id_event'],'size'=>-1,'format'=>'jpg'),TRUE );
}
if($json) {
$events[] = $e;
......@@ -353,7 +354,7 @@ class Events
$vevent->setProperty('DESCRIPTION', $description . "\n\n$link");
$vevent->setProperty( "URL", $link);
if($event['has_image']=='1') {
$vevent->setXprop('X-WP-IMAGES-URL',$event['large']);
$vevent->setXprop('X-WP-IMAGES-URL',$event['orig']);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment