[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/calendar/theme/ -> calendar-mini.tpl.php (source)

   1  <?php
   2  // $Id: calendar-mini.tpl.php,v 1.1.2.7 2010/11/21 13:19:37 karens Exp $
   3  /**
   4   * @file
   5   * Template to display a view as a mini calendar month.
   6   * 
   7   * @see template_preprocess_calendar_mini.
   8   *
   9   * $day_names: An array of the day of week names for the table header.
  10   * $rows: An array of data for each day of the week.
  11   * $view: The view.
  12   * $min_date_formatted: The minimum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
  13   * $max_date_formatted: The maximum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
  14   * 
  15   * $show_title: If the title should be displayed. Normally false since the title is incorporated
  16   *   into the navigation, but sometimes needed, like in the year view of mini calendars.
  17   * 
  18   */
  19  //dsm('Display: '. $display_type .': '. $min_date_formatted .' to '. $max_date_formatted);
  20  ?>
  21  <div class="calendar-calendar"><div class="month-view">
  22  <?php if ($view->date_info->show_title): ?>
  23    <?php print theme('date_navigation', $view); ?>
  24  <?php endif; ?> 
  25  <table class="mini">
  26    <thead>
  27      <tr>
  28        <?php foreach ($day_names as $cell): ?>
  29          <th class="<?php print $cell['class']; ?>">
  30            <?php print $cell['data']; ?>
  31          </th>
  32        <?php endforeach; ?>
  33      </tr>
  34    </thead>
  35    <tbody>
  36      <?php foreach ((array) $rows as $row): ?>
  37        <tr>
  38          <?php foreach ($row as $cell): ?>
  39            <td class="<?php print $cell['class']; ?> <?php print $cell['id']; ?>">
  40              <?php print $cell['data']; ?>
  41            </td>
  42          <?php endforeach; ?>
  43        </tr>
  44      <?php endforeach; ?>
  45    </tbody>
  46  </table>
  47  </div></div>


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