task #9747: Can show content of external calendar (ical) into agenda
This commit is contained in:
parent
f213196ca2
commit
902f70dac3
@ -44,8 +44,8 @@ $actionsave=GETPOST("save");
|
||||
if (empty($conf->global->AGENDA_EXT_NB)) $conf->global->AGENDA_EXT_NB=5;
|
||||
$MAXAGENDA=empty($conf->global->AGENDA_EXT_NB)?5:$conf->global->AGENDA_EXT_NB;
|
||||
|
||||
// List of Google colors (A lot of colors are ignored by Google)
|
||||
$colorlist=array('29527A','5229A3','A32929','7A367A','B1365F','0D7813');
|
||||
// List of aviable colors
|
||||
$colorlist=array('BECEDD','DDBECE','BFDDBE','F598B4','F68654','CBF654','9FAF9');
|
||||
|
||||
/*
|
||||
* Actions
|
||||
|
||||
@ -514,7 +514,7 @@ if ($conf->global->ENABLE_AGENDA_EXT==1 && $conf->global->AGENDA_EXT_NB>0)
|
||||
$event->datep=$icalevent[DTSTART];
|
||||
$event->datef=$icalevent[DTEND];
|
||||
$event->type_code="ICALEVENT";
|
||||
$event->libelle='<b>'.$icalevent[SUMMARY].'</b><br>'.str_replace("\\n", "<br>", "$icalevent[DESCRIPTION]");;
|
||||
$event->libelle='<b>'.$icalevent[SUMMARY].'</b><br>'.str_replace("\\n", "<br>", "$icalevent[DESCRIPTION]");
|
||||
//$event->fulldayevent=$obj->fulldayevent;
|
||||
|
||||
$event->date_start_in_calendar=$event->datep;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user