calendar-row-node.tpl.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * @file
  4. * Template to display a view item as a calendar month node.
  5. *
  6. * $node
  7. * A node object for this calendar item. Note this is
  8. * not a complete node object, but it will have $node->nid
  9. * that you can use to load the full object, and
  10. * $node->type to tell the content type of the node.
  11. *
  12. * $fields
  13. * An array of information for every field selected in the 'Fields'
  14. * section of this view, formatted as requested in the View setup.
  15. *
  16. * Calendar info for this individual calendar item is in local time --
  17. * the user timezone where configurable timezones are allowed and set,
  18. * otherwise the site timezone. If this item has extends over more than
  19. * one day, it has been broken apart into separate nodes for each calendar
  20. * date and calendar_start will be no earlier than the start of
  21. * the current day and calendar_end will be no later than the end
  22. * of the current day.
  23. *
  24. * $calendar_start - A formatted datetime start date for this item.
  25. * i.e. '2008-05-12 05:26:15'.
  26. * $calendar_end - A formatted datetime end date for this item,
  27. * the same as the start date except for fields that have from/to
  28. * fields defined, like Date module dates.
  29. * $calendar_start_date - a PHP date object for the start time.
  30. * $calendar_end_date - a PHP date object for the end time.
  31. *
  32. * You can use PHP date functions on the date object to display date
  33. * information in other ways, like:
  34. *
  35. * print date_format($calendar_start_date, 'l, j F Y - g:ia');
  36. *
  37. * @see template_preprocess_calendar_row_node.
  38. */
  39. ?>
  40. <div class="view-item view-item-<?php print $view->name ?>">
  41. <div class="<?php print $item->class; ?>">
  42. <?php print theme('calendar_stripe_stripe', array('node' => $item)); ?>
  43. <?php print $item->body; ?>
  44. </div>
  45. </div>