You are here

views-view-node-fullcalendar.tpl.php in FullCalendar 7

Same filename and directory in other branches
  1. 6 views-view-node-fullcalendar.tpl.php

View to display the fullcalendar rows (events)

Variables available:

  • $node: The node object.
  • $url: The url for the event
  • $data['field']: The field that contains the event date and time.
  • $data['index']: The index of the event date and time (to support multiple values).
  • $data['allDay']: If the event is all day (does not include hour and minute granularity).
  • $data['start'] : When the event starts.
  • $data['end'] : When the event ends.
  • $className : The node type that the event came from

Note that if you use className for the event's className attribute then you'll get weird results from jquery!

File

views-view-node-fullcalendar.tpl.php
View source
<?php

/**
 * @file
 * View to display the fullcalendar rows (events)
 *
 * Variables available:
 * - $node: The node object.
 * - $url: The url for the event
 * - $data['field']: The field that contains the event date and time.
 * - $data['index']: The index of the event date and time (to support multiple values).
 * - $data['allDay']: If the event is all day (does not include hour and minute granularity).
 * - $data['start'] : When the event starts.
 * - $data['end'] : When the event ends.
 * - $className : The node type that the event came from
 *
 * Note that if you use className for the event's className attribute then you'll get weird results from jquery!
 */
if (isset($empty_text)) {
  ?>
  <?php

  print $empty_text;
}
elseif (!empty($data)) {
  ?>
  <h3 class="title"><?php

  echo $node->title;
  ?></h3>
  <?php

  foreach ($data as $row) {
    ?>
    <div class="fullcalendar-instance">
      <?php

    print $row;
    ?>
    </div>
  <?php

  }
}