forked from bichotll/bic_calendar_full
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
38 lines (34 loc) · 993 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
header('Access-Control-Allow-Origin: *');
$ano = $_GET['ano'];
$array = array(
array(
date => "27/2/$ano",
title => 'Getting Contacts Barcelona - test1',
//link => 'http://gettingcontacts.com/events/view/barcelona',
color => 'red'
),
array(
date => "25/5/$ano",
title => 'test2',
//link => 'http://gettingcontacts.com/events/view/barcelona',
color => 'pink'
),
array(
date => "20/6/$ano",
title => 'test2',
//link => 'http://gettingcontacts.com/events/view/barcelona',
color => 'green'
),
array(
date => "7/10/$ano",
title => 'test3',
//removed for this example
//link => 'http://gettingcontacts.com/events/view/barcelona',
color => 'blue',
'class' => 'miclasse ',
content => 'contingut popover<img src="http://gettingcontacts.com/upload/news/estiu_productiu.png'
),
);
echo json_encode($array);
?>