stableversion-3.0
Last change
on this file since c43ea01 was
177a560,
checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago
|
se agrego el directorio de modulos contribuidos de drupal
|
-
Propiedad mode establecida a
100755
|
File size:
790 octetos
|
Línea | |
---|
1 | <?php |
---|
2 | /** |
---|
3 | * @file |
---|
4 | * Template for a VCALENDAR file. |
---|
5 | */ |
---|
6 | |
---|
7 | /** |
---|
8 | * $calname |
---|
9 | * The name of the calendar. |
---|
10 | * $events |
---|
11 | * @see date-vevent.tpl.php. |
---|
12 | * @see date-valarm.tpl.php. |
---|
13 | * |
---|
14 | * If you are editing this file, remember that all output lines generated by it |
---|
15 | * must end with DOS-style \r\n line endings, and not Unix-style \n, in order to |
---|
16 | * comply with the iCal spec: http://tools.ietf.org/html/rfc5545#section-3.1. |
---|
17 | */ |
---|
18 | if (empty($method)): |
---|
19 | $method = 'PUBLISH'; |
---|
20 | endif; |
---|
21 | print "BEGIN:VCALENDAR\r\n"; |
---|
22 | print "VERSION:2.0\r\n"; |
---|
23 | print "METHOD:$method\r\n"; |
---|
24 | if (!empty($calname)): |
---|
25 | print "X-WR-CALNAME;VALUE=TEXT:$calname\r\n"; |
---|
26 | endif; |
---|
27 | print "PRODID:-//Drupal iCal API//EN\r\n"; |
---|
28 | foreach ($events as $event): |
---|
29 | print theme('date_vevent', $event); |
---|
30 | endforeach; |
---|
31 | print "END:VCALENDAR\r\n"; |
---|
Nota: Vea
TracBrowser
para ayuda de uso del navegador del repositorio.