[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/date/theme/ -> date-vcalendar.tpl.php (source)

   1  <?php
   2  /**
   3   * $calname
   4   *   The name of the calendar.
   5   * $events
   6   *   @see date-vevent.tpl.php.
   7   *   @see date-valarm.tpl.php.
   8   *
   9   * If you are editing this file, remember that all output lines generated by it
  10   * must end with DOS-style \r\n line endings, and not Unix-style \n, in order to
  11   * comply with the iCal spec: http://tools.ietf.org/html/rfc5545#section-3.1.
  12   **/
  13  
  14  if (empty($method)):
  15    $method = 'PUBLISH';
  16  endif;
  17    print "BEGIN:VCALENDAR\r\n";
  18    print "VERSION:2.0\r\n";
  19    print "METHOD:$method\r\n";
  20  if (!empty($calname)):
  21    print "X-WR-CALNAME;VALUE=TEXT:$calname\r\n";
  22  endif;
  23  print "PRODID:-//Drupal iCal API//EN\r\n";
  24  foreach ($events as $event):
  25    print theme('date_vevent', $event);
  26  endforeach;
  27  print "END:VCALENDAR\r\n";


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7