[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

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

   1  <?php
   2  // $Id: date-vevent.tpl.php,v 1.1.2.3 2010/11/20 13:25:54 karens Exp $
   3  /**
   4   * $event
   5   *   An array with the following information about each event:
   6   * 
   7   *   $event['uid'] - a unique id for the event (usually the url).
   8   *   $event['summary'] - the name of the event.
   9   *   $event['start'] - the formatted start date of the event.
  10   *   $event['end'] - the formatted end date of the event.
  11   *   $event['rrule'] - the RRULE of the event, if any.
  12   *   $event['timezone'] - the formatted timezone name of the event, if any.
  13   *   $event['url'] - the url for the event.
  14   *   $event['location'] - the name of the event location, or a vvenue location id.
  15   *   $event['description'] - a description of the event.
  16   *   $event['alarm'] - an optional array of alarm values.
  17   *    @see date-valarm.tpl.php.
  18   */
  19  ?>
  20  BEGIN:VEVENT
  21  UID:<?php print($event['uid'] . "\r\n") ?>
  22  SUMMARY:<?php print($event['summary'] . "\r\n") ?>
  23  DTSTAMP:<?php print($site_timezone_utc . "Z\r\n") ?>
  24  DTSTART;<?php print $event['timezone'] ?><?php print($event['start'] . "\r\n") ?>
  25  <?php if (!empty($event['end'])): ?>
  26  DTEND;<?php print $event['timezone'] ?><?php print($event['end'] . "\r\n") ?>
  27  <?php endif; ?>
  28  <?php if (!empty($event['rrule'])) : ?>
  29  <?php print($event['rrule'] . "\r\n") ?>
  30  <?php endif; ?>
  31  <?php if (!empty($event['url'])): ?>
  32  URL;VALUE=URI:<?php print($event['url'] . "\r\n") ?>
  33  <?php endif; ?>
  34  <?php if (!empty($event['location'])): ?>
  35  LOCATION:<?php print($event['location'] . "\r\n") ?>
  36  <?php endif; ?>
  37  <?php if (!empty($event['description'])) : ?>
  38  DESCRIPTION:<?php print($event['description'] . "\r\n") ?>
  39  <?php endif; ?>
  40  END:VEVENT


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7